|
| Page () |
|
| Page (int w, int h, COLORREF cBk=WHITE) |
|
| Page (Canvas *pCanvas) |
|
virtual void | BindToCanvas (Canvas *pCanvas) |
| 绑定到画布,渲染时默认输出到此画布 更多...
|
|
virtual void | push (ControlBase *pCtrl, int offset_x=0, int offset_y=0) |
| 加入控件 更多...
|
|
virtual void | push (const std::list< ControlBase * > list) |
|
virtual void | remove (ControlBase *pCtrl) |
| 移除控件 更多...
|
|
void | Render (Canvas *dst=nullptr, RECT *pRct=nullptr, int *pCount=0) override |
| 渲染 更多...
|
|
void | UpdateImage (Canvas *pCanvas=nullptr) |
| 更新控件,并输出到某画布(控件重绘并渲染) 更多...
|
|
| ControlBase () |
|
| ControlBase (std::wstring wstrText) |
|
| ControlBase (int x, int y, int w=0, int h=0, std::wstring wstrText=L"") |
|
virtual | ~ControlBase () |
|
ControlBase * | GetParent () |
|
virtual void | SetParent (ControlBase *p) |
| 设置父控件(父控件调用 AddChild) 更多...
|
|
virtual bool | IsAutoSizeForChild () const |
|
virtual void | EnableAutoSizeForChild (bool enable) |
| 为子控件自动改变大小以容纳控件(不容纳负坐标部分) 更多...
|
|
std::list< ControlBase * > & | GetChildList () |
|
size_t | GetChildCount () |
| 获取子控件总数 更多...
|
|
virtual void | AddChild (ControlBase *p, int offset_x=0, int offset_y=0) |
|
virtual void | RemoveChild (ControlBase *p) |
|
virtual bool | IsEnabled () const |
|
virtual void | SetEnable (bool enable) |
|
virtual bool | IsVisible () const |
|
virtual void | SetVisible (bool visible) |
|
virtual bool | GetAutoRedrawState () const |
|
virtual void | EnableAutoRedraw (bool enable) |
| 启用自动重绘(接受到基础消息事件时自动标识需要重绘) 更多...
|
|
virtual Canvas & | GetCanvas () |
|
virtual COLORREF | GetBkColor () const |
|
virtual void | SetBkColor (COLORREF color) |
|
virtual COLORREF | GetTextColor () const |
|
virtual void | SetTextColor (COLORREF color) |
|
virtual void | EnableBorder (bool bEnableBorder, COLORREF color=BLACK, int thickness=1) |
|
virtual void | SetAlpha (BYTE alpha, bool bUseCanvasAlpha, bool isAlphaCalculated) |
|
virtual std::wstring | GetText () const |
|
virtual void | SetText (std::wstring wstr) |
|
virtual void | Draw_Text (int nTextOffsetX=0, int nTextOffsetY=0) |
|
virtual void | Redraw () |
| 重绘控件 更多...
|
|
virtual void | Draw (bool draw_child=true) |
| 绘制控件 更多...
|
|
virtual void | SetMsgProcFunc (MESSAGE_PROC_FUNC func) |
| 设置消息响应函数 更多...
|
|
virtual void | SetMsgProcFunc (MESSAGE_PROC_FUNC_CLASS static_class_func, void *_this) |
| 设置消息响应函数为静态类函数 更多...
|
|
virtual void | UpdateMessage (ExMessage msg) |
| 更新消息 更多...
|
|
virtual bool | IsHovered () const |
| 判断鼠标是否悬停 更多...
|
|
virtual bool | IsFocused () const |
| 判断是否拥有焦点 更多...
|
|
virtual bool | IsPressed () const |
| 判断是否按下 更多...
|
|
| Container () |
|
virtual | ~Container () |
|
RECT | GetRect () const |
|
void | SetRect (int x, int y, int w, int h) |
| 设置位置和宽高 更多...
|
|
void | SetRect (RECT rct) |
| 设置矩形区域 更多...
|
|
POINT | GetPos () const |
|
int | GetX () const |
|
int | GetY () const |
|
void | SetPos (int x, int y) |
|
void | SetPos (POINT pt) |
|
void | Move (int x, int y) |
|
void | MoveRel (int dx, int dy) |
|
int | GetWidth () const |
|
void | SetWidth (int w) |
|
int | GetHeight () const |
|
void | SetHeight (int h) |
|
void | Resize (int w, int h) |
|