YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
类 | |
class | Log |
程序日志类。 更多... | |
函数 | |
yconstexpr auto & | FetchMapperFunc (FetchMapperPtr< ConversionResult(ucs2_t &, ystdex::input_monomorphic_iterator &&, ConversionState &&)>) |
yconstexpr auto & | FetchSkipMapperFunc (FetchMapperPtr< ConversionResult(ystdex::input_monomorphic_iterator &&, ConversionState &&)>) |
SPos | blit_min (SPos d) |
SPos | blit_max (SPos s, SPos d, SDst sl, SDst dl, SDst cl) |
bool | NotInitialized (true) |
void | Init (Timer &tmr, bool b) |
TimePoint | GetTickPoint () |
Hue | change_hue (Hue base_h, Hue h) |
色调偏移。 | |
void | RectDrawButton (const Graphics &g, Point pt, Size s, Hue base_hue, bool is_pressed=false, bool is_enabled=true) |
const SDst | defMinScrollBarWidth (16) |
默认最小滚动条宽。 | |
void | Detach (IWidget *pCon, IWidget &wgt) |
从容器分离指定部件并无效化部件区域。 | |
pair< bool, bool > | FixScrollBarLayout (Size &d, const Size &s, SDst min_width, SDst min_height) |
const SDst | defMinScrollBarHeight (16) |
默认最小滚动条高。 | |
void | Diminish (Rect &r, SDst off1=1, SDst off2=2) |
void | RectDrawCheckBox (const Graphics &g, const Rect &r, bool is_pressed=false, bool is_locked=false, bool is_ticked=false, bool is_focused=false, Color c=Color(85, 184, 163)) |
yconstexpr Size | track_size (112, 16) |
yconstexpr Size | label_size (44, 20) |
void | Repaint (Desktop &dsk) |
|
inline |
|
inline |
|
inline |
const SDst YSL_BEGIN::defMinScrollBarHeight | ( | 16 | ) |
const SDst YSL_BEGIN::defMinScrollBarWidth | ( | 16 | ) |
默认最小滚动条宽。
参考自 YSLib::UI::ScrollableContainer::FixLayout() , 以及 YSLib::UI::ListBox::ResizeForPreferred().
void YSL_BEGIN::Detach | ( | IWidget * | pCon, |
IWidget & | wgt | ||
) |
从容器分离指定部件并无效化部件区域。
在文件 ComboList.cpp 第 47 行定义.
参考自 YSLib::UI::DropDownList::DetachTopWidget().
void YSL_BEGIN::Diminish | ( | Rect & | r, |
SDst | off1 = 1 , |
||
SDst | off2 = 2 |
||
) |
yconstexpr auto& YSL_BEGIN::FetchMapperFunc | ( | FetchMapperPtr< ConversionResult(ucs2_t &, ystdex::input_monomorphic_iterator &&, ConversionState &&)> | ) |
yconstexpr auto& YSL_BEGIN::FetchSkipMapperFunc | ( | FetchMapperPtr< ConversionResult(ystdex::input_monomorphic_iterator &&, ConversionState &&)> | ) |
参考自 YSLib::Text::TextFileBuffer::GetIterator() , 以及 YSLib::Text::TextFileBuffer::GetPosition().
pair<bool, bool> YSL_BEGIN::FixScrollBarLayout | ( | Size & | d, |
const Size & | s, | ||
SDst | min_width, | ||
SDst | min_height | ||
) |
|
inline |
void YSL_BEGIN::Init | ( | Timer & | tmr, |
bool | b | ||
) |
在文件 ytimer.cpp 第 40 行定义.
参考 YSLib::Activate(),NotInitialized(),platform::StartTicks() , 以及 YB_UNLIKELY.
参考自 YSLib::Timers::Timer::Timer().
yconstexpr Size YSL_BEGIN::label_size | ( | 44 | , |
20 | |||
) |
void YSL_BEGIN::RectDrawButton | ( | const Graphics & | g, |
Point | pt, | ||
Size | s, | ||
Hue | base_hue, | ||
bool | is_pressed = false , |
||
bool | is_enabled = true |
||
) |
在文件 button.cpp 第 56 行定义.
参考 change_hue(),DrawRectRoundCorner(),FetchGUIState(),FillRect(),HSLToColor(),YSLib::Drawing::TransformRect(),YSLib::UI::Styles::Workspace,YAssert,YB_LIKELY , 以及 yunseq().
void YSL_BEGIN::RectDrawCheckBox | ( | const Graphics & | g, |
const Rect & | r, | ||
bool | is_pressed = false , |
||
bool | is_locked = false , |
||
bool | is_ticked = false , |
||
bool | is_focused = false , |
||
Color | c = Color(85, 184, 163) |
||
) |
在文件 Selector.cpp 第 50 行定义.
参考 ColorToHSL(),Diminish(),DrawLineSeg(),DrawRect(),FillRect(),HSLToColor(),YSLib::Drawing::TransformRect(),YAssert , 以及 YB_LIKELY.
参考自 YSLib::UI::CheckBox::PaintBox().
void YSL_BEGIN::Repaint | ( | Desktop & | dsk | ) |
yconstexpr Size YSL_BEGIN::track_size | ( | 112 | , |
16 | |||
) |