28 #ifndef YSL_INC_UI_ywgtview_h_
29 #define YSL_INC_UI_ywgtview_h_ 1
32 #include YFM_YSLib_UI_YComponent
83 DefGetter(const ynothrow, SDst, Height, GetSize().Height)
95 PDefH(
void, SetX, SPos x)
119 PDefH(
void, SetLocation, SPos x, SPos y)
128 PDefH(
void, SetSize, SDst w, SDst h)
160 : visual(
r), ContainerPtr(), DependencyPtr(), FocusingPtr()
163 : visual(v.visual), ContainerPtr(), DependencyPtr(), FocusingPtr()
166 : visual(
v.visual), ContainerPtr(
v.ContainerPtr),
167 DependencyPtr(
v.DependencyPtr), FocusingPtr(
v.FocusingPtr)
169 yunseq(
v.ContainerPtr = {},
v.DependencyPtr = {},
v.FocusingPtr = {});
178 operator=(const View&
v)
190 visual = std::move(
v.visual);
201 DefGetterMem(const ynothrow, const Point&, Location, visual)
216 PDefH(
void, SetLocation, SPos x, SPos y)
218 PDefH(
void, SetSize, SDst w, SDst h)
Point location
左上角所在位置(相对于容器的偏移坐标)。
#define ImplBodyMem(_m, _n,...)
#define DefDeDtor(_t)
定义默认析构函数。
#define DefPred(_q, _n,...)
IWidget * ContainerPtr
从属的部件容器的指针。
MOriented(Drawing::Orientation o)
std::uint16_t SDst
屏幕坐标距离。
#define DefGetter(_q, _t, _n,...)
#define DefSetterMem(_t, _n, _m)
CompactPixmapEx & operator=(const CompactPixmapEx &buf)
PDefH(void, Activate, Console &console, Drawing::Color fc=Drawing::ColorSpace::White) ImplExpr(Activate(console
激活:使用指定屏幕、有效性、前景色和默认背景色。
sizeof(AlphaType)*GetAreaOf(GetSize())) using CompactPixmap void SetSize(const Size &) override
重新设置缓冲区大小。
#define yunseq
无序列依赖表达式组求值。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Drawing::Orientation Orientation
#define DefSetter(_t, _n, _m)
#define ImplBodyBase(_b, _n,...)
#define DefClone(_q, _t)
动态复制。
IWidget * FocusingPtr
焦点指针。
DefGetterMem(const ynothrow, ListType::size_type, SelectedIndex, viewer) SDst GetFullViewHeight() const
取完整视图高。
if(YB_UNLIKELY(r >=sGraphics.Height)) throw std return pBuffer r *sGraphics Width
IWidget * DependencyPtr
从属的部件指针。
View(const Rect &r={})
构造:使用指定边界、前景色和背景色。