Implement mouse-capture attribute on ui system

This commit is contained in:
2019-01-08 14:52:20 +01:00
parent c5a0b4e6b0
commit 1c8ace73c9
3 changed files with 29 additions and 18 deletions

View File

@@ -45,6 +45,7 @@ enum class kAttribute : uint16_t
Default = const_hash("default"),
RTL = const_hash("rtl"),
AutoSize = const_hash("autosize"),
MouseCapture = const_hash("mouse-capture"),
};
enum class kWidget : uint16_t
@@ -107,6 +108,7 @@ public:
glm::mat4 m_mvp;
bool m_mouse_inside = false;
bool m_flood_events = false;
bool m_force_mouse_capture = false;
bool m_capture_children = true; // wether to capture children events when xx_capture() is used
bool m_destroyed = false;