Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
Visualization::CursorShapeItem Class Reference
Inheritance diagram for Visualization::CursorShapeItem:
Core::Reflect< Base >

Public Types

typedef ItemStyle StyleType
 

Public Member Functions

 CursorShapeItem (Cursor *cursor, const StyleType *style=itemStyles().get())
 
virtual ~CursorShapeItem ()
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
QPoint cursorCenter () const
 
QSize cursorSize () const
 
QPoint cursorTopLeft () const
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual UpdateType needsUpdate () override
 
void setCursorCenter (const QPoint &center)
 
void setCursorSize (const QSize &size)
 
void setCursorTopLeft (const QPoint &topLeft)
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
const StyleTypestyle () const
 
bool useCenter () const
 

Static Public Member Functions

static void addAddOn (Visualization::VisualizationAddOn *addOn)
 
static Visualization::InteractionHandlerdefaultClassHandler ()
 
static Visualization::StyleSet< CursorShapeItem > & itemStyles ()
 
static bool removeAddOn (Visualization::VisualizationAddOn *addOn)
 
static void setDefaultClassHandler (Visualization::InteractionHandler *handler)
 

Protected Member Functions

virtual void determineChildren () override
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Static Private Member Functions

static QList< Visualization::VisualizationAddOn * > & staticAddOns ()
 

Private Attributes

QPoint center_
 
Cursorcursor_
 
QSize size_
 
QPoint topLeft_
 
bool useCenter_
 

Static Private Attributes

static Visualization::InteractionHandlerdefaultClassHandler_ = nullptr
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ CursorShapeItem()

Visualization::CursorShapeItem::CursorShapeItem ( Cursor cursor,
const StyleType style = itemStyles().get() 
)

◆ ~CursorShapeItem()

Visualization::CursorShapeItem::~CursorShapeItem ( )
virtual

Member Function Documentation

◆ addAddOn()

void Visualization::CursorShapeItem::addAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ addOns()

QList< Visualization::VisualizationAddOn * > Visualization::CursorShapeItem::addOns ( )
overridevirtual

◆ cursorCenter()

QPoint Visualization::CursorShapeItem::cursorCenter ( ) const
inline

◆ cursorSize()

QSize Visualization::CursorShapeItem::cursorSize ( ) const
inline

◆ cursorTopLeft()

QPoint Visualization::CursorShapeItem::cursorTopLeft ( ) const
inline

◆ defaultClassHandler()

static Visualization::InteractionHandler* Visualization::CursorShapeItem::defaultClassHandler ( )
inlinestatic

◆ determineChildren()

void Visualization::CursorShapeItem::determineChildren ( )
overrideprotectedvirtual

◆ handler()

Visualization::InteractionHandler * Visualization::CursorShapeItem::handler ( ) const
overridevirtual

◆ itemStyles()

Visualization::StyleSet< CursorShapeItem > & Visualization::CursorShapeItem::itemStyles ( )
static

◆ needsUpdate()

Item::UpdateType Visualization::CursorShapeItem::needsUpdate ( )
overridevirtual

◆ removeAddOn()

bool Visualization::CursorShapeItem::removeAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ setCursorCenter()

void Visualization::CursorShapeItem::setCursorCenter ( const QPoint &  center)

◆ setCursorSize()

void Visualization::CursorShapeItem::setCursorSize ( const QSize &  size)
inline

◆ setCursorTopLeft()

void Visualization::CursorShapeItem::setCursorTopLeft ( const QPoint &  topLeft)

◆ setDefaultClassHandler()

static void Visualization::CursorShapeItem::setDefaultClassHandler ( Visualization::InteractionHandler handler)
inlinestatic

◆ setStyle()

void Visualization::CursorShapeItem::setStyle ( const Visualization::ItemStyle itemStyle)
overridevirtual

◆ staticAddOns()

QList< Visualization::VisualizationAddOn * > & Visualization::CursorShapeItem::staticAddOns ( )
staticprivate

◆ style()

const StyleType* Visualization::CursorShapeItem::style ( ) const
inline

◆ updateGeometry()

void Visualization::CursorShapeItem::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overrideprotectedvirtual

◆ useCenter()

bool Visualization::CursorShapeItem::useCenter ( ) const
inline

Member Data Documentation

◆ center_

QPoint Visualization::CursorShapeItem::center_
private

◆ cursor_

Cursor* Visualization::CursorShapeItem::cursor_
private

◆ defaultClassHandler_

Visualization::InteractionHandler * Visualization::CursorShapeItem::defaultClassHandler_ = nullptr
staticprivate

◆ size_

QSize Visualization::CursorShapeItem::size_
private

◆ topLeft_

QPoint Visualization::CursorShapeItem::topLeft_
private

◆ useCenter_

bool Visualization::CursorShapeItem::useCenter_
private