wlmaker
|
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_t * | wlmaker_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) |
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 struct _wlmaker_cursor_t wlmaker_cursor_t |
Forward declaration of wlmaker cursor state.
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.
cursor_ptr | |
wlr_input_device_ptr |
wlmaker_cursor_t * wlmaker_cursor_create | ( | wlmaker_server_t * | server_ptr, |
struct wlr_output_layout * | wlr_output_layout_ptr | ||
) |
Creates the cursor handlers.
server_ptr | |
wlr_output_layout_ptr |
void wlmaker_cursor_destroy | ( | wlmaker_cursor_t * | cursor_ptr | ) |
Destroys the cursor handlers.
cursor_ptr |
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|.
cursor_ptr | |
x_ptr | May be NULL. |
y_ptr | May be NULL. |