Schim
Public Member Functions | List of all members
GRect Class Reference

Graphical rectangle object that wraps a Rect. More...

#include <grect.h>

Inheritance diagram for GRect:
[legend]
Collaboration diagram for GRect:
[legend]

Public Member Functions

Rectget () override
 Return the object that is being wrapped by this class. More...
 
void reloadFromModel () override
 
void applyToModel () override
 
void showHandles (bool show=true) override
 Display/hide the handles for this item.
 
void handleChanged (GObjectHandle *handle) override
 Called when a handle's position has changed.
 
- Public Member Functions inherited from GObject
 GObject (Object *obj)
 Construct a wrapper around obj. More...
 
virtual ~GObject ()
 
bool isHovered () const
 Return whether the mouse is over this object.
 
virtual void setCosmetic (bool cosmetic)
 Make the object's pen independent of any transformations. More...
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 Set hovered=true so that it can be used by paint.
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 Disable the bool hovered so that it can be used by paint.
 
QRectF boundingRect () const override
 Default implementation that returns childrenBoundingRect().
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
 
GCompositeObjectparentItem () const
 Return the parent item cast to a GObject*.
 

Additional Inherited Members

- Static Public Member Functions inherited from GObject
static GObjectassign (Object *obj)
 Return a dynamically allocated GObject wrapping the specified object. More...
 
- Protected Member Functions inherited from GObject
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 Process item changes that should behave uniformly across different object types. More...
 
- Protected Attributes inherited from GObject
Objectobj
 The object that is being wrapped.
 
QList< GObjectHandle * > * handles {}
 Dynamically allocated list of handles.
 

Detailed Description

Graphical rectangle object that wraps a Rect.

Member Function Documentation

◆ get()

Rect* GRect::get ( )
overridevirtual

Return the object that is being wrapped by this class.

Note
Derived classes should change the return type of this method to match the type of the object that is wrapped by them.

Reimplemented from GObject.


The documentation for this class was generated from the following file: