mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Refactor out wlr_tablet_tool_state
This commit is contained in:
parent
a289940bff
commit
bd67849c03
4 changed files with 16 additions and 14 deletions
|
|
@ -3,11 +3,11 @@
|
|||
#include <wlr/types/wlr_tablet_tool.h>
|
||||
|
||||
struct wlr_tablet_tool_impl {
|
||||
void (*destroy)(struct wlr_tablet_tool_state *tool);
|
||||
void (*destroy)(struct wlr_tablet_tool *tool);
|
||||
};
|
||||
|
||||
struct wlr_tablet_tool *wlr_tablet_tool_create(struct wlr_tablet_tool_impl *impl,
|
||||
struct wlr_tablet_tool_state *state);
|
||||
void wlr_tablet_tool_init(struct wlr_tablet_tool *tool,
|
||||
struct wlr_tablet_tool_impl *impl);
|
||||
void wlr_tablet_tool_destroy(struct wlr_tablet_tool *tool);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5,11 +5,9 @@
|
|||
#include <stdint.h>
|
||||
|
||||
struct wlr_tablet_tool_impl;
|
||||
struct wlr_tablet_tool_state;
|
||||
|
||||
struct wlr_tablet_tool {
|
||||
struct wlr_tablet_tool_impl *impl;
|
||||
struct wlr_tablet_tool_state *state;
|
||||
|
||||
struct {
|
||||
struct wl_signal axis;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue