28 #ifndef YSL_INC_Service_ydraw_h_
29 #define YSL_INC_Service_ydraw_h_ 1
32 #include YFM_YSLib_Core_YGDIBase
78 "The pixel is out of the buffer.");
79 PutPixel(g.GetBufferPtr(), g.GetWidth(), x, y,
c);
101 "The boundary is out of the buffer.");
131 YAssert(
bool(g),
"Invalid graphics context found."),
133 "The boundary is out of the buffer.");
156 YAssert(
bool(g),
"Invalid graphics context found."),
158 "The boundary is out of the buffer.");
181 YAssert(
bool(g),
"Invalid graphics context found."),
183 "The boundary is out of the buffer.");
205 DrawRect(g, bounds, r.GetPoint(), r.GetSize(),
c);
238 template<typename _tIn>
245 const _tIn old(first);
void DrawVLineSeg(const Graphics &g, const Rect &bounds, SPos x, SPos y1, SPos y2, Color c)
描画竖直线段。
static auto first(const _tIterator &i) -> decltype((i->first))
YF_API void FillCircle(const Graphics &, const Rect &, const Point &, SDst, Color c)
填充圆形。
YF_API void FillRect(const Graphics &g, const Rect &, Color c)
填充标准矩形。
YF_API void PlotLineSeg(BitmapPtr dst, const Rect &bounds, SDst w, SPos x1, SPos y1, SPos x2, SPos y2, Color)
绘制线段:在宽 w 的缓冲区内的区域 bounds 绘制端点为 p1(x1, y1) 和 p2(x2, y2) 的线段。 ...
std::uint16_t SDst
屏幕坐标距离。
bounds c YF_API void DrawCircle(const Graphics &, const Rect &, const Point &, SDst, Color c)
描画圆形。
#define yunseq
无序列依赖表达式组求值。
void DrawLineSeg(const Graphics &g, const Rect &bounds, SPos x1, SPos y1, SPos x2, SPos y2, Color c)
描画线段:在区域 ds 绘制端点为 p1(x1, y1) 和 p2(x2, y2) 的线段。
bool Contains(int px, int py) const ynothrow
判断点 (px, py) 是否在矩形内或边上。
void DrawHLineSeg(const Graphics &g, const Rect &bounds, SPos y, SPos x1, SPos x2, Color c)
描画水平线段。
void PutPixel(BitmapPtr dst, SDst w, SPos x, SPos y, Color c)
修改指定位置的像素:(x, y) 。
#define YAssertNonnull(_expr)
void PlotPixel(BitmapPtr dst, const Rect &bounds, SDst w, SPos x, SPos y, Color c)
绘制指定位置的像素:(x, y) 。
void DrawPolygon(Graphics &g, const Rect &bounds, _tIn first, _tIn last, Color c)
描画多边形。
YF_API void PlotVLineSeg(BitmapPtr dst, const Rect &bounds, SDst w, SPos x, SPos y1, SPos y2, Color)
绘制竖直线段:在宽 w 的缓冲区内的区域 bounds 绘制指定竖直水平坐标 x , 竖直坐标 y1 - 1 、 y2 。 ...
Selected const shared_ptr< ListType > const pair< Color, Color > viewer Contains
void DrawPoint(const Graphics &g, const Rect &bounds, SPos x, SPos y, Color c)
描画点。
bool is_undereferenceable(const any_input_iterator< _type, _tDifference, _tPointer, _tReference > &i)
PDefH(void, DrawLineSeg, const Graphics &g, const Rect &bounds, const Point &p1, const Point &p2, Color c) ImplExpr(DrawLineSeg(g
p1 p1 p2 p2 c YF_API void DrawRect(const Graphics &g, const Rect &bounds, const Point &pt, const Size &s, Color c)
描画标准矩形。
#define YAssert(_expr, _msg)
YF_API void PlotHLineSeg(BitmapPtr dst, const Rect &bounds, SDst w, SPos y, SPos x1, SPos x2, Color)
绘制水平线段:在宽 w 的缓冲区内的区域 bounds 绘制指定端点水平坐标 x1 、 x2 - 1 ,竖直坐标 y 。 ...