#include <rectangle.h>


Public Types | |
| enum | a2dWindowMMStyle { SUNKEN = 0x0001, RAISED = 0x0002 } |
| enum | a2dWindowMMState { NON = 0x0000, DISABLED = 0x0001, SELECTED = 0x0002, FOCUS = 0x0004, HOVER = 0x0008, ALL = 0xFFFF } |
Public Member Functions | |
| a2dWindowMM (double x, double y, double w, double h) | |
| constructor | |
| a2dWindowMM (const a2dPoint2D &p1, const a2dPoint2D &p2) | |
| constructor | |
| a2dWindowMM (const a2dBoundingBox &bbox) | |
| constructor | |
| a2dWindowMM (const a2dWindowMM &rec, CloneOptions options) | |
| void | SetStyle (long style) |
| Set drawing style for window see a2dWindowMMStyle. | |
| long | GetStyle () |
| Get drawing style for window see a2dWindowMMStyle. | |
| void | Init () |
| initialize | |
| virtual a2dObject * | Clone (CloneOptions options) const |
| Clone this object and return a pointer to the new object. | |
| virtual void | DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite) |
| write object specific CVGL data | |
| void | DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts) |
| load object specific CVG data | |
| bool | DoUpdate (UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox) |
| Update derived Object specific things ( mainly boundingbox). | |
Protected Member Functions | |
| void | OnEnterObject (a2dCanvasObjectMouseEvent &event) |
| called when the mouse enters the object | |
| void | OnLeaveObject (a2dCanvasObjectMouseEvent &event) |
| called when the mouse leaves the object | |
| void | DoRender (a2dIterC &ic, OVERLAP clipparent) |
| render derived object | |
Protected Attributes | |
| long | m_style |
| long | m_state |
| a2dStroke | m_backStroke |
| a2dStroke | m_darkStroke |
| a2dStroke | m_lightStroke |
| a2dStroke | m_whiteStroke |
| a2dStroke | m_blackStroke |
| a2dStroke | m_hoverStroke |
Rectangular Window with Min and Max coordinates.
Definition at line 189 of file rectangle.h.
| a2dWindowMM::a2dWindowMM | ( | double | x, | |
| double | y, | |||
| double | w, | |||
| double | h | |||
| ) |
constructor
| x,: | x minimum | |
| y,: | y minimum | |
| w,: | Width of rectangle. | |
| h,: | Heigth of rectangle |
Definition at line 691 of file rectangle.cpp.
| a2dWindowMM::a2dWindowMM | ( | const a2dPoint2D & | p1, | |
| const a2dPoint2D & | p2 | |||
| ) |
constructor
| p1 | one point of rectangle | |
| p2 | second point on diagonal |
Definition at line 697 of file rectangle.cpp.
| a2dWindowMM::a2dWindowMM | ( | const a2dBoundingBox & | bbox | ) |
constructor
| bbox | used for size of rectangle |
Definition at line 703 of file rectangle.cpp.
| void a2dWindowMM::DoLoad | ( | wxObject * | parent, | |
| a2dIOHandlerXmlSerIn & | parser, | |||
| a2dXmlSer_flag | xmlparts | |||
| ) | [virtual] |
load object specific CVG data
todo ignore until this down here is fully converted.
Reimplemented from a2dRectMM.
Definition at line 877 of file rectangle.cpp.
| bool a2dWindowMM::DoUpdate | ( | UpdateMode | mode, | |
| const a2dBoundingBox & | childbox, | |||
| const a2dBoundingBox & | clipbox, | |||
| const a2dBoundingBox & | propbox | |||
| ) | [virtual] |
Update derived Object specific things ( mainly boundingbox).
Calculates the boundingbox of the object (exclusif base class child objects but with other nested objects).
| mode | way to update the objects | |
| childbox | size of children boundingbox | |
| clipbox | clip to this | |
| propbox | size of properties boundingbox |
force may or may not have direct influence on the object itself, if this function is called directly for some reason (e.g from derived objects), you must invalidate the boudingbox yourself. GetDrawerBox()->SetValid( false );
Reimplemented from a2dRectMM.
Reimplemented in a2dWidgetButton.
Definition at line 889 of file rectangle.cpp.
render derived object
if the object has sub objects (apart from the childobject which are handled here), those subobject most rendered by iterating on layer when needed/wanted, simular to child objects. We do not iterate here, since that is only needed if indeed there or subobjects. This will be know in a "wxDerivedCanvasObject DoRender".
SO parent objects that call this function, must:
Reimplemented from a2dRectMM.
Reimplemented in a2dWidgetButton.
Definition at line 760 of file rectangle.cpp.