鼠标事件监听器
更多...
#include <MouseEventListener.h>
|
using | Callback = Function< void(Event *)> |
| 监听器回调函数
|
|
static RefPtr< EventListener > | Create (const Callback &callback) |
| 创建监听器 更多...
|
|
static RefPtr< EventListener > | Create (StringView name, const Callback &callback) |
| 创建监听器 更多...
|
|
static RefPtr< EventListener > | Create (EventType type, const Callback &callback) |
| 创建监听器 更多...
|
|
static RefPtr< EventListener > | Create (StringView name, EventType type, const Callback &callback) |
| 创建监听器 更多...
|
|
static void | SetObjectPolicy (const ObjectPolicyFunc &policy) |
| 设置对象处理策略
|
|
static bool | IsTracingLeaks () |
| 是否启用了内存泄漏追踪
|
|
static void | StartTracingLeaks () |
| 开始追踪内存泄漏
|
|
static void | StopTracingLeaks () |
| 停止追踪内存泄漏
|
|
static void | DumpTracingObjects () |
| 打印所有追踪中的对象信息
|
|
static Vector< ObjectBase * > & | GetTracingObjects () |
| 获取所有追踪中的对象
|
|
static void * | operator new (size_t size) |
|
static void | operator delete (void *ptr) |
|
static void * | operator new (size_t size, std::nothrow_t const &) noexcept |
|
static void | operator delete (void *ptr, std::nothrow_t const &) noexcept |
|
static void * | operator new (size_t size, void *ptr) noexcept |
|
static void | operator delete (void *ptr, void *place) noexcept |
|
using | value_type = typename std::pointer_traits< RefPtr< EventListener > >::pointer |
|
using | reference = value_type & |
|
using | pointer = value_type * |
|
| IntrusiveListValue (value_type rhs) |
|
const value_type & | GetPrev () const |
| 获取前一元素
|
|
value_type & | GetPrev () |
| 获取前一元素
|
|
const value_type & | GetNext () const |
| 获取下一元素
|
|
value_type & | GetNext () |
| 获取下一元素
|
|
◆ Handle()
void kiwano::MouseEventListener::Handle |
( |
Event * |
evt | ) |
|
|
overridevirtual |
◆ OnMouseDown()
virtual void kiwano::MouseEventListener::OnMouseDown |
( |
const Point & |
pos, |
|
|
MouseButton |
button |
|
) |
| |
|
inlinevirtual |
◆ OnMouseMoving()
virtual void kiwano::MouseEventListener::OnMouseMoving |
( |
const Point & |
pos | ) |
|
|
inlinevirtual |
◆ OnMouseUp()
virtual void kiwano::MouseEventListener::OnMouseUp |
( |
const Point & |
pos, |
|
|
MouseButton |
button |
|
) |
| |
|
inlinevirtual |
◆ OnMouseWheelScrolling()
virtual void kiwano::MouseEventListener::OnMouseWheelScrolling |
( |
const Point & |
pos, |
|
|
float |
wheel |
|
) |
| |
|
inlinevirtual |