wlmaker
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
dock.h File Reference
#include <libbase/libbase.h>
#include <wlr/util/edges.h>
#include "element.h"
#include "panel.h"
#include "style.h"
#include "tile.h"
Include dependency graph for dock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wlmtk_dock_positioning_t
 

Typedefs

typedef struct _wlmtk_dock_t wlmtk_dock_t
 

Functions

wlmtk_dock_twlmtk_dock_create (const wlmtk_dock_positioning_t *dock_positioning_ptr, const wlmtk_dock_style_t *style_ptr)
 
void wlmtk_dock_destroy (wlmtk_dock_t *dock_ptr)
 
void wlmtk_dock_add_tile (wlmtk_dock_t *dock_ptr, wlmtk_tile_t *tile_ptr)
 
void wlmtk_dock_remove_tile (wlmtk_dock_t *dock_ptr, wlmtk_tile_t *tile_ptr)
 
wlmtk_panel_twlmtk_dock_panel (wlmtk_dock_t *dock_ptr)
 
wlmtk_element_twlmtk_dock_element (wlmtk_dock_t *dock_ptr)
 

Variables

const bs_test_case_t wlmtk_dock_test_cases []
 

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.

Typedef Documentation

◆ wlmtk_dock_t

typedef struct _wlmtk_dock_t wlmtk_dock_t

Forward declaration: Dock handle.

Function Documentation

◆ wlmtk_dock_add_tile()

void wlmtk_dock_add_tile ( wlmtk_dock_t dock_ptr,
wlmtk_tile_t tile_ptr 
)

Adds the tile to the dock.

Parameters
dock_ptr
tile_ptr

◆ wlmtk_dock_create()

wlmtk_dock_t * wlmtk_dock_create ( const wlmtk_dock_positioning_t dock_positioning_ptr,
const wlmtk_dock_style_t style_ptr 
)

Creates a dock. A dock contains icons, launchers and the likes.

The dock is an implementation of a wlmtk_panel_t.

Parameters
dock_positioning_ptr
style_ptr
Returns
The dock handle, or NULL on error. Must be destroyed calling wlmtk_dock_destroy.

◆ wlmtk_dock_destroy()

void wlmtk_dock_destroy ( wlmtk_dock_t dock_ptr)

Destroys the dock.

Parameters
dock_ptr

◆ wlmtk_dock_element()

wlmtk_element_t * wlmtk_dock_element ( wlmtk_dock_t dock_ptr)
Returns
Pointer to the superclass wlmtk_element_t of dock_ptr.

◆ wlmtk_dock_panel()

wlmtk_panel_t * wlmtk_dock_panel ( wlmtk_dock_t dock_ptr)
Returns
Pointer to the superclass wlmtk_panel_t of dock_ptr.

◆ wlmtk_dock_remove_tile()

void wlmtk_dock_remove_tile ( wlmtk_dock_t dock_ptr,
wlmtk_tile_t tile_ptr 
)

Removes the tile from the dock.

Parameters
dock_ptr
tile_ptr

Variable Documentation

◆ wlmtk_dock_test_cases

const bs_test_case_t wlmtk_dock_test_cases[]
extern

Unit tests for wlmtk_dock_t.