Blender V4.5
GWL_TabletTool Struct Reference

Classes

struct  [struct].wl
struct  [struct].frame_pending

Public Attributes

struct  wl
GWL_Seatseat = nullptr
bool proximity = false
GHOST_TabletData data = GHOST_TABLET_DATA_NONE
int32_t xy [2] = {0}
bool has_xy = false
struct  frame_pending

Detailed Description

A single tablet can have multiple tools (pen, eraser, brush... etc). WAYLAND exposes tools via #zwp_tablet_tool_v2. Since are no API's to access properties of the tool, store the values here.

Definition at line 539 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ data

◆ frame_pending

◆ has_xy

bool GWL_TabletTool::has_xy = false

Definition at line 558 of file GHOST_SystemWayland.cc.

Referenced by tablet_tool_handle_frame(), and tablet_tool_handle_motion().

◆ proximity

bool GWL_TabletTool::proximity = false

Used to delay clearing tablet focused wl_surface until the frame is handled.

Definition at line 552 of file GHOST_SystemWayland.cc.

Referenced by tablet_tool_handle_frame(), tablet_tool_handle_proximity_in(), and tablet_tool_handle_proximity_out().

◆ seat

◆ wl

◆ xy

int32_t GWL_TabletTool::xy[2] = {0}

Motion.

Definition at line 557 of file GHOST_SystemWayland.cc.

Referenced by tablet_tool_handle_frame(), and tablet_tool_handle_motion().


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