wlmaker
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
cursor.h File Reference
#include <wayland-server-core.h>
#include "toolkit/toolkit.h"
#include "server.h"
Include dependency graph for cursor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _wlmaker_cursor_t
 

Typedefs

typedef struct _wlmaker_cursor_t wlmaker_cursor_t
 

Functions

wlmaker_cursor_twlmaker_cursor_create (wlmaker_server_t *server_ptr, struct wlr_output_layout *wlr_output_layout_ptr)
 
void wlmaker_cursor_destroy (wlmaker_cursor_t *cursor_ptr)
 
void wlmaker_cursor_attach_input_device (wlmaker_cursor_t *cursor_ptr, struct wlr_input_device *wlr_input_device_ptr)
 
void wlmaker_cursor_get_position (const wlmaker_cursor_t *cursor_ptr, double *x_ptr, double *y_ptr)
 

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

◆ wlmaker_cursor_t

Forward declaration of wlmaker cursor state.

Function Documentation

◆ wlmaker_cursor_attach_input_device()

void wlmaker_cursor_attach_input_device ( wlmaker_cursor_t cursor_ptr,
struct wlr_input_device *  wlr_input_device_ptr 
)

Attaches the input device. May be a pointer, touch or tablet_tool device.

Parameters
cursor_ptr
wlr_input_device_ptr

◆ wlmaker_cursor_create()

wlmaker_cursor_t * wlmaker_cursor_create ( wlmaker_server_t server_ptr,
struct wlr_output_layout *  wlr_output_layout_ptr 
)

Creates the cursor handlers.

Parameters
server_ptr
wlr_output_layout_ptr
Returns
The cursor handler or NULL on error.

◆ wlmaker_cursor_destroy()

void wlmaker_cursor_destroy ( wlmaker_cursor_t cursor_ptr)

Destroys the cursor handlers.

Parameters
cursor_ptr

◆ wlmaker_cursor_get_position()

void wlmaker_cursor_get_position ( const wlmaker_cursor_t cursor_ptr,
double *  x_ptr,
double *  y_ptr 
)

Retrieves the current pointer's position into |*x_ptr|, |*y_ptr|.

Parameters
cursor_ptr
x_ptrMay be NULL.
y_ptrMay be NULL.