wlmaker
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
bordered.h File Reference
#include "container.h"
#include "rectangle.h"
#include "style.h"
Include dependency graph for bordered.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _wlmtk_bordered_t
 

Typedefs

typedef struct _wlmtk_bordered_t wlmtk_bordered_t
 

Functions

bool wlmtk_bordered_init (wlmtk_bordered_t *bordered_ptr, wlmtk_env_t *env_ptr, wlmtk_element_t *element_ptr, const wlmtk_margin_style_t *style_ptr)
 
void wlmtk_bordered_fini (wlmtk_bordered_t *bordered_ptr)
 
void wlmtk_bordered_set_style (wlmtk_bordered_t *bordered_ptr, const wlmtk_margin_style_t *style_ptr)
 

Variables

const bs_test_case_t wlmtk_bordered_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_bordered_t

Forward declaration: Bordered container state.

Function Documentation

◆ wlmtk_bordered_fini()

void wlmtk_bordered_fini ( wlmtk_bordered_t * bordered_ptr)

Un-initializes the bordered element.

Parameters
bordered_ptr

◆ wlmtk_bordered_init()

bool wlmtk_bordered_init ( wlmtk_bordered_t * bordered_ptr,
wlmtk_env_t * env_ptr,
wlmtk_element_t * element_ptr,
const wlmtk_margin_style_t * style_ptr )

Initializes the bordered element.

The bordered element positions the element within such that north-western corner is at (0, 0).

Parameters
bordered_ptr
env_ptr
element_ptr
style_ptr
Returns
true on success.

◆ wlmtk_bordered_set_style()

void wlmtk_bordered_set_style ( wlmtk_bordered_t * bordered_ptr,
const wlmtk_margin_style_t * style_ptr )

Updates the style.

Parameters
bordered_ptr
style_ptr

Variable Documentation

◆ wlmtk_bordered_test_cases

const bs_test_case_t wlmtk_bordered_test_cases[]
extern

Unit test cases.