wlmaker
Loading...
Searching...
No Matches
Classes | Functions
tilebox.c File Reference
#include "tilebox.h"
#include <stdbool.h>
#include <stdlib.h>
#include "libbase/libbase.h"
#include "toolkit/toolkit.h"
Include dependency graph for tilebox.c:

Classes

struct  _wlmdock_tilebox
 

Functions

wlmdock_tilebox_t * wlmdock_tilebox_create (wlmtk_box_orientation_t orientation, bool reverse, const struct wlmtk_dock_style *style_ptr)
 
void wlmdock_tilebox_destroy (wlmdock_tilebox_t *tilebox_ptr)
 
wlmtk_element_t * wlmdock_tilebox_element (wlmdock_tilebox_t *tilebox_ptr)
 
wlmtk_container_t * wlmdock_tilebox_container (wlmdock_tilebox_t *tilebox_ptr)
 
void wlmdock_tilebox_add_tile (wlmdock_tilebox_t *tilebox_ptr, wlmtk_tile_t *tile_ptr)
 
void wlmdock_tilebox_remove_tile (wlmdock_tilebox_t *tilebox_ptr, wlmtk_tile_t *tile_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

◆ wlmdock_tilebox_add_tile()

void wlmdock_tilebox_add_tile ( wlmdock_tilebox_t *  tilebox_ptr,
wlmtk_tile_t *  tile_ptr 
)

Adds the tile to the tile box.

Parameters
tilebox_ptr
tile_ptr

◆ wlmdock_tilebox_container()

wlmtk_container_t * wlmdock_tilebox_container ( wlmdock_tilebox_t *  tilebox_ptr)

Returns the tilebox' root wlmtk_container_t.

Parameters
tilebox_ptr
Returns
Pointer to the super container of wlmdock_tilebox_t::tile_box.

◆ wlmdock_tilebox_create()

wlmdock_tilebox_t * wlmdock_tilebox_create ( wlmtk_box_orientation_t  orientation,
bool  reverse,
const struct wlmtk_dock_style *  style_ptr 
)

Creates a tile box.

Parameters
orientation
reverse
style_ptr
Returns
Handle to the tile box' state, or NULL on error.

◆ wlmdock_tilebox_destroy()

void wlmdock_tilebox_destroy ( wlmdock_tilebox_t *  tilebox_ptr)

Destroys the tile box.

Parameters
tilebox_ptr

◆ wlmdock_tilebox_element()

wlmtk_element_t * wlmdock_tilebox_element ( wlmdock_tilebox_t *  tilebox_ptr)

Returns the tilebox' root wlmtk_element_t.

Parameters
tilebox_ptr
Returns
Pointer to the super element of wlmdock_tilebox_t::tile_box.

◆ wlmdock_tilebox_remove_tile()

void wlmdock_tilebox_remove_tile ( wlmdock_tilebox_t *  tilebox_ptr,
wlmtk_tile_t *  tile_ptr 
)

Removes the tile from the tilebox.

Parameters
tilebox_ptr
tile_ptrTile to remove. Must have been added to the tile box before.