wlmaker
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
input.c File Reference
#include "input.h"
#include <libbase/libbase.h>
#include <stdlib.h>
#include <wlr/types/wlr_cursor.h>
Include dependency graph for input.c:

Classes

struct  _wlmtk_pointer_t
 

Functions

wlmtk_pointer_twlmtk_pointer_create (struct wlr_cursor *wlr_cursor_ptr, struct wlr_xcursor_manager *wlr_xcursor_manager_ptr)
 
void wlmtk_pointer_destroy (wlmtk_pointer_t *pointer_ptr)
 
void wlmtk_pointer_set_cursor (wlmtk_pointer_t *pointer_ptr, wlmtk_pointer_cursor_t cursor)
 

Variables

static const char * _wlmtk_pointer_cursor_names []
 

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.

Function Documentation

◆ wlmtk_pointer_create()

wlmtk_pointer_t * wlmtk_pointer_create ( struct wlr_cursor *  wlr_cursor_ptr,
struct wlr_xcursor_manager *  wlr_xcursor_manager_ptr 
)

Creates the pointer handler.

Parameters
wlr_cursor_ptr
wlr_xcursor_manager_ptr
Returns
A wlmtk_pointer_t or NULL on error.

◆ wlmtk_pointer_destroy()

void wlmtk_pointer_destroy ( wlmtk_pointer_t pointer_ptr)

Destroys the pointer handler.

Parameters
pointer_ptr

◆ wlmtk_pointer_set_cursor()

void wlmtk_pointer_set_cursor ( wlmtk_pointer_t pointer_ptr,
wlmtk_pointer_cursor_t  cursor 
)

Sets the cursor for the pointer.

Variable Documentation

◆ _wlmtk_pointer_cursor_names

const char* _wlmtk_pointer_cursor_names[]
static
Initial value:
= {
[WLMTK_POINTER_CURSOR_MAX] = "default",
}
@ WLMTK_POINTER_CURSOR_RESIZE_SE
Definition input.h:54
@ WLMTK_POINTER_CURSOR_MAX
Definition input.h:59
@ WLMTK_POINTER_CURSOR_DEFAULT
Definition input.h:50
@ WLMTK_POINTER_CURSOR_RESIZE_S
Definition input.h:52
@ WLMTK_POINTER_CURSOR_RESIZE_SW
Definition input.h:56

Lookup table for XCursor names.