wlmaker
Loading...
Searching...
No Matches
tile_container.c File Reference
#include "tile_container.h"
#include "view.h"
#include <libbase/libbase.h>
Include dependency graph for tile_container.c:

Classes

struct  _wlmaker_tile_container_t
 

Functions

static wlmaker_tile_container_twlmaker_tile_container_from_view (wlmaker_view_t *view_ptr)
 
static void tile_container_get_size (wlmaker_view_t *view_ptr, uint32_t *width_ptr, uint32_t *height_ptr)
 
static void arrange_tiles (wlmaker_tile_container_t *tile_container_ptr)
 
wlmaker_tile_container_twlmaker_tile_container_create (wlmaker_server_t *server_ptr, wlmaker_workspace_t *workspace_ptr)
 
void wlmaker_tile_container_destroy (wlmaker_tile_container_t *tile_container_ptr)
 
void wlmaker_tile_container_add (wlmaker_tile_container_t *tile_container_ptr, wlmaker_iconified_t *iconified_ptr)
 
void wlmaker_tile_container_remove (wlmaker_tile_container_t *tile_container_ptr, wlmaker_iconified_t *iconified_ptr)
 

Variables

const wlmaker_view_impl_t tile_container_view_impl
 

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

◆ arrange_tiles()

void arrange_tiles ( wlmaker_tile_container_t * tile_container_ptr)
static

Arrange the tiles, according to order from the tiles list.

Parameters
tile_container_ptr

◆ tile_container_get_size()

static void tile_container_get_size ( wlmaker_view_t * view_ptr,
uint32_t * width_ptr,
uint32_t * height_ptr )
static

Retrieves the size of the tile container, including it's tiles.

Parameters
view_ptr
width_ptr
height_ptr

◆ wlmaker_tile_container_add()

void wlmaker_tile_container_add ( wlmaker_tile_container_t * tile_container_ptr,
wlmaker_iconified_t * iconified_ptr )

Adds the iconified_ptr to the tile container.

Parameters
tile_container_ptr
iconified_ptr

◆ wlmaker_tile_container_create()

wlmaker_tile_container_t * wlmaker_tile_container_create ( wlmaker_server_t * server_ptr,
wlmaker_workspace_t * workspace_ptr )

Creates a tile container.

Tile containers contain... tiles.

Parameters
server_ptr
workspace_ptr

◆ wlmaker_tile_container_destroy()

void wlmaker_tile_container_destroy ( wlmaker_tile_container_t * tile_container_ptr)

Destroys the tile container.

Parameters
tile_container_ptr

◆ wlmaker_tile_container_from_view()

wlmaker_tile_container_t * wlmaker_tile_container_from_view ( wlmaker_view_t * view_ptr)
static

Gets the wlmaker_tile_container_t from the view_ptr.

Parameters
view_ptr

◆ wlmaker_tile_container_remove()

void wlmaker_tile_container_remove ( wlmaker_tile_container_t * tile_container_ptr,
wlmaker_iconified_t * iconified_ptr )

Adds the iconified_ptr to the tile container.

Parameters
tile_container_ptr
iconified_ptr

Variable Documentation

◆ tile_container_view_impl

const wlmaker_view_impl_t tile_container_view_impl
Initial value:
= {
.set_activated = NULL,
}
static void tile_container_get_size(wlmaker_view_t *view_ptr, uint32_t *width_ptr, uint32_t *height_ptr)
Definition tile_container.c:206

View implementor methods.