|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
平台无关的二维图形光栅化。 更多...

函数 | |
| YSL_BEGIN bool | DrawHLineSeg (const Graphics &g, SPos y, SPos x1, SPos x2, Color c) |
| bool | DrawVLineSeg (const Graphics &g, SPos x, SPos y1, SPos y2, Color c) |
| bool | DrawLineSeg (const Graphics &g, SPos x1, SPos y1, SPos x2, SPos y2, Color c) |
| bool | DrawRect (const Graphics &g, const Point &pt, const Size &s, Color c) |
| bool | FillRect (const Graphics &g, const Point &pt, const Size &s, Color c) |
| bool | DrawCircle (const Graphics &g, const Point &pt, SDst r, Color c) |
平台无关的二维图形光栅化。
在文件 ydraw.cpp 中定义.
| bool DrawCircle | ( | const Graphics & | g, |
| const Point & | pt, | ||
| SDst | r, | ||
| Color | c | ||
| ) |
| YSL_BEGIN bool DrawHLineSeg | ( | const Graphics & | g, |
| SPos | y, | ||
| SPos | x1, | ||
| SPos | x2, | ||
| Color | c | ||
| ) |
参考 YSLib::RestrictInInterval(),YSLib::RestrictLessEqual() , 以及 YAssert.
参考自 DrawLineSeg(),DrawRect(),DrawRectRoundCorner(),DrawTrackBackground() , 以及 RectDrawArrow().


| bool DrawLineSeg | ( | const Graphics & | g, |
| SPos | x1, | ||
| SPos | y1, | ||
| SPos | x2, | ||
| SPos | y2, | ||
| Color | c | ||
| ) |
参考 DrawHLineSeg() , 以及 DrawVLineSeg().
参考自 DrawCross(),YSLib::Drawing::DrawLineSeg() , 以及 YSL_BEGIN::RectDrawCheckBox().


| bool DrawRect | ( | const Graphics & | g, |
| const Point & | pt, | ||
| const Size & | s, | ||
| Color | c | ||
| ) |
参考 DrawHLineSeg(),DrawVLineSeg() , 以及 YB_LIKELY.
参考自 YSLib::Drawing::DrawRect(),DrawThumbBackground(),YSLib::UI::BorderBrush::operator()() , 以及 YSL_BEGIN::RectDrawCheckBox().


| bool DrawVLineSeg | ( | const Graphics & | g, |
| SPos | x, | ||
| SPos | y1, | ||
| SPos | y2, | ||
| Color | c | ||
| ) |
参考 YSLib::RestrictInInterval(),YSLib::RestrictLessEqual() , 以及 YAssert.
参考自 DrawLineSeg(),DrawRect(),DrawRectRoundCorner(),DrawTrackBackground() , 以及 RectDrawArrow().


| bool FillRect | ( | const Graphics & | g, |
| const Point & | pt, | ||
| const Size & | s, | ||
| Color | c | ||
| ) |