wlmaker
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
input.h File Reference
#include <stdint.h>
Include dependency graph for input.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _wlmtk_button_event_t
 
struct  wlmtk_pointer_motion_event_t
 

Typedefs

typedef struct _wlmtk_button_event_t wlmtk_button_event_t
 
typedef struct _wlmtk_pointer_t wlmtk_pointer_t
 

Enumerations

enum  wlmtk_button_event_type_t { WLMTK_BUTTON_DOWN , WLMTK_BUTTON_UP , WLMTK_BUTTON_CLICK , WLMTK_BUTTON_DOUBLE_CLICK }
 
enum  wlmtk_pointer_cursor_t {
  WLMTK_POINTER_CURSOR_DEFAULT = 0 , WLMTK_POINTER_CURSOR_RESIZE_S , WLMTK_POINTER_CURSOR_RESIZE_SE , WLMTK_POINTER_CURSOR_RESIZE_SW ,
  WLMTK_POINTER_CURSOR_MAX
}
 

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)
 

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

◆ wlmtk_button_event_t

Forward declaration: Button event.

◆ wlmtk_pointer_t

Forward declaration: Pointer.

Enumeration Type Documentation

◆ wlmtk_button_event_type_t

Button state.

◆ wlmtk_pointer_cursor_t

Cursor types.

Enumerator
WLMTK_POINTER_CURSOR_DEFAULT 

Default.

WLMTK_POINTER_CURSOR_RESIZE_S 

Resizing, southern border.

WLMTK_POINTER_CURSOR_RESIZE_SE 

Resizing, south-eastern corner.

WLMTK_POINTER_CURSOR_RESIZE_SW 

Resizing, south-western corner.

WLMTK_POINTER_CURSOR_MAX 

Sentinel: Maximum value.

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.