wlmaker
Loading...
Searching...
No Matches
dock_app.h File Reference
#include "interactive.h"
#include "view.h"
Include dependency graph for dock_app.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wlmaker_dock_app_config_t
 

Typedefs

typedef struct _wlmaker_dock_app_t wlmaker_dock_app_t
 

Functions

wlmaker_dock_app_twlmaker_dock_app_create (wlmaker_view_t *view_ptr, struct wlr_scene_tree *wlr_scene_tree_ptr, int x, int y, wlmaker_dock_app_config_t *dock_app_config_ptr)
 
void wlmaker_dock_app_destroy (wlmaker_dock_app_t *dock_app_ptr)
 
wlmaker_dock_app_twlmaker_dock_app_from_dlnode (bs_dllist_node_t *dlnode_ptr)
 
bs_dllist_node_t * wlmaker_dlnode_from_dock_app (wlmaker_dock_app_t *dock_app_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.

An application attached to the dock.

More verbosely: Handlers and status for the interactive element describing an application attached to the wlmaker dock. Used to launch applications conveniently.

Typedef Documentation

◆ wlmaker_dock_app_t

Forward declaration: State of the dock-attached application.

Function Documentation

◆ wlmaker_dlnode_from_dock_app()

bs_dllist_node_t * wlmaker_dlnode_from_dock_app ( wlmaker_dock_app_t * dock_app_ptr)

Type cast: Returns the dlnode from |dock_app_ptr|.

Parameters
dock_app_ptr
Returns
A pointer to the bs_dllist_node_t of wlmaker_dock_app_t.

◆ wlmaker_dock_app_create()

wlmaker_dock_app_t * wlmaker_dock_app_create ( wlmaker_view_t * view_ptr,
struct wlr_scene_tree * wlr_scene_tree_ptr,
int x,
int y,
wlmaker_dock_app_config_t * dock_app_config_ptr )

Creates an application attached to the dock.

Parameters
view_ptr
wlr_scene_tree_ptr
xX-Position relative to parent.
yY-Position relative to parent.
dock_app_config_ptrConfiguration of the docked application. Must outlive the dock app.
Returns
The handle for the attached application or NULL on error.

◆ wlmaker_dock_app_destroy()

void wlmaker_dock_app_destroy ( wlmaker_dock_app_t * dock_app_ptr)

Destroys the application.

Parameters
dock_app_ptr

◆ wlmaker_dock_app_from_dlnode()

wlmaker_dock_app_t * wlmaker_dock_app_from_dlnode ( bs_dllist_node_t * dlnode_ptr)

Type cast: Returns the wlmaker_dock_app_t from the dlnode.

Parameters
dlnode_ptr
Returns
A pointer to the wlmaker_dock_app_t holding bs_dllist_node_t.