29 #include YFM_YSLib_UI_YPanel
42 Panel::operator+=(IWidget&
wgt)
44 MUIContainer::operator+=(wgt);
45 SetContainerPtrOf(wgt,
this);
51 return RemoveFrom(wgt, *
this) ? MUIContainer::operator-=(wgt) :
false;
57 MUIContainer::Add(wgt, z);
58 SetContainerPtrOf(wgt,
this);
82 mWidgets.insert(make_pair(z, static_cast<IWidget*>(&wgt)));
92 if(!e.ClipArea.IsUnstrictlyEmpty())
void Refresh(PaintEventArgs &&) override
刷新:按指定参数绘制界面并更新状态。
YF_API void Invalidate(IWidget &, const Rect &)
无效化:使相对于部件的指定区域在直接和间接的窗口缓冲区中无效。
virtual bool operator-=(IWidget &)
void SetInvalidationOf(IWidget &wgt)
Panel(const Rect &={})
构造:使用指定边界。
YF_API bool RemoveFrom(IWidget &, IWidget &)
从容器中移除部件。
const second_tag get_value
void PaintVisibleChildren(PaintEventArgs &)
绘制可视子部件。
wgt wgt YF_API void ClearFocusingOf(IWidget &)
清除焦点指针并以此部件作为事件源调用被清除焦点部件的 LostFocus 事件。
void ClearContents()
清除内容。
bool MoveToFront(IWidget &)
提升部件至 Z 顺序相等的同组部件的顶端。