YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
命名空间 | |
namespace | EventMapping |
事件映射命名空间。 | |
namespace | Styles |
类型定义 | |
typedef Window | Form |
typedef GHEvent< void(ScrollEventArgs)> | HScrollEvent |
typedef GValueEventArgs < MTextList::IndexType > | IndexEventArgs |
索引事件。 | |
typedef GHEvent< void(IndexEventArgs)> | HIndexEvent |
typedef std::function< void(PaintEventArgs &&)> | HBrush |
画刷回调函数。 | |
typedef u8 | ZOrderType |
typedef Drawing::Point | MScreenPositionEventArgs |
屏幕(指针设备)输入事件参数模块类。 | |
typedef GHEvent< void(UIEventArgs &&)> | HUIEvent |
typedef GHEvent< void(InputEventArgs &&)> | HInputEvent |
typedef GHEvent< void(KeyEventArgs &&)> | HKeyEvent |
typedef GHEvent< void(TouchEventArgs &&)> | HTouchEvent |
typedef GHEvent< void(PaintEventArgs &&)> | HPaintEvent |
typedef EventMapping::MapType | VisualEventMap |
typedef ystdex::any_input_iterator < IWidget > | WidgetIterator |
通用部件迭代器。 | |
typedef pair< WidgetIterator, WidgetIterator > | WidgetRange |
两个部件迭代器组成的左闭右开区间确定的迭代器范围。 | |
枚举 | |
enum | TextAlignment |
enum | ScrollCategory |
滚动类别。 更多... | |
enum | VisualEvent { Move, Resize, KeyUp, KeyDown, KeyHeld, KeyPress, TouchUp, TouchDown, TouchHeld, TouchMove, Click, Paint, GotFocus, LostFocus, Enter, Leave } |
标准控件事件空间。 更多... | |
函数 | |
YF_API void | DrawThumbBackground (PaintEventArgs &&e, Thumb &, Hue) |
绘制指定色调的基本按钮背景。 | |
YF_API void | DecorateAsCloseButton (Thumb &) |
装饰 Thumb 为关闭按钮。 | |
const ZOrderType | DefaultMenuZOrder (224) |
默认菜单 Z 顺序值。 | |
YF_API void | LocateMenu (Menu &, const Menu &, Menu::IndexType) |
定位菜单:以第二个参数作为参考父菜单,按指定参考偏移索引定位菜单。 | |
YF_API void | DrawTrackBackground (PaintEventArgs &&e, ATrack &) |
绘制指定色调的基本按钮背景。 | |
YF_API void | ResizeForContent (TextList &) |
根据文本内容调整文本列表大小。 | |
YF_API void | UpdateView (TextList &, bool is_active=false) |
更新文本列表视图。 | |
bool | IsEnabled (const IWidget &wgt) |
判断部件是否为可用的控件。 | |
void | SetEnabledOf (IWidget &wgt, bool b) |
设置部件可用性。 | |
YF_API bool | Enable (IWidget &, bool=true) |
设置部件可用性,且当可用性改变时无效化部件区域。 | |
template<VisualEvent _vID> | |
EventMapping::MappedType | NewEvent () |
构造指针指向的 VisualEvent 指定的事件对象。 | |
YF_API EventMapping::ItemType & | GetEvent (EventMapping::MapType &, const VisualEvent &, EventMapping::MappedType(&)()) |
在事件映射表中取指定 id 对应的事件。 | |
template<VisualEvent _vID> | |
GEvent< void(typename EventTypeMapping< _vID > ::HandlerType::EventArgsType)> & | FetchEvent (VisualEventMap &m) |
取控件事件。 | |
template<VisualEvent _vID> | |
GEvent< void(typename EventTypeMapping< _vID > ::HandlerType::EventArgsType)> & | FetchEvent (AController &controller) |
取部件事件。 | |
template<VisualEvent _vID> | |
GEvent< void(typename EventTypeMapping< _vID > ::HandlerType::EventArgsType)> & | FetchEvent (IWidget &wgt) |
取部件事件。 | |
template<VisualEvent _vID, typename _tEventArgs > | |
size_t | CallEvent (IWidget &wgt, _tEventArgs &&e) |
调用部件事件,并忽略 BadControl 异常。 | |
template<VisualEvent _vID, class _tEventArgs > | |
void | OnEvent_Call (_tEventArgs &&e) |
处理事件:直接转发至发送者。 | |
template<class _tEventArgs > | |
void | OnEvent_StopRouting (_tEventArgs &&e) |
YF_API void | OnKeyHeld (KeyEventArgs &&) |
处理键接触保持事件。 | |
YF_API void | OnTouchDown_RequestToTopFocused (TouchEventArgs &&) |
处理屏幕接触开始事件:使用一般接触策略。 | |
YF_API void | OnTouchHeld (TouchEventArgs &&) |
处理屏幕接触保持事件。 | |
YF_API void | OnTouchMove (TouchEventArgs &&) |
处理屏幕接触移动事件。 | |
YF_API void | OnTouchMove_Dragging (TouchEventArgs &&) |
处理屏幕接触移动事件。 | |
YF_API void | OnKey_Bound_TouchUpAndLeave (KeyEventArgs &&) |
处理按键事件:按键-指针设备接触结束。 | |
YF_API void | OnKey_Bound_EnterAndTouchDown (KeyEventArgs &&) |
处理按键事件:按键-指针设备接触开始。 | |
YF_API void | OnKey_Bound_Click (KeyEventArgs &&) |
处理按键事件:按键-指针设备按下。 | |
YF_API bool | IsFocused (const IWidget &) |
判断部件是否取得焦点。 | |
YF_API bool | DoRequestFocus (IWidget &, bool release_event=false) |
向部件容器请求获得焦点,并指定 GotFocus 事件发送控件。 | |
YF_API bool | DoReleaseFocus (IWidget &) |
释放焦点,并指定 LostFocus 事件发送控件。 | |
YF_API void | RequestFocusFrom (IWidget &dst, IWidget &src) |
向部件容器请求获得焦点,并指定 GotFocus 事件发送控件。 | |
YF_API void | ReleaseFocusFrom (IWidget &dst, IWidget &src) |
释放焦点,并指定 LostFocus 事件发送控件。 | |
void | RequestFocus (IWidget &wgt) |
向部件容器释放获得焦点,成功后向自身发送 GotFocus 事件。 | |
void | ReleaseFocus (IWidget &wgt) |
释放焦点,成功后向自身发送 LostFocus 事件。 | |
YF_API void | ClearFocusingOf (IWidget &) |
清除焦点指针,同时以此部件作为事件源,调用被清除焦点部件的 LostFocus 事件。 | |
YF_API void | RequestFocusCascade (IWidget &) |
级联请求部件及上层容器焦点。 | |
YF_API void | ReleaseFocusCascade (IWidget &) |
级联释放部件及上层容器焦点。 | |
YF_API bool | RepeatHeld (InputTimer &, InputTimer::HeldStateType &, const Timers::Duration &, const Timers::Duration &) |
向指定计时器传递参数,根据状态重复按键。 | |
YF_API GUIState & | FetchGUIState () |
取默认图形用户界面公共状态。 | |
bool | IsFocusedByShell (const IWidget &wgt, const GUIState &st=FetchGUIState()) |
YF_API IWidget & | FetchTopLevel (IWidget &) |
取指定部件的顶层部件。 | |
YF_API IWidget & | FetchTopLevel (IWidget &, Point &) |
取指定部件的顶层部件,当返回非第一参数时变换坐标。 | |
YF_API Point | LocateOffset (const IWidget *pEnd, Point, const IWidget *pWgt) |
取相对于 pWgt 指向的部件的点 pt 相对于 pEnd 指向的容器的偏移坐标。 | |
Point | LocateContainerOffset (const IWidget &wgt, const Point &pt) |
取相对部件 wgt 的点 pt 相对于 wgt 的容器的偏移坐标。 | |
YF_API Point | LocateForWidget (IWidget &a, IWidget &b) |
取指定部件 b 相对于部件 a 的偏移坐标。 | |
template<class _tWidget , typename _fFetcher > | |
Point | LocateForWidgetNode (IWidget &wgt, _fFetcher fetch_ptr) |
取指定部件相对于视图树中的直接节点指针的偏移坐标。 | |
YF_API Point | LocateForParentContainer (const IWidget &) |
取指定部件相对于容器的父容器的偏移坐标。 | |
YF_API void | MoveToLeft (IWidget &wgt) |
移动部件 wgt 至容器左端。 | |
YF_API void | MoveToRight (IWidget &wgt) |
移动部件 wgt 至容器右端。 | |
YF_API void | MoveToTop (IWidget &wgt) |
移动部件 wgt 至容器上端。 | |
YF_API void | MoveToBottom (IWidget &wgt) |
移动部件 wgt 至容器下端。 | |
const ZOrderType | DefaultZOrder (64) |
默认 Z 顺序值。 | |
const ZOrderType | DefaultWindowZOrder (128) |
默认窗口 Z 顺序值。 | |
template<class _tContainer , class... _tWidgets> | |
void | AddWidgets (_tContainer &con, _tWidgets &...wgts) |
向部件容器添加子部件。 | |
template<class _tContainer , class... _tWidgets> | |
void | AddWidgetsZ (_tContainer &con, ZOrderType z, _tWidgets &...wgts) |
向部件容器添加指定 Z 顺序的子部件。 | |
template<class _tContainer , class... _tWidgets> | |
void | RemoveWidgets (_tContainer &con, _tWidgets &...wgts) |
从部件容器移除子部件。 | |
template<class _tEventHandler > | |
size_t | DoEvent (AController &controller, const VisualEvent &id, typename _tEventHandler::EventArgsType &&e) |
template<class _tEventHandler > | |
size_t | DoEvent (AController &controller, const VisualEvent &id, typename _tEventHandler::EventArgsType &e) |
bool | IsVisible (const IWidget &wgt) |
判断部件是否可见。 | |
bool YF_API | Contains (const IWidget &, SPos, SPos) |
判断点是否在部件的可视区域内。 | |
bool | Contains (const IWidget &wgt, const Point &pt) |
判断点是否在部件的可视区域内。 | |
bool YF_API | ContainsVisible (const IWidget &wgt, SPos x, SPos y) |
判断点是否在可见部件的可视区域内。 | |
bool | ContainsVisible (const IWidget &wgt, const Point &pt) |
判断点是否在可见部件的可视区域内。 | |
IWidget * | FetchContainerPtr (const IWidget &wgt) |
取部件的容器指针。 | |
IWidget * | FetchFocusingPtr (IWidget &wgt) |
取焦点对象指针。 | |
const Point & | GetLocationOf (const IWidget &wgt) |
取部件位置。 | |
const Size & | GetSizeOf (const IWidget &wgt) |
取部件大小。 | |
Rect | GetBoundsOf (const IWidget &wgt) |
取部件边界。 | |
YF_API void | SetBoundsOf (IWidget &, const Rect &) |
设置部件边界。 | |
void | SetContainerPtrOf (IWidget &wgt, IWidget *pCon={}) |
设置部件的容器指针。 | |
YF_API void | SetInvalidationOf (IWidget &) |
设置部件的无效区域。 | |
YF_API void | SetInvalidationToParent (IWidget &) |
在容器设置部件的无效区域。 | |
YF_API void | SetLocationOf (IWidget &, const Point &) |
设置部件左上角所在位置(相对于容器的偏移坐标)。 | |
YF_API void | SetSizeOf (IWidget &, const Size &) |
void | SetVisibleOf (IWidget &wgt, bool b) |
设置部件可见性。 | |
YF_API void | Close (IWidget &) |
关闭部件。 | |
YF_API void | DrawArrow (PaintEventArgs &&, IWidget &, SDst=4, Drawing::Rotation=Drawing::RDeg0, Drawing::Color=Drawing::ColorSpace::Black) |
在指定部件中心画箭头。 | |
YF_API void | Hide (IWidget &) |
隐藏部件。 | |
YF_API void | Invalidate (IWidget &) |
无效化:使部件区域在直接和间接的窗口缓冲区中无效。 | |
YF_API void | Invalidate (IWidget &, const Rect &) |
无效化:使相对于部件的指定区域在直接和间接的窗口缓冲区中无效。 | |
YF_API void | PaintChild (IWidget &wgt, PaintEventArgs &&e) |
YF_API Rect | PaintChild (IWidget &wgt, const PaintContext &pc) |
YF_API void | RequestToTop (IWidget &) |
请求提升至容器顶端。 | |
YF_API void | Show (IWidget &) |
显示部件。 | |
yconstexpr EventPriority | BackgroundPriority (0xC0) |
用户界面绘制优先级。 | |
yconstexpr EventPriority | BoundaryPriority (0x60) |
yconstexpr EventPriority | ForegroundPriority (0x40) |
typedef Window YSLib::UI::Form |
typedef std::function<void(PaintEventArgs&&)> YSLib::UI::HBrush |
typedef GHEvent<void( IndexEventArgs )> YSLib::UI::HIndexEvent |
在文件 textlist.h 第 45 行定义.
typedef GHEvent<void( InputEventArgs&& )> YSLib::UI::HInputEvent |
typedef GHEvent<void( KeyEventArgs&& )> YSLib::UI::HKeyEvent |
typedef GHEvent<void( PaintEventArgs&& )> YSLib::UI::HPaintEvent |
typedef GHEvent<void( ScrollEventArgs )> YSLib::UI::HScrollEvent |
typedef GHEvent<void( TouchEventArgs&& )> YSLib::UI::HTouchEvent |
typedef GHEvent<void( UIEventArgs&& )> YSLib::UI::HUIEvent |
typedef pair<WidgetIterator, WidgetIterator> YSLib::UI::WidgetRange |
typedef u8 YSLib::UI::ZOrderType |
|
inline |
向部件容器添加子部件。
参考自 bookmarks(),YSLib::UI::DialogPanel::DialogPanel(),GetDesktopDownHandle(),main(),ShlTextReader::SettingSession::SettingSession() , 以及 smooth_scroll_duration().
|
inline |
向部件容器添加指定 Z 顺序的子部件。
yconstexpr EventPriority YSLib::UI::BackgroundPriority | ( | 0xC0 | ) |
用户界面绘制优先级。
参考自 YSLib::UI::DialogBox::DialogBox(),YSLib::UI::DialogPanel::DialogPanel() , 以及 YSLib::UI::Widget::InitializeEvents().
yconstexpr EventPriority YSLib::UI::BoundaryPriority | ( | 0x60 | ) |
|
inline |
调用部件事件,并忽略 BadControl 异常。
在文件 ycontrol.h 第 183 行定义.
参考 YSLib::UI::IWidget::GetController() , 以及 yforward.
YF_API void YSLib::UI::ClearFocusingOf | ( | IWidget & | ) |
清除焦点指针,同时以此部件作为事件源,调用被清除焦点部件的 LostFocus 事件。
YF_API void YSLib::UI::Close | ( | IWidget & | ) |
关闭部件。
隐藏部件后取消容器(若存在)焦点状态。
参考自 YSLib::UI::DialogPanel::DialogPanel() , 以及 YSLib::UI::Control::OnTouch_Close().
bool YF_API YSLib::UI::Contains | ( | const IWidget & | , |
SPos | , | ||
SPos | |||
) |
判断点是否在部件的可视区域内。
|
inline |
判断点是否在部件的可视区域内。
参考 Contains(),YSLib::Drawing::GBinaryGroup< _type >::X , 以及 YSLib::Drawing::GBinaryGroup< _type >::Y.
bool YF_API YSLib::UI::ContainsVisible | ( | const IWidget & | wgt, |
SPos | x, | ||
SPos | y | ||
) |
判断点是否在可见部件的可视区域内。
|
inline |
判断点是否在可见部件的可视区域内。
参考 ContainsVisible(),YSLib::Drawing::GBinaryGroup< _type >::X , 以及 YSLib::Drawing::GBinaryGroup< _type >::Y.
YF_API void YSLib::UI::DecorateAsCloseButton | ( | Thumb & | ) |
装饰 Thumb 为关闭按钮。
在指定 Thumb 上增加 Click 事件响应:关闭父容器;增加 Paint 事件响应:绘制“×”。
参考自 YSLib::UI::DialogPanel::DialogPanel().
const ZOrderType YSLib::UI::DefaultMenuZOrder | ( | 224 | ) |
默认菜单 Z 顺序值。
const ZOrderType YSLib::UI::DefaultWindowZOrder | ( | 128 | ) |
const ZOrderType YSLib::UI::DefaultZOrder | ( | 64 | ) |
默认 Z 顺序值。
size_t YSLib::UI::DoEvent | ( | AController & | controller, |
const VisualEvent & | id, | ||
typename _tEventHandler::EventArgsType && | e | ||
) |
|
inline |
YF_API bool YSLib::UI::DoReleaseFocus | ( | IWidget & | ) |
释放焦点,并指定 LostFocus 事件发送控件。
YF_API bool YSLib::UI::DoRequestFocus | ( | IWidget & | , |
bool | release_event = false |
||
) |
向部件容器请求获得焦点,并指定 GotFocus 事件发送控件。
release_event | 是否在需要释放已有焦点时触发事件。 |
YF_API void YSLib::UI::DrawArrow | ( | PaintEventArgs && | , |
IWidget & | , | ||
SDst | = 4 , |
||
Drawing::Rotation | = Drawing::RDeg0 , |
||
Drawing::Color | = Drawing::ColorSpace::Black |
||
) |
YF_API void YSLib::UI::DrawThumbBackground | ( | PaintEventArgs && | e, |
Thumb & | , | ||
Hue | |||
) |
绘制指定色调的基本按钮背景。
YF_API void YSLib::UI::DrawTrackBackground | ( | PaintEventArgs && | e, |
ATrack & | |||
) |
绘制指定色调的基本按钮背景。
设置部件可用性,且当可用性改变时无效化部件区域。
取默认图形用户界面公共状态。
参考自 DecorateAsCloseButton(),YSLib::UI::DialogPanel::DialogPanel(),YSLib::UI::Menu::DrawItem(),DrawTrackBackground(),GUIShell::GUIShell(),main(),ShlTextReader::OnKeyDown(),OnKeyHeld(),OnTouchHeld(),OnTouchMove(),OnTouchMove_Dragging(),YSL_BEGIN::RectDrawButton() , 以及 YSLib::UI::Button::Refresh().
取指定部件的顶层部件。
取指定部件的顶层部件,当返回非第一参数时变换坐标。
yconstexpr EventPriority YSLib::UI::ForegroundPriority | ( | 0x40 | ) |
|
inline |
取部件边界。
参考 GetLocationOf() , 以及 GetSizeOf().
参考自 Contains(),SetInvalidationToParent(),YSLib::UI::Widget::SetView() , 以及 YSLib::UI::Desktop::Validate().
YF_API EventMapping::ItemType& YSLib::UI::GetEvent | ( | EventMapping::MapType & | , |
const VisualEvent & | , | ||
EventMapping:: | MappedType&)( | ||
) |
在事件映射表中取指定 id 对应的事件。
YF_API void YSLib::UI::Hide | ( | IWidget & | ) |
隐藏部件。
YF_API void YSLib::UI::Invalidate | ( | IWidget & | ) |
无效化:使部件区域在直接和间接的窗口缓冲区中无效。
参考自 YSL_BEGIN::Detach(),Enable(),DualScreenReader::Execute(),GetDesktopDownHandle(),Hide(),YSLib::UI::MenuHost::HideRaw(),Invalidate(),DualScreenReader::Invalidate(),YSLib::UI::TextList::InvalidateSelected(),DualScreenReader::LoadText(),DualScreenReader::Locate(),YSLib::UI::Panel::MoveToTop(),OnTouchMove_Dragging(),DualScreenReader::ScrollByPixel(),ColorBox::SetColor(),YSLib::UI::ATrack::SetThumbLength(),YSLib::UI::ATrack::SetThumbPosition(),DualScreenReader::SetVisible(),Show(),smooth_scroll_duration(),SwitchVisible(),ReaderBox::UpdateData(),TextInfoBox::UpdateData(),HexViewArea::UpdateView(),DualScreenReader::UpdateView(),UpdateView() , 以及 YSLib::UI::BufferedRenderer::Validate().
YF_API void YSLib::UI::Invalidate | ( | IWidget & | , |
const Rect & | |||
) |
无效化:使相对于部件的指定区域在直接和间接的窗口缓冲区中无效。
|
inline |
判断部件是否为可用的控件。
在文件 ycontrol.h 第 77 行定义.
参考自 DecorateAsCloseButton(),YSLib::UI::DialogPanel::DialogPanel(),DrawThumbBackground(),Enable(),YSLib::UI::Button::Refresh(),YSLib::UI::GUIState::ResponseKey() , 以及 YSLib::UI::GUIState::ResponseTouch().
YF_API bool YSLib::UI::IsFocused | ( | const IWidget & | ) |
|
inline |
|
inline |
|
inline |
取相对部件 wgt 的点 pt 相对于 wgt 的容器的偏移坐标。
参考 GetLocationOf().
参考自 LocateForParentContainer().
Point YSLib::UI::LocateForWidgetNode | ( | IWidget & | wgt, |
_fFetcher | fetch_ptr | ||
) |
取指定部件相对于视图树中的直接节点指针的偏移坐标。
_Node | 节点类型。 |
_fFetcher | 节点访问器类型。 |
参考 LocateOffset() , 以及 YB_LIKELY.
YF_API void YSLib::UI::LocateMenu | ( | Menu & | , |
const Menu & | , | ||
Menu::IndexType | |||
) |
定位菜单:以第二个参数作为参考父菜单,按指定参考偏移索引定位菜单。
取相对于 pWgt 指向的部件的点 pt 相对于 pEnd 指向的容器的偏移坐标。
YF_API void YSLib::UI::MoveToBottom | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器下端。
参考自 YSLib::UI::ScrollableContainer::FixLayout().
YF_API void YSLib::UI::MoveToLeft | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器左端。
YF_API void YSLib::UI::MoveToRight | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器右端。
参考自 YSLib::UI::ScrollableContainer::FixLayout().
YF_API void YSLib::UI::MoveToTop | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器上端。
EventMapping::MappedType YSLib::UI::NewEvent | ( | ) |
|
inline |
处理事件:直接转发至发送者。
_vID | 指定转发的目标事件。 |
_tEventArgs | 事件参数类型。 |
在文件 ycontrol.h 第 212 行定义.
|
inline |
在文件 ycontrol.h 第 223 行定义.
YF_API void YSLib::UI::OnKey_Bound_Click | ( | KeyEventArgs && | ) |
YF_API void YSLib::UI::OnKey_Bound_EnterAndTouchDown | ( | KeyEventArgs && | ) |
YF_API void YSLib::UI::OnKey_Bound_TouchUpAndLeave | ( | KeyEventArgs && | ) |
YF_API void YSLib::UI::OnKeyHeld | ( | KeyEventArgs && | ) |
处理键接触保持事件。
YF_API void YSLib::UI::OnTouchDown_RequestToTopFocused | ( | TouchEventArgs && | ) |
处理屏幕接触开始事件:使用一般接触策略。
屏幕接触时依次进行以下判断: 当事件路由策略非 RoutedEventArgs::Bubble 时请求置于顶端; 当事件路由策略为 RoutedEventArgs::Direct 时清除自身包含的焦点; 当事件路由策略非 RoutedEventArgs::Tunnel 时请求置于顶端。
YF_API void YSLib::UI::OnTouchHeld | ( | TouchEventArgs && | ) |
处理屏幕接触保持事件。
实现记录坐标偏移(用于拖放)或触发 TouchMove 事件。
YF_API void YSLib::UI::OnTouchMove | ( | TouchEventArgs && | ) |
处理屏幕接触移动事件。
YF_API void YSLib::UI::OnTouchMove_Dragging | ( | TouchEventArgs && | ) |
处理屏幕接触移动事件。
YF_API void YSLib::UI::PaintChild | ( | IWidget & | wgt, |
PaintEventArgs && | e | ||
) |
YF_API void YSLib::UI::ReleaseFocusCascade | ( | IWidget & | ) |
级联释放部件及上层容器焦点。
YF_API void YSLib::UI::ReleaseFocusFrom | ( | IWidget & | dst, |
IWidget & | src | ||
) |
释放焦点,并指定 LostFocus 事件发送控件。
dst | 事件目标。 |
src | 事件源。 |
|
inline |
从部件容器移除子部件。
参考自 ShlTextReader::SettingSession::~SettingSession().
YF_API bool YSLib::UI::RepeatHeld | ( | InputTimer & | , |
InputTimer::HeldStateType & | , | ||
const Timers::Duration & | , | ||
const Timers::Duration & | |||
) |
向指定计时器传递参数,根据状态重复按键。
YF_API void YSLib::UI::RequestFocusCascade | ( | IWidget & | ) |
级联请求部件及上层容器焦点。
YF_API void YSLib::UI::RequestFocusFrom | ( | IWidget & | dst, |
IWidget & | src | ||
) |
向部件容器请求获得焦点,并指定 GotFocus 事件发送控件。
dst | 事件目标。 |
src | 事件源。 |
YF_API void YSLib::UI::RequestToTop | ( | IWidget & | ) |
YF_API void YSLib::UI::ResizeForContent | ( | TextList & | ) |
根据文本内容调整文本列表大小。
YF_API void YSLib::UI::SetBoundsOf | ( | IWidget & | , |
const Rect & | |||
) |
设置部件边界。
|
inline |
设置部件的容器指针。
参考自 YSLib::UI::Panel::Add(),YSLib::UI::Window::Add(),YSLib::UI::DialogBox::DialogBox(),large_delta(),ContainerSetter::operator()(),YSLib::UI::Panel::operator+=() , 以及 YSLib::UI::Panel::operator-=().
|
inline |
设置部件可用性。
在文件 ycontrol.h 第 92 行定义.
参考 YSLib::UI::IWidget::GetController() , 以及 YSLib::UI::AController::SetEnabled().
参考自 Enable().
YF_API void YSLib::UI::SetInvalidationOf | ( | IWidget & | ) |
设置部件的无效区域。
YF_API void YSLib::UI::SetInvalidationToParent | ( | IWidget & | ) |
在容器设置部件的无效区域。
YF_API void YSLib::UI::SetLocationOf | ( | IWidget & | , |
const Point & | |||
) |
设置部件左上角所在位置(相对于容器的偏移坐标)。
YF_API void YSLib::UI::SetSizeOf | ( | IWidget & | , |
const Size & | |||
) |
|
inline |
设置部件可见性。
参考 YSLib::UI::IWidget::GetView() , 以及 YSLib::UI::View::SetVisible().
参考自 YSLib::UI::ScrollableContainer::FixLayout(),GetDesktopDownHandle(),Hide(),session_ptr(),DualScreenReader::SetVisible(),Show(),smooth_scroll_duration() , 以及 SwitchVisible().
YF_API void YSLib::UI::Show | ( | IWidget & | ) |
显示部件。
依次设置部件可见性、请求部件焦点和无效化。
YF_API void YSLib::UI::UpdateView | ( | TextList & | , |
bool | is_active = false |
||
) |
更新文本列表视图。
is_active | 是否确定仅变更视图位置。 |
调用视图变更事件、调整视图长度并无效化。