wlmaker
Loading...
Searching...
No Matches
Classes | Macros | Functions
layer_shell.c File Reference
#include "layer_shell.h"
#include <libbase/libbase.h>
#include <stdlib.h>
#include <wayland-server-core.h>
#include <wayland-util.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include "layer_panel.h"
#include "toolkit/toolkit.h"
Include dependency graph for layer_shell.c:

Classes

struct  _wlmaker_layer_shell_t
 

Functions

static void handle_destroy (struct wl_listener *listener_ptr, void *data_ptr)
 
static void handle_new_surface (struct wl_listener *listener_ptr, void *data_ptr)
 
wlmaker_layer_shell_twlmaker_layer_shell_create (wlmaker_server_t *server_ptr)
 
void wlmaker_layer_shell_destroy (wlmaker_layer_shell_t *layer_shell_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.

Function Documentation

◆ handle_destroy()

void handle_destroy ( struct wl_listener *  listener_ptr,
void *  data_ptr 
)
static

Event handler for the destroy signal raised by wlr_layer_shell_v1.

Parameters
listener_ptr
data_ptr

◆ handle_new_surface()

void handle_new_surface ( struct wl_listener *  listener_ptr,
void *  data_ptr 
)
static

Event handler for the new_surface signal raised by wlr_layer_shell_v1.

Parameters
listener_ptr
data_ptr

◆ wlmaker_layer_shell_create()

wlmaker_layer_shell_t * wlmaker_layer_shell_create ( wlmaker_server_t server_ptr)

Creates a layer shell handler.

Parameters
server_ptr
Returns
A handle to the layer shell handler, or NULL on error.

◆ wlmaker_layer_shell_destroy()

void wlmaker_layer_shell_destroy ( wlmaker_layer_shell_t layer_shell_ptr)

Destroys the layer shell handler.

Parameters
layer_shell_ptr