YSTest
PreAlpha_b380_20130211
The YSLib Test Project
|
Namespaces | |
namespace | EventMapping |
事件映射命名空间。 | |
namespace | Styles |
Typedefs | |
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 |
两个部件迭代器组成的左闭右开区间确定的迭代器范围。 | |
Enumerations | |
enum | TextAlignment |
enum | ScrollCategory |
滚动类别。 More... | |
enum | VisualEvent { Move, Resize, KeyUp, KeyDown, KeyHeld, KeyPress, TouchUp, TouchDown, TouchHeld, TouchMove, Click, Paint, GotFocus, LostFocus, Enter, Leave } |
标准控件事件空间。 More... | |
Functions | |
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 &) |
根据文本内容调整文本列表大小。 | |
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::Components::Form |
typedef std::function<void(PaintEventArgs&&)> YSLib::Components::HBrush |
typedef GHEvent<void( IndexEventArgs )> YSLib::Components::HIndexEvent |
Definition at line 45 of file textlist.h.
typedef GHEvent<void( InputEventArgs&& )> YSLib::Components::HInputEvent |
typedef GHEvent<void( KeyEventArgs&& )> YSLib::Components::HKeyEvent |
typedef GHEvent<void( PaintEventArgs&& )> YSLib::Components::HPaintEvent |
typedef GHEvent<void( ScrollEventArgs )> YSLib::Components::HScrollEvent |
typedef GHEvent<void( TouchEventArgs&& )> YSLib::Components::HTouchEvent |
typedef GHEvent<void( UIEventArgs&& )> YSLib::Components::HUIEvent |
typedef pair<WidgetIterator, WidgetIterator> YSLib::Components::WidgetRange |
typedef u8 YSLib::Components::ZOrderType |
|
inline |
向部件容器添加子部件。
Definition at line 242 of file yuicont.h.
References ystdex::unseq_apply().
Referenced by ColorBox::ColorBox(), YSLib::Components::DialogPanel::DialogPanel(), ShlTextReader::Execute(), FrmAbout::FrmAbout(), lblOperations(), main(), ShlExplorer::ShlExplorer(), and smooth_scroll_duration().
|
inline |
向部件容器添加指定 Z 顺序的子部件。
Definition at line 256 of file yuicont.h.
References ystdex::unseq_apply().
Referenced by ShlExplorer::ShlExplorer().
yconstexpr EventPriority YSLib::Components::BackgroundPriority | ( | 0xC0 | ) |
用户界面绘制优先级。
Referenced by YSLib::Components::DialogBox::DialogBox(), YSLib::Components::DialogPanel::DialogPanel(), and YSLib::Components::Widget::InitializeEvents().
yconstexpr EventPriority YSLib::Components::BoundaryPriority | ( | 0x60 | ) |
|
inline |
调用部件事件,并忽略 BadControl 异常。
Definition at line 183 of file ycontrol.h.
References YSLib::Components::IWidget::GetController(), and yforward.
YF_API void YSLib::Components::ClearFocusingOf | ( | IWidget & | ) |
清除焦点指针,同时以此部件作为事件源,调用被清除焦点部件的 LostFocus 事件。
YF_API void YSLib::Components::Close | ( | IWidget & | ) |
关闭部件。
隐藏部件后取消容器(若存在)焦点状态。
Referenced by YSLib::Components::DialogPanel::DialogPanel(), and YSLib::Components::Control::OnTouch_Close().
bool YF_API YSLib::Components::Contains | ( | const IWidget & | , |
SPos | , | ||
SPos | |||
) |
判断点是否在部件的可视区域内。
|
inline |
判断点是否在部件的可视区域内。
Definition at line 100 of file ywidget.h.
References Contains(), YSLib::Drawing::GBinaryGroup< _type >::X, and YSLib::Drawing::GBinaryGroup< _type >::Y.
bool YF_API YSLib::Components::ContainsVisible | ( | const IWidget & | wgt, |
SPos | x, | ||
SPos | y | ||
) |
判断点是否在可见部件的可视区域内。
|
inline |
判断点是否在可见部件的可视区域内。
Definition at line 116 of file ywidget.h.
References ContainsVisible(), YSLib::Drawing::GBinaryGroup< _type >::X, and YSLib::Drawing::GBinaryGroup< _type >::Y.
YF_API void YSLib::Components::DecorateAsCloseButton | ( | Thumb & | ) |
装饰 Thumb 为关闭按钮。
在指定 Thumb 上增加 Click 事件响应:关闭父容器;增加 Paint 事件响应:绘制“×”。
Referenced by YSLib::Components::DialogPanel::DialogPanel().
const ZOrderType YSLib::Components::DefaultMenuZOrder | ( | 224 | ) |
默认菜单 Z 顺序值。
const ZOrderType YSLib::Components::DefaultWindowZOrder | ( | 128 | ) |
默认窗口 Z 顺序值。
Referenced by ShlExplorer::ShlExplorer().
const ZOrderType YSLib::Components::DefaultZOrder | ( | 64 | ) |
默认 Z 顺序值。
size_t YSLib::Components::DoEvent | ( | AController & | controller, |
const VisualEvent & | id, | ||
typename _tEventHandler::EventArgsType && | e | ||
) |
|
inline |
YF_API bool YSLib::Components::DoReleaseFocus | ( | IWidget & | ) |
释放焦点,并指定 LostFocus 事件发送控件。
YF_API bool YSLib::Components::DoRequestFocus | ( | IWidget & | , |
bool | release_event = false |
||
) |
向部件容器请求获得焦点,并指定 GotFocus 事件发送控件。
release_event | 是否在需要释放已有焦点时触发事件。 |
YF_API void YSLib::Components::DrawArrow | ( | PaintEventArgs && | , |
IWidget & | , | ||
SDst | = 4 , |
||
Drawing::Rotation | = Drawing::RDeg0 , |
||
Drawing::Color | = Drawing::ColorSpace::Black |
||
) |
在指定部件中心画箭头。
Referenced by YSLib::Components::DropDownList::Refresh().
YF_API void YSLib::Components::DrawThumbBackground | ( | PaintEventArgs && | e, |
Thumb & | , | ||
Hue | |||
) |
绘制指定色调的基本按钮背景。
YF_API void YSLib::Components::DrawTrackBackground | ( | PaintEventArgs && | e, |
ATrack & | |||
) |
绘制指定色调的基本按钮背景。
设置部件可用性,且当可用性改变时无效化部件区域。
取默认图形用户界面公共状态。
Definition at line 337 of file ygui.cpp.
Referenced by DecorateAsCloseButton(), InputManager::DispatchInput(), YSLib::Components::Menu::DrawItem(), DrawTrackBackground(), main(), ShlTextReader::OnKeyDown(), OnKeyHeld(), OnTouchHeld(), OnTouchMove(), OnTouchMove_Dragging(), YSL_BEGIN::RectDrawButton(), YSLib::Components::Button::Refresh(), and ShlDS::ShlDS().
取指定部件的顶层部件。
取指定部件的顶层部件,当返回非第一参数时变换坐标。
yconstexpr EventPriority YSLib::Components::ForegroundPriority | ( | 0x40 | ) |
|
inline |
取部件边界。
Definition at line 173 of file ywidget.h.
References GetLocationOf(), and GetSizeOf().
Referenced by Contains(), SetInvalidationToParent(), YSLib::Components::Widget::SetView(), and YSLib::Components::Desktop::Validate().
YF_API EventMapping::ItemType& YSLib::Components::GetEvent | ( | EventMapping::MapType & | , |
const VisualEvent & | , | ||
EventMapping:: | MappedType&)( | ||
) |
在事件映射表中取指定 id 对应的事件。
YF_API void YSLib::Components::Hide | ( | IWidget & | ) |
隐藏部件。
YF_API void YSLib::Components::Invalidate | ( | IWidget & | ) |
无效化:使部件区域在直接和间接的窗口缓冲区中无效。
Referenced by YSL_BEGIN::Detach(), Enable(), DualScreenReader::Execute(), Hide(), YSLib::Components::MenuHost::HideRaw(), Invalidate(), DualScreenReader::Invalidate(), YSLib::Components::TextList::InvalidateSelected(), DualScreenReader::LoadText(), DualScreenReader::Locate(), YSLib::Components::Panel::MoveToTop(), OnTouchMove_Dragging(), DualScreenReader::ScrollByPixel(), ColorBox::SetColor(), YSLib::Components::ATrack::SetThumbLength(), YSLib::Components::ATrack::SetThumbPosition(), DualScreenReader::SetVisible(), ShlExplorer::ShlExplorer(), Show(), smooth_scroll_duration(), SwitchVisible(), ReaderBox::UpdateData(), TextInfoBox::UpdateData(), HexViewArea::UpdateView(), YSLib::Components::TextList::UpdateView(), DualScreenReader::UpdateView(), and YSLib::Components::BufferedRenderer::Validate().
YF_API void YSLib::Components::Invalidate | ( | IWidget & | , |
const Rect & | |||
) |
无效化:使相对于部件的指定区域在直接和间接的窗口缓冲区中无效。
|
inline |
判断部件是否为可用的控件。
Definition at line 77 of file ycontrol.h.
Referenced by DecorateAsCloseButton(), DrawThumbBackground(), Enable(), YSLib::Components::Button::Refresh(), YSLib::Components::GUIState::ResponseKey(), and YSLib::Components::GUIState::ResponseTouch().
YF_API bool YSLib::Components::IsFocused | ( | const IWidget & | ) |
判断部件是否取得焦点。
Referenced by YSLib::Components::BorderBrush::operator()().
|
inline |
Definition at line 203 of file ygui.h.
Referenced by YSLib::Components::CheckBox::PaintBox().
|
inline |
判断部件是否可见。
Definition at line 84 of file ywidget.h.
Referenced by ContainsVisible(), YSLib::Components::MenuHost::HideRaw(), ShlTextReader::OnClick(), YSLib::Components::MUIContainer::PaintVisibleChildren(), YSLib::Components::Widget::Refresh(), YSLib::Components::GUIState::ResponseKey(), YSLib::Components::GUIState::ResponseTouch(), ShlTextReader::ShlTextReader(), and SwitchVisible().
|
inline |
取相对部件 wgt 的点 pt 相对于 wgt 的容器的偏移坐标。
Definition at line 67 of file yuicont.h.
References GetLocationOf().
Referenced by LocateForParentContainer().
取指定部件 b 相对于部件 a 的偏移坐标。
Referenced by YSLib::Components::GUIState::ResponseTouchBase().
Point YSLib::Components::LocateForWidgetNode | ( | IWidget & | wgt, |
_fFetcher | fetch_ptr | ||
) |
取指定部件相对于视图树中的直接节点指针的偏移坐标。
_Node | 节点类型。 |
_fFetcher | 节点访问器类型。 |
Definition at line 87 of file yuicont.h.
References LocateOffset(), and YB_LIKELY.
YF_API void YSLib::Components::LocateMenu | ( | Menu & | , |
const Menu & | , | ||
Menu::IndexType | |||
) |
定位菜单:以第二个参数作为参考父菜单,按指定参考偏移索引定位菜单。
取相对于 pWgt 指向的部件的点 pt 相对于 pEnd 指向的容器的偏移坐标。
YF_API void YSLib::Components::MoveToBottom | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器下端。
Referenced by YSLib::Components::ScrollableContainer::FixLayout().
YF_API void YSLib::Components::MoveToLeft | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器左端。
YF_API void YSLib::Components::MoveToRight | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器右端。
Referenced by YSLib::Components::ScrollableContainer::FixLayout().
YF_API void YSLib::Components::MoveToTop | ( | IWidget & | wgt | ) |
移动部件 wgt 至容器上端。
EventMapping::MappedType YSLib::Components::NewEvent | ( | ) |
|
inline |
处理事件:直接转发至发送者。
_vID | 指定转发的目标事件。 |
_tEventArgs | 事件参数类型。 |
Definition at line 212 of file ycontrol.h.
|
inline |
Definition at line 223 of file ycontrol.h.
YF_API void YSLib::Components::OnKey_Bound_Click | ( | KeyEventArgs && | ) |
YF_API void YSLib::Components::OnKey_Bound_EnterAndTouchDown | ( | KeyEventArgs && | ) |
YF_API void YSLib::Components::OnKey_Bound_TouchUpAndLeave | ( | KeyEventArgs && | ) |
YF_API void YSLib::Components::OnKeyHeld | ( | KeyEventArgs && | ) |
处理键接触保持事件。
YF_API void YSLib::Components::OnTouchDown_RequestToTopFocused | ( | TouchEventArgs && | ) |
处理屏幕接触开始事件:使用一般接触策略。
屏幕接触时依次进行以下判断: 当事件路由策略非 RoutedEventArgs::Bubble 时请求置于顶端; 当事件路由策略为 RoutedEventArgs::Direct 时清除自身包含的焦点; 当事件路由策略非 RoutedEventArgs::Tunnel 时请求置于顶端。
YF_API void YSLib::Components::OnTouchHeld | ( | TouchEventArgs && | ) |
处理屏幕接触保持事件。
实现记录坐标偏移(用于拖放)或触发 TouchMove 事件。
YF_API void YSLib::Components::OnTouchMove | ( | TouchEventArgs && | ) |
处理屏幕接触移动事件。
YF_API void YSLib::Components::OnTouchMove_Dragging | ( | TouchEventArgs && | ) |
处理屏幕接触移动事件。
YF_API void YSLib::Components::PaintChild | ( | IWidget & | wgt, |
PaintEventArgs && | e | ||
) |
Referenced by ChildPainter::operator()(), PaintChild(), YSLib::Components::MUIContainer::PaintVisibleChildren(), and YSLib::Components::Widget::Refresh().
YF_API void YSLib::Components::ReleaseFocusCascade | ( | IWidget & | ) |
级联释放部件及上层容器焦点。
YF_API void YSLib::Components::ReleaseFocusFrom | ( | IWidget & | dst, |
IWidget & | src | ||
) |
释放焦点,并指定 LostFocus 事件发送控件。
dst | 事件目标。 |
src | 事件源。 |
|
inline |
从部件容器移除子部件。
Definition at line 270 of file yuicont.h.
References ystdex::unseq_apply().
Referenced by ShlTextReader::ShlTextReader().
YF_API bool YSLib::Components::RepeatHeld | ( | InputTimer & | , |
InputTimer::HeldStateType & | , | ||
const Timers::Duration & | , | ||
const Timers::Duration & | |||
) |
向指定计时器传递参数,根据状态重复按键。
YF_API void YSLib::Components::RequestFocusCascade | ( | IWidget & | ) |
级联请求部件及上层容器焦点。
YF_API void YSLib::Components::RequestFocusFrom | ( | IWidget & | dst, |
IWidget & | src | ||
) |
向部件容器请求获得焦点,并指定 GotFocus 事件发送控件。
dst | 事件目标。 |
src | 事件源。 |
YF_API void YSLib::Components::RequestToTop | ( | IWidget & | ) |
YF_API void YSLib::Components::ResizeForContent | ( | TextList & | ) |
根据文本内容调整文本列表大小。
YF_API void YSLib::Components::SetBoundsOf | ( | IWidget & | , |
const Rect & | |||
) |
设置部件边界。
|
inline |
设置部件的容器指针。
Definition at line 190 of file ywidget.h.
Referenced by YSLib::Components::Panel::Add(), YSLib::Components::Window::Add(), YSLib::Components::DialogBox::DialogBox(), ContainerSetter::operator()(), YSLib::Components::Panel::operator+=(), and YSLib::Components::Panel::operator-=().
|
inline |
设置部件可用性。
Definition at line 92 of file ycontrol.h.
References YSLib::Components::IWidget::GetController(), and YSLib::Components::AController::SetEnabled().
Referenced by Enable().
YF_API void YSLib::Components::SetInvalidationOf | ( | IWidget & | ) |
设置部件的无效区域。
YF_API void YSLib::Components::SetInvalidationToParent | ( | IWidget & | ) |
在容器设置部件的无效区域。
YF_API void YSLib::Components::SetLocationOf | ( | IWidget & | , |
const Point & | |||
) |
设置部件左上角所在位置(相对于容器的偏移坐标)。
YF_API void YSLib::Components::SetSizeOf | ( | IWidget & | , |
const Size & | |||
) |
Referenced by YSLib::Components::ScrollableContainer::FixLayout().
|
inline |
设置部件可见性。
Definition at line 229 of file ywidget.h.
References YSLib::Components::IWidget::GetView(), and YSLib::Components::View::SetVisible().
Referenced by YSLib::Components::ScrollableContainer::FixLayout(), Hide(), DualScreenReader::SetVisible(), ShlExplorer::ShlExplorer(), ShlTextReader::ShlTextReader(), Show(), smooth_scroll_duration(), and SwitchVisible().
YF_API void YSLib::Components::Show | ( | IWidget & | ) |
显示部件。
依次设置部件可见性、请求部件焦点和无效化。