wlmaker
|
#include "layer_surface.h"
#include "toolkit/toolkit.h"
#include "view.h"
#include <libbase/libbase.h>
Classes | |
struct | _wlmaker_layer_surface_t |
Functions | |
static wlmaker_layer_surface_t * | layer_surface_from_view (wlmaker_view_t *view_ptr) |
static void | layer_surface_get_size (wlmaker_view_t *view_ptr, uint32_t *width_ptr, uint32_t *height_ptr) |
static void | handle_destroy (struct wl_listener *listener_ptr, void *data_ptr) |
static void | handle_map (struct wl_listener *listener_ptr, void *data_ptr) |
static void | handle_unmap (struct wl_listener *listener_ptr, void *data_ptr) |
static void | handle_new_popup (struct wl_listener *listener_ptr, void *data_ptr) |
static void | handle_surface_commit (struct wl_listener *listener_ptr, void *data_ptr) |
wlmaker_layer_surface_t * | wlmaker_layer_surface_create (struct wlr_layer_surface_v1 *wlr_layer_surface_v1_ptr, wlmaker_server_t *server_ptr) |
void | wlmaker_layer_surface_destroy (wlmaker_layer_surface_t *layer_surface_ptr) |
bool | wlmaker_layer_surface_is_exclusive (wlmaker_layer_surface_t *layer_surface_ptr) |
void | wlmaker_layer_surface_configure (wlmaker_layer_surface_t *layer_surface_ptr, const struct wlr_box *full_area_ptr, struct wlr_box *usable_area_ptr) |
bs_dllist_node_t * | wlmaker_dlnode_from_layer_surface (wlmaker_layer_surface_t *layer_surface_ptr) |
wlmaker_layer_surface_t * | wlmaker_layer_surface_from_dlnode (bs_dllist_node_t *dlnode_ptr) |
Variables | |
const wlmaker_view_impl_t | layer_surface_view_impl |
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.
|
static |
Handler for the destroy
signal of the wlr_layer_surface_v1
.
listener_ptr | |
data_ptr |
|
static |
Handler for the map
signal of the wlr_layer_surface_v1
.
listener_ptr | |
data_ptr |
|
static |
Handler for the new_popup
signal of the wlr_layer_surface_v1
.
listener_ptr | |
data_ptr | Points to a wlr_xdg_popup . |
|
static |
Handler for the commit
signal raised by wlr_surface
.
listener_ptr | |
data_ptr | Points to the wlr_surface raising the signla. |
|
static |
Handler for the unmap
signal of the wlr_layer_surface_v1
.
listener_ptr | |
data_ptr |
|
static |
Typecast: Retrieves the wlmaker_layer_surface_t
for the given |view_ptr|.
view_ptr |
wlmaker_layer_surface_t
holding |view_ptr|.
|
static |
Gets the size of the layer surface.
view_ptr | |
width_ptr | |
height_ptr |
bs_dllist_node_t * wlmaker_dlnode_from_layer_surface | ( | wlmaker_layer_surface_t * | layer_surface_ptr | ) |
Accessor: Gets the double-linked-list node from the layer.
layer_surface_ptr |
void wlmaker_layer_surface_configure | ( | wlmaker_layer_surface_t * | layer_surface_ptr, |
const struct wlr_box * | full_area_ptr, | ||
struct wlr_box * | usable_area_ptr ) |
Configures the layer surface, position its scene node in accordance to its current state, and update the remaining usable area.
layer_surface_ptr | |
full_area_ptr | |
usable_area_ptr |
wlmaker_layer_surface_t * wlmaker_layer_surface_create | ( | struct wlr_layer_surface_v1 * | wlr_layer_surface_v1_ptr, |
wlmaker_server_t * | server_ptr ) |
Creates a handler for the layer surface.
wlr_layer_surface_v1_ptr | |
server_ptr |
void wlmaker_layer_surface_destroy | ( | wlmaker_layer_surface_t * | layer_surface_ptr | ) |
Destroys the handler for the layer surface.
layer_surface_ptr |
wlmaker_layer_surface_t * wlmaker_layer_surface_from_dlnode | ( | bs_dllist_node_t * | dlnode_ptr | ) |
Type cast: Gets the wlmaker_layer_surface_t
holding |dlnode_ptr|.
dlnode_ptr |
wlmaker_layer_surface_t
. bool wlmaker_layer_surface_is_exclusive | ( | wlmaker_layer_surface_t * | layer_surface_ptr | ) |
layer_surface_ptr |
const wlmaker_view_impl_t layer_surface_view_impl |
View implementor methods.