wlmaker
Loading...
Searching...
No Matches
Classes | Functions | Variables
xdg_toplevel.c File Reference
#include "xdg_toplevel.h"
#include <wayland-client.h>
#include "xdg-shell-client-protocol.h"
#include "buffer.h"
Include dependency graph for xdg_toplevel.c:

Classes

struct  _wlclient_xdg_toplevel_t
 

Functions

static void _wlclient_xdg_surface_configure (void *data, struct xdg_surface *xdg_surface, uint32_t serial)
 
wlclient_xdg_toplevel_twlclient_xdg_toplevel_create (wlclient_t *wlclient_ptr)
 
void wlclient_xdg_toplevel_destroy (wlclient_xdg_toplevel_t *toplevel_ptr)
 
bool wlclient_xdg_supported (wlclient_t *wlclient_ptr)
 

Variables

static const struct xdg_surface_listener _wlclient_xdg_surface_listener
 

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

◆ _wlclient_xdg_surface_configure()

void _wlclient_xdg_surface_configure ( void * data_ptr,
struct xdg_surface * xdg_surface_ptr,
uint32_t serial )
static

Handler for the configure event of the XDG surface.

Parameters
data_ptrUntyped pointer to wlclient_xdg_toplevel_t.
xdg_surface_ptr
serial

◆ wlclient_xdg_supported()

bool wlclient_xdg_supported ( wlclient_t * wlclient_ptr)

Returns whether the XDG shell protocol is supported on the client.

Parameters
wlclient_ptr

◆ wlclient_xdg_toplevel_create()

wlclient_xdg_toplevel_t * wlclient_xdg_toplevel_create ( wlclient_t * wlclient_ptr)

Creates a XDG toplevel.

Parameters
wlclient_ptr
Returns
State of the toplevel or NULL on error.

◆ wlclient_xdg_toplevel_destroy()

void wlclient_xdg_toplevel_destroy ( wlclient_xdg_toplevel_t * toplevel_ptr)

Destroys the XDG toplevel.

Parameters
toplevel_ptr

Variable Documentation

◆ _wlclient_xdg_surface_listener

const struct xdg_surface_listener _wlclient_xdg_surface_listener
static
Initial value:
= {
}
static void _wlclient_xdg_surface_configure(void *data, struct xdg_surface *xdg_surface, uint32_t serial)
Definition xdg_toplevel.c:129

Listeners for the XDG surface.