wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
src
input
pointer.h
Go to the documentation of this file.
1
/* ========================================================================= */
21
#ifndef __WLMAKER_POINTER_H__
22
#define __WLMAKER_POINTER_H__
23
24
#include <libbase/libbase.h>
25
#include <libbase/plist.h>
26
#include <libinput.h>
27
#include <stdbool.h>
28
29
struct
wlr_input_device;
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
// __cplusplus
34
36
struct
wlmim_pointer_options
{
38
struct
{
40
bool
enabled
;
42
bool
disable_while_typing
;
44
enum
libinput_config_click_method
click_method
;
46
bool
tap_to_click
;
48
enum
libinput_config_scroll_method
scroll_method
;
50
bool
natural_scrolling
;
51
}
touchpad
;
52
};
53
55
typedef
struct
_wlmim_pointer_t
wlmim_pointer_t
;
56
65
wlmim_pointer_t
*
wlmim_pointer_create
(
66
struct
wlr_input_device *
wlr_input_device_ptr
,
67
const
struct
wlmim_pointer_options
*options_ptr);
68
74
void
wlmim_pointer_destroy
(
wlmim_pointer_t
*pointer_ptr);
75
77
bool
wlmim_pointer_enabled
(
wlmim_pointer_t
*pointer_ptr);
78
80
extern
const
bspl_desc_t
wlmim_pointer_config_touchpad
[];
81
83
extern
const
bs_test_set_t
wlmim_pointer_test_set
;
84
85
#ifdef __cplusplus
86
}
// extern "C"
87
#endif
// __cplusplus
88
89
#endif
// __WLMAKER_POINTER_H__
90
/* == End of pointer.h ================= */
wlmim_pointer_config_touchpad
const bspl_desc_t wlmim_pointer_config_touchpad[]
Definition
pointer.c:64
wlmim_pointer_test_set
const bs_test_set_t wlmim_pointer_test_set
Definition
pointer.c:274
wlmim_pointer_create
wlmim_pointer_t * wlmim_pointer_create(struct wlr_input_device *wlr_input_device_ptr, const struct wlmim_pointer_options *options_ptr)
Definition
pointer.c:119
wlmim_pointer_destroy
void wlmim_pointer_destroy(wlmim_pointer_t *pointer_ptr)
Definition
pointer.c:134
wlmim_pointer_t
struct _wlmim_pointer_t wlmim_pointer_t
Definition
pointer.h:55
wlmim_pointer_enabled
bool wlmim_pointer_enabled(wlmim_pointer_t *pointer_ptr)
Definition
pointer.c:140
_wlmim_pointer_t
Definition
pointer.c:38
_wlmim_pointer_t::wlr_input_device_ptr
struct wlr_input_device * wlr_input_device_ptr
Definition
pointer.c:40
wlmim_pointer_options
Definition
pointer.h:36
wlmim_pointer_options::natural_scrolling
bool natural_scrolling
Definition
pointer.h:50
wlmim_pointer_options::touchpad
struct wlmim_pointer_options::@167006027222265147050205005352266076355231342074 touchpad
wlmim_pointer_options::disable_while_typing
bool disable_while_typing
Definition
pointer.h:42
wlmim_pointer_options::tap_to_click
bool tap_to_click
Definition
pointer.h:46
wlmim_pointer_options::scroll_method
enum libinput_config_scroll_method scroll_method
Definition
pointer.h:48
wlmim_pointer_options::click_method
enum libinput_config_click_method click_method
Definition
pointer.h:44
wlmim_pointer_options::enabled
bool enabled
Definition
pointer.h:40
Generated by
1.17.0