wlmaker
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
pointer.h File Reference
#include <libbase/libbase.h>
#include <libbase/plist.h>
#include <libinput.h>
#include <stdbool.h>
Include dependency graph for pointer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wlmim_pointer_param
 

Typedefs

typedef struct _wlmim_pointer_t wlmim_pointer_t
 

Functions

wlmim_pointer_twlmim_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_enabled (wlmim_pointer_t *pointer_ptr)
 
bool wlmim_pointer_parse_config (bspl_dict_t *config_dict_ptr, struct wlmim_pointer_param *param_ptr)
 

Variables

const bs_test_set_t wlmim_pointer_test_set
 

Detailed Description

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.

Typedef Documentation

◆ wlmim_pointer_t

Forward declaration: Pointer handle.

Function Documentation

◆ wlmim_pointer_create()

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.

Parameters
wlr_input_device_ptr
param_ptr
Returns
A pointer handle or NULL on error.

◆ wlmim_pointer_destroy()

void wlmim_pointer_destroy ( wlmim_pointer_t pointer_ptr)

Destroys the pointer.

Parameters
pointer_ptr

◆ wlmim_pointer_enabled()

bool wlmim_pointer_enabled ( wlmim_pointer_t pointer_ptr)

◆ wlmim_pointer_parse_config()

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.

Parameters
config_dict_ptr
param_ptr
Returns
true on success

Variable Documentation

◆ wlmim_pointer_test_set

const bs_test_set_t wlmim_pointer_test_set
extern

Unit test set for pointers.