wlmaker
|
#include <element.h>
State of an element.
bs_dllist_node_t _wlmtk_element_t::dlnode |
The node of elements.
wlmtk_env_t* _wlmtk_element_t::env_ptr |
Toolkit environment.
uint32_t _wlmtk_element_t::last_pointer_time_msec |
Time of last wlmtk_element_pointer_motion call, 0 otherwise.
double _wlmtk_element_t::last_pointer_x |
Horizontal pointer position from last wlmtk_element_pointer_motion call. NAN if there was no motion call yet, or if the last motion call had NAN arguments.
Does not imply that the element has pointer focus.
double _wlmtk_element_t::last_pointer_y |
Vertical pointer position from last wlmtk_element_pointer_motion call. NAN if there was no motion call yet, or if the last motion call had NAN arguments.
Does not imply that the element has pointer focus.
wlmtk_container_t* _wlmtk_element_t::parent_container_ptr |
The container this element belongs to, if any.
bool _wlmtk_element_t::pointer_inside |
Whether the pointer is currently within the element's bounds.
bool _wlmtk_element_t::visible |
Whether the element is visible (drawn, when part of a scene graph).
wlmtk_element_vmt_t _wlmtk_element_t::vmt |
Virtual method table for the element.
struct wl_listener _wlmtk_element_t::wlr_scene_node_destroy_listener |
Listener for the destroy
signal of wlr_scene_node_ptr
.
struct wlr_scene_node* _wlmtk_element_t::wlr_scene_node_ptr |
Points to the wlroots scene graph API node, if attached.
int _wlmtk_element_t::x |
X position of the element in pixels, relative to parent container.
This value may be stale, if wlmtk_element_t::wlr_scene_node_ptr is set and had been updated directly. Therefore, consider the value as "private", and access only through wlmtk_element_get_position.
int _wlmtk_element_t::y |
Y position of the element, relative to the container.
Same observations apply as for wlmtk_element_t::x.