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

Classes

struct  _wlmtk_env_t
 
struct  wlmtk_env_cursor_lookup_t
 

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)
 

Variables

static const wlmtk_env_cursor_lookup_t _wlmtk_env_cursor_lookup []
 

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_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

Variable Documentation

◆ _wlmtk_env_cursor_lookup

const wlmtk_env_cursor_lookup_t _wlmtk_env_cursor_lookup[]
static
Initial value:
= {
{ WLMTK_CURSOR_DEFAULT, "default" },
{ WLMTK_CURSOR_RESIZE_S, "s-resize" },
{ WLMTK_CURSOR_RESIZE_SE, "se-resize" },
{ WLMTK_CURSOR_RESIZE_SW, "sw-resize" },
{ 0, NULL },
}
@ WLMTK_CURSOR_DEFAULT
Definition env.h:40
@ WLMTK_CURSOR_RESIZE_S
Definition env.h:42
@ WLMTK_CURSOR_RESIZE_SE
Definition env.h:44
@ WLMTK_CURSOR_RESIZE_SW
Definition env.h:46

Lookup table for xcursor names.