wlmaker
Loading...
Searching...
No Matches
env.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _wlmtk_env_t wlmtk_env_t
 

Enumerations

enum  wlmtk_env_cursor_t { WLMTK_CURSOR_DEFAULT , WLMTK_CURSOR_RESIZE_S , WLMTK_CURSOR_RESIZE_SE , WLMTK_CURSOR_RESIZE_SW }
 

Functions

wlmtk_env_twlmtk_env_create (struct wlr_cursor *wlr_cursor_ptr, struct wlr_xcursor_manager *wlr_xcursor_manager_ptr, struct wlr_seat *wlr_seat_ptr)
 
void wlmtk_env_destroy (wlmtk_env_t *env_ptr)
 
void wlmtk_env_set_cursor (wlmtk_env_t *env_ptr, wlmtk_env_cursor_t cursor)
 
struct wlr_seat * wlmtk_env_wlr_seat (wlmtk_env_t *env_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

◆ wlmtk_env_t

typedef struct _wlmtk_env_t wlmtk_env_t

Forward declaration: Environment.

Enumeration Type Documentation

◆ wlmtk_env_cursor_t

Cursor types.

Enumerator
WLMTK_CURSOR_DEFAULT 

Default.

WLMTK_CURSOR_RESIZE_S 

Resizing, southern border.

WLMTK_CURSOR_RESIZE_SE 

Resizing, south-eastern corner.

WLMTK_CURSOR_RESIZE_SW 

Resizing, south-western corner.

Function Documentation

◆ wlmtk_env_create()

wlmtk_env_t * wlmtk_env_create ( struct wlr_cursor * wlr_cursor_ptr,
struct wlr_xcursor_manager * wlr_xcursor_manager_ptr,
struct wlr_seat * wlr_seat_ptr )

Creates an environment state from the cursor.

Parameters
wlr_cursor_ptr
wlr_xcursor_manager_ptr
wlr_seat_ptr
Returns
An environment state or NULL on error.

◆ wlmtk_env_destroy()

void wlmtk_env_destroy ( wlmtk_env_t * env_ptr)

Destroys the environment state.

Parameters
env_ptr

◆ wlmtk_env_set_cursor()

void wlmtk_env_set_cursor ( wlmtk_env_t * env_ptr,
wlmtk_env_cursor_t cursor )

Sets a cursor.

Parameters
env_ptr
cursor

◆ wlmtk_env_wlr_seat()

struct wlr_seat * wlmtk_env_wlr_seat ( wlmtk_env_t * env_ptr)

Returns the pointer to the wlr_seat.

Parameters
env_ptr