|
wlmaker
|
#include "pointer.h"#include <inttypes.h>#include <libbase/libbase.h>#include <libbase/plist.h>#include <libinput.h>#include <stddef.h>#include <stdlib.h>#include <wlr/backend/libinput.h>#include <wlr/types/wlr_input_device.h>
Classes | |
| struct | _wlmim_pointer_t |
Functions | |
| void | _wlmim_pointer_apply (wlmim_pointer_t *pointer_ptr, const struct wlmim_pointer_param *param_ptr) |
| wlmim_pointer_t * | wlmim_pointer_create (struct wlr_input_device *wlr_input_device_ptr, const struct wlmim_pointer_param *param_ptr) |
| void | wlmim_pointer_destroy (wlmim_pointer_t *pointer_ptr) |
| bool | wlmim_pointer_parse_config (bspl_dict_t *config_dict_ptr, struct wlmim_pointer_param *param_ptr) |
| bool | wlmim_pointer_enabled (wlmim_pointer_t *pointer_ptr) |
| static void | _wlmim_pointer_test_parse (bs_test_t *test_ptr) |
Variables | |
| static const bspl_enum_desc_t | _wlmim_pointer_click_methods [] |
| static const bspl_enum_desc_t | _wlmim_pointer_scroll_methods [] |
| static const bspl_desc_t | _wlmim_pointer_config_touchpad [] |
| static const bspl_desc_t | _wlmim_pointer_config [] |
| static const bs_test_case_t | wlmim_pointer_test_cases [] |
| const bs_test_set_t | wlmim_pointer_test_set |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| void _wlmim_pointer_apply | ( | wlmim_pointer_t * | p, |
| const struct wlmim_pointer_param * | param_ptr | ||
| ) |
Applies the touchpad configuration to the pointer input device.
A no-op if the device is not a touchpad, ie. has zero 'tap fingers'.
| p | |
| param_ptr |
|
static |
Tests parsing the dict.
| wlmim_pointer_t * wlmim_pointer_create | ( | struct wlr_input_device * | wlr_input_device_ptr, |
| const struct wlmim_pointer_param * | param_ptr | ||
| ) |
Creates a pointer, and configures it as specified.
| wlr_input_device_ptr | |
| param_ptr |
| void wlmim_pointer_destroy | ( | wlmim_pointer_t * | pointer_ptr | ) |
Destroys the pointer.
| pointer_ptr |
| bool wlmim_pointer_enabled | ( | wlmim_pointer_t * | pointer_ptr | ) |
| bool wlmim_pointer_parse_config | ( | bspl_dict_t * | config_dict_ptr, |
| struct wlmim_pointer_param * | param_ptr | ||
| ) |
Parses the pointer-specific parts of the config dict.
| config_dict_ptr | |
| param_ptr |
|
static |
Enum values for "ClickMethod"
|
static |
Enum definition for pointer-related config section(s).
|
static |
Plist descriptor for the "Touchpad" section.
|
static |
Enum values for "ScrollMethod"
|
static |
Unit test cases.
| const bs_test_set_t wlmim_pointer_test_set |
Unit test set for pointers.