Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
LayoutCursor (Item *owner, CursorType type) | |
virtual LayoutCursor * | clone () const override |
int | index () |
virtual bool | isAtBoundary () const override |
virtual bool | isSame (Cursor *c) override |
Returns true if this cursor is the same as the cursor other. More... | |
FormElement * | ownerElement () |
void | set2DIndex (int x, int y) |
void | setIndex (int index) |
void | setIsAtBoundary (bool isAtBoundary) |
void | setOwnerElement (FormElement *ownerElement) |
void | setVisualizationPosition (const QPoint &pos) |
void | setVisualizationSize (const QSize &size) |
virtual void | update () override |
Called on every scene update to update the cursor. More... | |
int | x () |
int | y () |
Public Member Functions inherited from Visualization::Cursor | |
Cursor (const Cursor &other) | |
Cursor (Item *owner, CursorType type, Item *visualization=nullptr) | |
virtual | ~Cursor () |
virtual bool | isLocationEquivalent (bool otherNotLocationEquivalent, CursorType otherType, bool otherIsAtBoundary, Item *otherOwner) |
virtual bool | isLocationEquivalent (Cursor *c) |
Returns true if this cursor is equivalent with respect to its location to the cursor c. More... | |
bool | notLocationEquivalent () const |
Cursor & | operator= (const Cursor &other)=delete |
virtual Item * | owner () const |
const QPoint & | position () |
Returns the position of this cursor in corrdinates local to owner() More... | |
const QRect & | region () |
Returns the region of this cursor in corrdinates local to owner() More... | |
QRect | sceneRegion () |
Returns the region of this cursor in scene coordinates. More... | |
void | setNotLocationEquivalent (bool notEquivalent) |
void | setPosition (const QPoint &pos) |
void | setRegion (const QRect ®ion) |
CursorType | type () const |
Item * | visualization () |
Private Attributes | |
int | index_ |
bool | isAtBoundary_ |
FormElement * | ownerElement_ |
int | x_ |
int | y_ |
Additional Inherited Members | |
Public Types inherited from Visualization::Cursor | |
enum | CursorType { VerticalCursor , HorizontalCursor , BoxCursor } |
Protected Member Functions inherited from Visualization::Cursor | |
void | setVisualization (Item *visualization) |
Visualization::LayoutCursor::LayoutCursor | ( | Item * | owner, |
CursorType | type | ||
) |
|
overridevirtual |
Reimplemented from Visualization::Cursor.
|
inline |
|
overridevirtual |
Reimplemented from Visualization::Cursor.
|
overridevirtual |
Returns true if this cursor is the same as the cursor other.
Two cursors are the same if they have the same owner and if they represent the same location within that owner.
Reimplemented from Visualization::Cursor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Visualization::LayoutCursor::setVisualizationPosition | ( | const QPoint & | pos | ) |
void Visualization::LayoutCursor::setVisualizationSize | ( | const QSize & | size | ) |
|
overridevirtual |
Called on every scene update to update the cursor.
The default implementation checks if this is a BoxCursor and if so it assumes it is a whole item cursor to update its position and size. Otherwise it does nothing.
Reimplement this in derived classes to update the cursor's position and size appropriately.
Reimplemented from Visualization::Cursor.
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |