XenevaOS
Loading...
Searching...
No Matches
border_layout.h
Go to the documentation of this file.
1
32#ifndef __BORDER_LAYOUT_H__
33#define __BORDER_LAYOUT_H__
34
35#include "..\window.h"
36#include "..\list.h"
37#include <_xeneva.h>
38
39#ifdef __cplusplus
41#endif
42
50
51#define CH_WIDEGT_BORDERLAYOUT 0x20
52
59
67
77 XE_EXPORT ChBorderLayout* ChCreateBorderLayout(int x, int y, int w, int h, int hgap, int vgap);
78
88 XE_EXPORT void ChBorderLayoutResize(ChBorderLayout * l, int x, int y, int w, int h);
89
98
104
113 XE_EXPORT void ChBorderLayoutSetPreferred(ChBorderLayout * l, ChWidget * w, int pw, int ph);
114
121 XE_EXPORT void ChBorderLayoutSetDefaults(ChBorderLayout * l, int sideW, int barH);
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif
#define XE_EXPORT
Definition _xeneva.h:46
#define XE_EXTERN
Definition _xeneva.h:50
ChBorderAlignment
Definition border_layout.h:43
@ CH_BORDER_ALIGN_CENTER
Definition border_layout.h:44
@ CH_BORDER_ALIGN_LEFT
Definition border_layout.h:47
@ CH_BORDER_ALIGN_BOTTOM
Definition border_layout.h:46
@ CH_BORDER_ALIGN_TOP
Definition border_layout.h:45
@ CH_BORDER_ALIGN_RIGHT
Definition border_layout.h:48
struct _ChBorderLayout_ ChBorderLayout
XE_EXPORT ChBorderLayout * ChCreateBorderLayout(int x, int y, int w, int h, int hgap, int vgap)
ChCreateBorderLayout – create a new border layout with given parameters.
Definition border_layout.cpp:305
XE_EXPORT void ChBorderLayoutAdd(ChBorderLayout *l, ChWidget *w, ChBorderAlignment align)
ChBorderLayoutAdd – add a widget to the border layout by its alignment.
Definition border_layout.cpp:199
XE_EXPORT void ChBorderLayoutSetDefaults(ChBorderLayout *l, int sideW, int barH)
ChBorderLayoutSetDefaults – set default border geometry.
Definition border_layout.cpp:186
XE_EXPORT void ChBorderLayoutDoLayout(ChBorderLayout *l)
ChBorderLayoutDoLayout – reorganise/refresh sel.
Definition border_layout.cpp:81
XE_EXPORT void ChBorderLayoutResize(ChBorderLayout *l, int x, int y, int w, int h)
ChBorderLayoutResize – resize the border layout with given parameter.
Definition border_layout.cpp:218
XE_EXPORT void ChBorderLayoutSetPreferred(ChBorderLayout *l, ChWidget *w, int pw, int ph)
ChBorderLayoutSetPreferred – set preferred border width and height for widget geometry.
Definition border_layout.cpp:169
int h
Definition layout.c:118
Definition border_layout.h:53
int prefW
Definition border_layout.h:56
ChBorderAlignment align
Definition border_layout.h:55
ChWidget * widget
Definition border_layout.h:54
int prefH
Definition border_layout.h:57
Definition border_layout.h:60
int defSideW
Definition border_layout.h:64
int hgap
Definition border_layout.h:63
ChWidget base
Definition border_layout.h:61
int vgap
Definition border_layout.h:63
list_t * items
Definition border_layout.h:62
int defBarH
Definition border_layout.h:65
Definition window.h:130
Definition list.h:46