YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ywgtevt.h 文件参考

标准部件事件定义。 更多...

#include "ycomp.h"
#include "../Core/yevt.hpp"
ywgtevt.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  YSLib::UI::UIEventArgs
 用户界面事件参数基类。 更多...
 
struct  YSLib::UI::RoutedEventArgs
 路由事件参数基类。 更多...
 
struct  YSLib::UI::InputEventArgs
 输入事件参数类。 更多...
 
struct  YSLib::UI::KeyEventArgs
 按键输入事件参数类。 更多...
 
struct  YSLib::UI::TouchEventArgs
 指针设备输入事件参数类。 更多...
 
struct  YSLib::UI::GValueEventArgs< _type >
 简单事件参数类。 更多...
 
struct  YSLib::UI::PaintEventArgs
 部件绘制参数。 更多...
 
struct  YSLib::UI::EventTypeMapping< VisualEvent >
 
struct  YSLib::UI::EventTypeMapping< Move >
 
struct  YSLib::UI::EventTypeMapping< Resize >
 
struct  YSLib::UI::EventTypeMapping< KeyUp >
 
struct  YSLib::UI::EventTypeMapping< KeyDown >
 
struct  YSLib::UI::EventTypeMapping< KeyHeld >
 
struct  YSLib::UI::EventTypeMapping< KeyPress >
 
struct  YSLib::UI::EventTypeMapping< TouchUp >
 
struct  YSLib::UI::EventTypeMapping< TouchDown >
 
struct  YSLib::UI::EventTypeMapping< TouchHeld >
 
struct  YSLib::UI::EventTypeMapping< TouchMove >
 
struct  YSLib::UI::EventTypeMapping< Click >
 
struct  YSLib::UI::EventTypeMapping< Paint >
 
struct  YSLib::UI::EventTypeMapping< GotFocus >
 
struct  YSLib::UI::EventTypeMapping< LostFocus >
 
struct  YSLib::UI::EventTypeMapping< Enter >
 
struct  YSLib::UI::EventTypeMapping< Leave >
 
struct  YSLib::UI::BadEvent
 错误或不存在的部件事件异常。 更多...
 
class  YSLib::UI::AController
 控制器抽象类。 更多...
 
class  YSLib::UI::WidgetController
 部件控制器。 更多...
 

命名空间

namespace  YSLib
 
namespace  YSLib::UI
 
namespace  YSLib::UI::EventMapping
 事件映射命名空间。
 

宏定义

#define DefEventTypeMapping(_name, _tEventHandler)
 

类型定义

typedef Drawing::Point YSLib::UI::MScreenPositionEventArgs
 屏幕(指针设备)输入事件参数模块类。
 
typedef GHEvent< void(UIEventArgs &&)> YSLib::UI::HUIEvent
 
typedef GHEvent< void(InputEventArgs &&)> YSLib::UI::HInputEvent
 
typedef GHEvent< void(KeyEventArgs &&)> YSLib::UI::HKeyEvent
 
typedef GHEvent< void(TouchEventArgs &&)> YSLib::UI::HTouchEvent
 
typedef GHEvent< void(PaintEventArgs &&)> YSLib::UI::HPaintEvent
 
typedef GEventPointerWrapper
< UIEventArgs && > 
YSLib::UI::EventMapping::MappedType
 映射项类型。
 
typedef GIHEvent< UIEventArgs && > YSLib::UI::EventMapping::ItemType
 
typedef pair< VisualEvent,
MappedType > 
YSLib::UI::EventMapping::PairType
 
typedef map< VisualEvent,
MappedType > 
YSLib::UI::EventMapping::MapType
 映射表类型。
 
typedef pair< typename
MapType::iterator, bool > 
YSLib::UI::EventMapping::SearchResult
 搜索表结果类型。
 
typedef EventMapping::MapType YSLib::UI::VisualEventMap
 

枚举

enum  YSLib::UI::VisualEvent {
  YSLib::UI::Move, YSLib::UI::Resize, YSLib::UI::KeyUp, YSLib::UI::KeyDown,
  YSLib::UI::KeyHeld, YSLib::UI::KeyPress, YSLib::UI::TouchUp, YSLib::UI::TouchDown,
  YSLib::UI::TouchHeld, YSLib::UI::TouchMove, YSLib::UI::Click, YSLib::UI::Paint,
  YSLib::UI::GotFocus, YSLib::UI::LostFocus, YSLib::UI::Enter, YSLib::UI::Leave
}
 标准控件事件空间。 更多...
 

函数

template<class _tEventHandler >
size_t YSLib::UI::DoEvent (AController &controller, const VisualEvent &id, typename _tEventHandler::EventArgsType &&e)
 
template<class _tEventHandler >
size_t YSLib::UI::DoEvent (AController &controller, const VisualEvent &id, typename _tEventHandler::EventArgsType &e)
 
yconstexpr EventPriority YSLib::UI::BackgroundPriority (0xC0)
 用户界面绘制优先级。
 
yconstexpr EventPriority YSLib::UI::BoundaryPriority (0x60)
 
yconstexpr EventPriority YSLib::UI::ForegroundPriority (0x40)
 

详细描述

标准部件事件定义。

版本
r1299
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 241
创建时间:
2010-12-17 10:27:50 +0800
修改时间:
2013-03-19 15:20 +0800
文本编码:
UTF-8
模块名称:
YSLib::UI::YWidgetEvent

在文件 ywgtevt.h 中定义.

宏定义说明

#define DefEventTypeMapping (   _name,
  _tEventHandler 
)
值:
template<> \
struct EventTypeMapping<_name> \
{ \
typedef _tEventHandler HandlerType; \
};

在文件 ywgtevt.h239 行定义.