YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
插入符光标。 更多...
#include <TextBox.h>
Public 成员函数 | |
Caret (IWidget &, HBrush, InvalidationUpdater::Invalidator) | |
构造:注册插入符光标动画的事件处理器和画刷。 更多... | |
~Caret () | |
bool | Check (IWidget &) |
检查是否需要对指定部件进行绘制。 更多... | |
静态 Public 成员函数 | |
static void | Stop () |
停止插入符光标动画。 更多... | |
Public 属性 | |
Timers::Timer | CaretTimer {std::chrono::seconds(1)} |
决定是否显示插入符的计时器。 更多... | |
HBrush | CaretBrush |
插入符画刷。 484 更多... | |
InvalidationUpdater::Invalidator | CursorInvalidator |
供闪烁动画使用的指定无效化区域的光标位置刷新器。 更多... | |
静态 Private 属性 | |
static GAnimationSession < InvalidationUpdater > | caret_animation |
插入符闪烁动画。 更多... | |
YSLib::UI::Caret::Caret | ( | IWidget & | wgt, |
HBrush | caret_brush, | ||
InvalidationUpdater::Invalidator | inv | ||
) |
构造:注册插入符光标动画的事件处理器和画刷。
在文件 TextBox.cpp 第 44 行定义.
参考 caret_animation, CaretBrush, Check(), CursorInvalidator, YSLib::UI::Restart(), Stop(), YSLib::UI::wgt , 以及 yunseq.
YSLib::UI::Caret::~Caret | ( | ) |
bool YSLib::UI::Caret::Check | ( | IWidget & | sender | ) |
检查是否需要对指定部件进行绘制。
在文件 TextBox.cpp 第 69 行定义.
参考 caret_animation, CaretTimer, YSLib::Timers::Timer::Interval, YSLib::UI::IsEnabled(), YSLib::UI::IsFocusedCascade(), YSLib::Timers::Timer::RefreshRemainder() , 以及 YAssert.
参考自 Caret().
|
static |
|
staticprivate |
Timers::Timer YSLib::UI::Caret::CaretTimer {std::chrono::seconds(1)} |
InvalidationUpdater::Invalidator YSLib::UI::Caret::CursorInvalidator |