wlmaker
Loading...
Searching...
No Matches
Classes | Functions
xwl_toplevel.c File Reference
#include "xwl_toplevel.h"
#include <libbase/libbase.h>
#include <stdlib.h>
#include <wayland-server-core.h>
#include <wayland-util.h>
#include "config.h"
#include "tl_menu.h"
Include dependency graph for xwl_toplevel.c:

Classes

struct  _wlmaker_xwl_toplevel_t
 

Functions

static void _xwl_toplevel_handle_surface_map (struct wl_listener *listener_ptr, void *data_ptr)
 
static void _xwl_toplevel_handle_surface_unmap (struct wl_listener *listener_ptr, void *data_ptr)
 
wlmaker_xwl_toplevel_twlmaker_xwl_toplevel_create (wlmaker_xwl_content_t *content_ptr, wlmaker_server_t *server_ptr)
 
void wlmaker_xwl_toplevel_destroy (wlmaker_xwl_toplevel_t *xwl_toplevel_ptr)
 
void wlmaker_xwl_toplevel_set_decorations (wlmaker_xwl_toplevel_t *xwl_toplevel_ptr, bool decorated)
 
wlmtk_window_twlmtk_window_from_xwl_toplevel (wlmaker_xwl_toplevel_t *xwl_toplevel_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

◆ _xwl_toplevel_handle_surface_map()

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

Surface map handler: also indicates the window can be mapped.

◆ _xwl_toplevel_handle_surface_unmap()

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

Surface unmap: indicates the window should be unmapped.

◆ wlmaker_xwl_toplevel_create()

wlmaker_xwl_toplevel_t * wlmaker_xwl_toplevel_create ( wlmaker_xwl_content_t content_ptr,
wlmaker_server_t server_ptr 
)

Creates a toplevel XWayland window.

Parameters
content_ptr
server_ptr

◆ wlmaker_xwl_toplevel_destroy()

void wlmaker_xwl_toplevel_destroy ( wlmaker_xwl_toplevel_t xwl_toplevel_ptr)

Destroys the toplevel XWayland window.

Parameters
xwl_toplevel_ptr

◆ wlmaker_xwl_toplevel_set_decorations()

void wlmaker_xwl_toplevel_set_decorations ( wlmaker_xwl_toplevel_t xwl_toplevel_ptr,
bool  decorated 
)

Sets decoration for the toplevel window.

Parameters
xwl_toplevel_ptr
decorated

◆ wlmtk_window_from_xwl_toplevel()

wlmtk_window_t * wlmtk_window_from_xwl_toplevel ( wlmaker_xwl_toplevel_t xwl_toplevel_ptr)

Accessor: Exposes wlmtk_window_t.