29 #include YFM_YSLib_UI_Border
30 #include YFM_YSLib_Service_YDraw
31 #include YFM_YSLib_UI_YGUI
32 #include YFM_YSLib_UI_YControl
37 using namespace Drawing;
51 auto& sender(e.GetSender());
59 BorderResizer::CheckArea(
const Point& pt)
81 auto& controller(
widget.get().GetController());
94 if(st.CheckDraggingOffset())
96 const auto offset(st.CursorLocation -
orig_loc);
157 CallEvent<ClickAcross>(
widget, e);
159 FetchEvent<ClickAcross>(controller).Add([
this]{
void InvalidateParent(IWidget &wgt)
pt pt Y const IWidget &wgt const IWidget &wgt GetSizeOf
无效化:使相对于部件的子部件的指定区域在直接和间接的窗口缓冲区中无效。
YF_API GUIState & FetchGUIState()
取默认图形用户界面公共状态。
SDst GetVerticalOf(const Padding &m)
取竖直边距和。
void SetBoundsOf(IWidget &wgt, const Rect &r)
static const GBinaryGroup Invalid
无效(不在屏幕坐标系中)对象。
pair< BorderArea, BorderArea > Area
区域类型。
#define yunseq
无序列依赖表达式组求值。
YF_API bool IsFocused(const IWidget &)
判断部件是否取得焦点。
pt pt Y const IWidget &wgt const IWidget &wgt const IWidget &wgt GetBoundsOf
bool HostMode
宿主模式:指定是否在设置边界后同时调整锁定的边界位置。
Size MinSize
指定部件应该保持的最小大小。
std::string to_string(unsigned char val)
转换为字符串。
#define YTraceDe(...)
YCLib 默认调试跟踪。
Rect locked_bounds
锁定的部件边界。
std::reference_wrapper< IWidget > widget
size_t SwitchInterval(_type v, const _type *a, size_t n) ynothrow
计算满足指定的值 v 在区间 [a[i], a[i + 1]) 内最小的 i 。
p1 p1 p2 p2 c YF_API void DrawRect(const Graphics &g, const Rect &bounds, const Point &pt, const Size &s, Color c)
描画标准矩形。