|
wlmaker
|
#include <stdbool.h>#include "libbase/libbase.h"#include "element.h"#include "container.h"#include "rectangle.h"#include "style.h"

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_element_t *element_ptr, const struct wlmtk_margin_style *style_ptr) |
| void | wlmtk_bordered_fini (wlmtk_bordered_t *bordered_ptr) |
| void | wlmtk_bordered_set_style (wlmtk_bordered_t *bordered_ptr, const struct wlmtk_margin_style *style_ptr) |
| wlmtk_element_t * | wlmtk_bordered_element (wlmtk_bordered_t *bordered_ptr) |
Variables | |
| const bs_test_set_t | wlmtk_bordered_test_set |
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 struct _wlmtk_bordered_t wlmtk_bordered_t |
Forward declaration: Bordered container state.
| wlmtk_element_t * wlmtk_bordered_element | ( | wlmtk_bordered_t * | bordered_ptr | ) |
Returns the superclass wlmtk_element_t for bordered_ptr.
| void wlmtk_bordered_fini | ( | wlmtk_bordered_t * | bordered_ptr | ) |
Un-initializes the bordered element.
| bordered_ptr |
| bool wlmtk_bordered_init | ( | wlmtk_bordered_t * | bordered_ptr, |
| wlmtk_element_t * | element_ptr, | ||
| const struct wlmtk_margin_style * | style_ptr | ||
| ) |
Initializes the bordered element.
The bordered element positions the element within such that north-western corner is at (0, 0).
| bordered_ptr | |
| element_ptr | |
| style_ptr |
| void wlmtk_bordered_set_style | ( | wlmtk_bordered_t * | bordered_ptr, |
| const struct wlmtk_margin_style * | style_ptr | ||
| ) |
Updates the style.
| bordered_ptr | |
| style_ptr |
|
extern |
Unit test cases.