wlmaker
|
#include "dock.h"
#include <inttypes.h>
#include <libbase/libbase.h>
#include <stdbool.h>
#include <stdlib.h>
#include "box.h"
#include "container.h"
Classes | |
struct | _wlmtk_dock_t |
Functions | |
static uint32_t | _wlmtk_dock_panel_request_size (wlmtk_panel_t *panel_ptr, int width, int height) |
static wlmtk_box_orientation_t | _wlmtk_dock_orientation (wlmtk_dock_t *dock_ptr) |
static bool | _wlmtk_dock_positioning (wlmtk_dock_t *dock_ptr, wlmtk_panel_positioning_t *panel_positioning_ptr) |
wlmtk_dock_t * | wlmtk_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_t * | wlmtk_dock_panel (wlmtk_dock_t *dock_ptr) |
wlmtk_element_t * | wlmtk_dock_element (wlmtk_dock_t *dock_ptr) |
static void | test_create_destroy (bs_test_t *test_ptr) |
Variables | |
static const wlmtk_panel_vmt_t | _wlmtk_dock_panel_vmt |
const bs_test_case_t | wlmtk_dock_test_cases [] |
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 |
Derives the box' orientation for the dock.
|
static |
Returns the panel to change to the specified size.
panel_ptr | |
width | |
height |
|
static |
Fills the panel positioning parameters from the dock's.
|
static |
Exercises ctor and dtor.
void wlmtk_dock_add_tile | ( | wlmtk_dock_t * | dock_ptr, |
wlmtk_tile_t * | tile_ptr | ||
) |
Adds the tile to the dock.
dock_ptr | |
tile_ptr |
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.
dock_positioning_ptr | |
style_ptr |
void wlmtk_dock_destroy | ( | wlmtk_dock_t * | dock_ptr | ) |
Destroys the dock.
dock_ptr |
wlmtk_element_t * wlmtk_dock_element | ( | wlmtk_dock_t * | dock_ptr | ) |
dock_ptr
. wlmtk_panel_t * wlmtk_dock_panel | ( | wlmtk_dock_t * | dock_ptr | ) |
dock_ptr
. void wlmtk_dock_remove_tile | ( | wlmtk_dock_t * | dock_ptr, |
wlmtk_tile_t * | tile_ptr | ||
) |
Removes the tile from the dock.
dock_ptr | |
tile_ptr |
|
static |
Virtual method table of the panel.
const bs_test_case_t wlmtk_dock_test_cases[] |
Unit tests for wlmtk_dock_t.