28 #ifndef YSL_INC_UI_yrender_h_
29 #define YSL_INC_UI_yrender_h_ 1
32 #include YFM_YSLib_UI_YComponent
69 CommitInvalidation(const
Rect&
r)
126 RequiresRefresh() const;
148 SetImageBuffer(unique_ptr<Drawing::IImage>);
159 CommitInvalidation(const Rect&) override;
176 UpdateTo(const PaintContext&) const;
187 Validate(IWidget& wgt, IWidget& sender, const PaintContext&);
virtual DefClone(const, Renderer) virtual Rect CommitInvalidation(const Rect &r)
提交无效区域。
#define DefDeDtor(_t)
定义默认析构函数。
#define DefDeCopyCtor(_t)
YF_API TLCIter Validate(TLCIter b, TLCIter e)
遍历记号列表,验证基本合法性:圆括号是否对应。
#define DefGetter(_q, _t, _n,...)
bool IgnoreBackground
指定验证时忽略上层缓冲区背景。
sizeof(AlphaType)*GetAreaOf(GetSize())) using CompactPixmap void SetSize(const Size &) override
重新设置缓冲区大小。
DefDeCtor(Renderer) DefDeCopyCtor(Renderer) DefDeMoveCtor(Renderer) virtual DefDeDtor(Renderer) virtual void SetSize(const Size &)
设置缓冲区大小。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Rect rInvalidated
无效区域:包含所有新绘制请求的区域(不一定是最小的)。
unique_ptr< Drawing::IImage > pImageBuffer
显示图像缓冲区指针。
#define DefClone(_q, _t)
动态复制。
void UpdateTo(NativeWindowHandle, const YSLib::Drawing::Point &={}) ynothrow
DefGetterMem(const ynothrow, ListType::size_type, SelectedIndex, viewer) SDst GetFullViewHeight() const
取完整视图高。
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow