|
Blender V4.3
|
Public Attributes | ||
| struct { | ||
| wl_surface * surface_cursor = nullptr | ||
| } | wl | |
| GWL_Seat * | seat = nullptr | |
| bool | proximity = false | |
| GHOST_TabletData | data = GHOST_TABLET_DATA_NONE | |
| int32_t | xy [2] = {0} | |
| bool | has_xy = false | |
| struct { | ||
| GWL_TabletTool_EventTypes frame_types [GWL_TabletTool_FrameTypes_NUM] | ||
| int frame_types_num = 0 | ||
| int frame_types_mask = 0 | ||
| struct { | ||
| int32_t clicks = 0 | ||
| } wheel | ||
| } | frame_pending | |
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 525 of file GHOST_SystemWayland.cc.
| int32_t GWL_TabletTool::clicks = 0 |
Definition at line 557 of file GHOST_SystemWayland.cc.
Referenced by tablet_tool_handle_frame(), and tablet_tool_handle_wheel().
| GHOST_TabletData GWL_TabletTool::data = GHOST_TABLET_DATA_NONE |
Definition at line 540 of file GHOST_SystemWayland.cc.
Referenced by tablet_tool_handle_frame(), tablet_tool_handle_pressure(), tablet_tool_handle_proximity_in(), tablet_tool_handle_tilt(), and tablet_tool_handle_type().
| struct { ... } GWL_TabletTool::frame_pending |
Collect data before the #zwp_tablet_tool_v2_listener::frame runs.
Referenced by gwl_tablet_tool_frame_event_add(), gwl_tablet_tool_frame_event_reset(), tablet_tool_handle_frame(), and tablet_tool_handle_wheel().
| GWL_TabletTool_EventTypes GWL_TabletTool::frame_types[GWL_TabletTool_FrameTypes_NUM] |
Definition at line 550 of file GHOST_SystemWayland.cc.
Referenced by gwl_tablet_tool_frame_event_add(), and tablet_tool_handle_frame().
| int GWL_TabletTool::frame_types_mask = 0 |
Definition at line 554 of file GHOST_SystemWayland.cc.
Referenced by gwl_tablet_tool_frame_event_add(), and gwl_tablet_tool_frame_event_reset().
| int GWL_TabletTool::frame_types_num = 0 |
Definition at line 553 of file GHOST_SystemWayland.cc.
Referenced by gwl_tablet_tool_frame_event_add(), gwl_tablet_tool_frame_event_reset(), and tablet_tool_handle_frame().
| bool GWL_TabletTool::has_xy = false |
Definition at line 544 of file GHOST_SystemWayland.cc.
Referenced by tablet_tool_handle_frame(), and tablet_tool_handle_motion().
| bool GWL_TabletTool::proximity = false |
Used to delay clearing tablet focused wl_surface until the frame is handled.
Definition at line 538 of file GHOST_SystemWayland.cc.
Referenced by tablet_tool_handle_frame(), tablet_tool_handle_proximity_in(), and tablet_tool_handle_proximity_out().
| GWL_Seat* GWL_TabletTool::seat = nullptr |
Definition at line 536 of file GHOST_SystemWayland.cc.
Referenced by tablet_seat_handle_tool_added(), tablet_tool_handle_button(), tablet_tool_handle_down(), tablet_tool_handle_frame(), tablet_tool_handle_proximity_in(), and tablet_tool_handle_removed().
| wl_surface* GWL_TabletTool::surface_cursor = nullptr |
Tablets have a separate cursor to the 'pointer', this surface is used for cursor drawing.
Definition at line 533 of file GHOST_SystemWayland.cc.
Referenced by gwl_seat_cursor_buffer_set(), gwl_seat_cursor_buffer_show(), GHOST_SystemWayland::output_scale_update(), tablet_seat_handle_tool_added(), and tablet_tool_handle_removed().
| struct { ... } GWL_TabletTool::wheel |
Referenced by tablet_tool_handle_frame(), and tablet_tool_handle_wheel().
| struct { ... } GWL_TabletTool::wl |
Wayland native types.
Referenced by gwl_seat_cursor_buffer_set(), gwl_seat_cursor_buffer_show(), GHOST_SystemWayland::output_scale_update(), tablet_seat_handle_tool_added(), and tablet_tool_handle_removed().
| int32_t GWL_TabletTool::xy[2] = {0} |
Motion.
Definition at line 543 of file GHOST_SystemWayland.cc.
Referenced by tablet_tool_handle_frame(), and tablet_tool_handle_motion().