![]() |
Clapkit
|
Defines a drawable canvas. More...
#include <ckCanvas.h>
Public Member Functions | |
| CKCanvas (const CKControlInitParams ¶ms) | |
| virtual | ~CKCanvas () |
| virtual void | Redraw () |
| const GWorldPtr | GetOSPointer () |
| void | Clear () |
| void | FillRect (CKRect rect, CKColor c) |
| void | Fill (CKColor c) |
| void | SetPixel (CKPoint p, CKColor c) |
| void | DrawLine (CKPoint start, CKPoint end, CKColor c) |
| bool | DrawResourceIcon (short resourceId, CKPoint where) |
Public Member Functions inherited from CKControl | |
| CKControl (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
| virtual | ~CKControl () |
| virtual void | AddedToWindow (CKWindow *window) |
| virtual void | RemovedFromWindow () |
| virtual void | MarkAsDirty () |
| virtual void | RaisePropertyChange (const char *propertyName) |
Public Member Functions inherited from CKObject | |
| CKObject () | |
| virtual | ~CKObject () |
| virtual void | AddHandler (CKEventType type, CKEventHandlerFunc cb) |
| virtual void | RemoveHandler (CKEventType type) |
| virtual bool | HasHandler (CKEventType type) const |
| virtual bool | HandleEvent (const CKEvent &evt) |
| virtual void | SetPropertyObserver (CKPropertyObserverFunc cb) |
| virtual void | UnsetPropertyObserver () |
Additional Inherited Members | |
Public Attributes inherited from CKControl | |
| CKProperty< CKWindow * > | owner = nullptr |
| CKProperty< CKRect > | rect |
| CKProperty< bool > | enabled = true |
| CKProperty< bool > | visible |
Protected Attributes inherited from CKObject | |
| std::map< CKEventType, CKEventHandlerFunc > | __handlers |
| CKPropertyObserverFunc | propertyObserverCB = nullptr |
Defines a drawable canvas.
| CKCanvas::CKCanvas | ( | const CKControlInitParams & | params | ) |
|
virtual |
| void CKCanvas::Clear | ( | ) |
| bool CKCanvas::DrawResourceIcon | ( | short | resourceId, |
| CKPoint | where | ||
| ) |
| void CKCanvas::Fill | ( | CKColor | c | ) |
| const GWorldPtr CKCanvas::GetOSPointer | ( | ) |
|
virtual |