wlmaker
Loading...
Searching...
No Matches
Public Attributes | List of all members
_wlmtk_element_t Struct Reference

#include <element.h>

Collaboration diagram for _wlmtk_element_t:
Collaboration graph
[legend]

Public Attributes

int x
 
int y
 
wlmtk_container_tparent_container_ptr
 
bs_dllist_node_t dlnode
 
wlmtk_element_vmt_t vmt
 
wlmtk_element_events_t events
 
struct wlr_scene_node * wlr_scene_node_ptr
 
bool visible
 
struct wl_listener wlr_scene_node_destroy_listener
 
wlmtk_pointer_motion_event_t last_pointer_motion_event
 
bool pointer_inside
 

Detailed Description

State of an element.

Member Data Documentation

◆ dlnode

bs_dllist_node_t _wlmtk_element_t::dlnode

The node of elements.

◆ events

wlmtk_element_events_t _wlmtk_element_t::events

Events available from the element.

◆ last_pointer_motion_event

wlmtk_pointer_motion_event_t _wlmtk_element_t::last_pointer_motion_event

Details of last wlmtk_element_pointer_motion call.

◆ parent_container_ptr

wlmtk_container_t* _wlmtk_element_t::parent_container_ptr

The container this element belongs to, if any.

◆ pointer_inside

bool _wlmtk_element_t::pointer_inside

Whether the pointer is currently within the element's bounds.

◆ visible

bool _wlmtk_element_t::visible

Whether the element is visible (drawn, when part of a scene graph).

◆ vmt

wlmtk_element_vmt_t _wlmtk_element_t::vmt

Virtual method table for the element.

◆ wlr_scene_node_destroy_listener

struct wl_listener _wlmtk_element_t::wlr_scene_node_destroy_listener

Listener for the destroy signal of wlr_scene_node_ptr.

◆ 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.

◆ x

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.

◆ y

int _wlmtk_element_t::y

Y position of the element, relative to the container.

Same observations apply as for wlmtk_element_t::x.


The documentation for this struct was generated from the following file: