| |
1 /* |
| |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
| |
3 * |
| |
4 * Copyright 2025 Olaf Wintermann. All rights reserved. |
| |
5 * |
| |
6 * Redistribution and use in source and binary forms, with or without |
| |
7 * modification, are permitted provided that the following conditions are met: |
| |
8 * |
| |
9 * 1. Redistributions of source code must retain the above copyright |
| |
10 * notice, this list of conditions and the following disclaimer. |
| |
11 * |
| |
12 * 2. Redistributions in binary form must reproduce the above copyright |
| |
13 * notice, this list of conditions and the following disclaimer in the |
| |
14 * documentation and/or other materials provided with the distribution. |
| |
15 * |
| |
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| |
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| |
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| |
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| |
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| |
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| |
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| |
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| |
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| |
26 * POSSIBILITY OF SUCH DAMAGE. |
| |
27 */ |
| |
28 |
| |
29 #ifndef UIC_ARGS_H |
| |
30 #define UIC_ARGS_H |
| |
31 |
| |
32 #include "../ui/container.h" |
| |
33 |
| |
34 #ifdef __cplusplus |
| |
35 extern "C" { |
| |
36 #endif |
| |
37 |
| |
38 |
| |
39 UIEXPORT UiContainerArgs* ui_container_args_new(void); |
| |
40 void ui_container_args_set_fill(UiContainerArgs *args, UiBool fill); |
| |
41 void ui_container_args_set_hexpand(UiContainerArgs *args, UiBool value); |
| |
42 void ui_container_args_set_vexpand(UiContainerArgs *args, UiBool value); |
| |
43 void ui_container_args_set_hfill(UiContainerArgs *args, UiBool value); |
| |
44 void ui_container_args_set_vfill(UiContainerArgs *args, UiBool value); |
| |
45 void ui_container_args_set_override_defaults(UiContainerArgs *args, UiBool value); |
| |
46 void ui_container_args_set_colspan(UiContainerArgs *args, int colspan); |
| |
47 void ui_container_args_set_rolspan(UiContainerArgs *args, int rowspan); |
| |
48 void ui_container_args_set_def_hexpand(UiContainerArgs *args, UiBool value); |
| |
49 void ui_container_args_set_def_vexpand(UiContainerArgs *args, UiBool value); |
| |
50 void ui_container_args_set_def_hfill(UiContainerArgs *args, UiBool value); |
| |
51 void ui_container_args_set_def_vfill(UiContainerArgs *args, UiBool value); |
| |
52 void ui_container_args_set_name(UiContainerArgs *args, const char *name); |
| |
53 void ui_container_args_set_style_class(UiContainerArgs *args, const char *classname); |
| |
54 void ui_container_args_set_margin(UiContainerArgs *args, int value); |
| |
55 void ui_container_args_set_spacing(UiContainerArgs *args, int value); |
| |
56 void ui_container_args_set_columnspacing(UiContainerArgs *args, int value); |
| |
57 void ui_container_args_set_rowspacing(UiContainerArgs *args, int value); |
| |
58 void ui_container_args_free(UiContainerArgs *args); |
| |
59 |
| |
60 |
| |
61 UIEXPORT UiFrameArgs* ui_frame_args_new(void); |
| |
62 void ui_frame_args_set_fill(UiFrameArgs *args, UiBool fill); |
| |
63 void ui_frame_args_set_hexpand(UiFrameArgs *args, UiBool value); |
| |
64 void ui_frame_args_set_vexpand(UiFrameArgs *args, UiBool value); |
| |
65 void ui_frame_args_set_hfill(UiFrameArgs *args, UiBool value); |
| |
66 void ui_frame_args_set_vfill(UiFrameArgs *args, UiBool value); |
| |
67 void ui_frame_args_set_override_defaults(UiFrameArgs *args, UiBool value); |
| |
68 void ui_frame_args_set_colspan(UiFrameArgs *args, int colspan); |
| |
69 void ui_frame_args_set_rolspan(UiFrameArgs *args, int rowspan); |
| |
70 void ui_frame_args_set_name(UiFrameArgs *args, const char *name); |
| |
71 void ui_frame_args_set_style_class(UiFrameArgs *args, const char *classname); |
| |
72 void ui_frame_args_set_margin(UiFrameArgs *args, int value); |
| |
73 void ui_frame_args_set_spacing(UiFrameArgs *args, int value); |
| |
74 void ui_frame_args_set_columnspacing(UiFrameArgs *args, int value); |
| |
75 void ui_frame_args_set_rowspacing(UiFrameArgs *args, int value); |
| |
76 void ui_frame_args_set_expanded(UiFrameArgs *args, UiBool value); |
| |
77 void ui_frame_args_set_label(UiFrameArgs *args, const char *label); |
| |
78 void ui_frame_args_free(UiFrameArgs *args); |
| |
79 |
| |
80 #ifdef __cplusplus |
| |
81 } |
| |
82 #endif |
| |
83 |
| |
84 #endif /* UIC_ARGS_H */ |
| |
85 |