GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
gp_widget_types.h
Go to the documentation of this file.
1
//SPDX-License-Identifier: LGPL-2.0-or-later
2
3
/*
4
5
Copyright (c) 2014-2024 Cyril Hrubis <metan@ucw.cz>
6
7
*/
8
13
#ifndef GP_WIDGET_TYPES_H
14
#define GP_WIDGET_TYPES_H
15
16
#include <stdint.h>
17
18
typedef
struct
gp_widget_event
gp_widget_event
;
19
typedef
struct
gp_widget
gp_widget
;
20
typedef
struct
gp_dialog
gp_dialog
;
21
typedef
struct
gp_widget_size
gp_widget_size
;
22
typedef
struct
gp_widget_render_ctx
gp_widget_render_ctx
;
23
typedef
struct
gp_widget_json_ctx
gp_widget_json_ctx
;
24
typedef
struct
gp_widget_json_callbacks
gp_widget_json_callbacks
;
25
26
typedef
uint32_t
gp_widget_tattr
;
27
31
enum
gp_widget_border
{
33
GP_WIDGET_BORDER_NONE
= 0x00,
35
GP_WIDGET_BORDER_LEFT
= 0x01,
37
GP_WIDGET_BORDER_RIGHT
= 0x2,
39
GP_WIDGET_BORDER_TOP
= 0x10,
41
GP_WIDGET_BORDER_BOTTOM
= 0x20,
43
GP_WIDGET_BORDER_HORIZ
=
GP_WIDGET_BORDER_TOP
|
GP_WIDGET_BORDER_BOTTOM
,
45
GP_WIDGET_BORDER_VERT
=
GP_WIDGET_BORDER_LEFT
|
GP_WIDGET_BORDER_RIGHT
,
47
GP_WIDGET_BORDER_ALL
=
GP_WIDGET_BORDER_HORIZ
|
GP_WIDGET_BORDER_VERT
,
54
GP_WIDGET_BORDER_CLEAR
= 0x80
55
};
56
57
#endif
/* GP_WIDGET_TYPES_H */
gp_widget_tattr
gp_widget_tattr
Text attribute flags.
Definition
gp_widget_tattr.h:27
gp_widget_border
gp_widget_border
Describes borders.
Definition
gp_widget_types.h:31
GP_WIDGET_BORDER_BOTTOM
@ GP_WIDGET_BORDER_BOTTOM
Bottom border selected.
Definition
gp_widget_types.h:41
GP_WIDGET_BORDER_TOP
@ GP_WIDGET_BORDER_TOP
Top border selected.
Definition
gp_widget_types.h:39
GP_WIDGET_BORDER_CLEAR
@ GP_WIDGET_BORDER_CLEAR
Clear borders not selected in bitmask.
Definition
gp_widget_types.h:54
GP_WIDGET_BORDER_HORIZ
@ GP_WIDGET_BORDER_HORIZ
Horizontal borders selected.
Definition
gp_widget_types.h:43
GP_WIDGET_BORDER_LEFT
@ GP_WIDGET_BORDER_LEFT
Left border selected.
Definition
gp_widget_types.h:35
GP_WIDGET_BORDER_RIGHT
@ GP_WIDGET_BORDER_RIGHT
Right border selected.
Definition
gp_widget_types.h:37
GP_WIDGET_BORDER_VERT
@ GP_WIDGET_BORDER_VERT
Vertical borders selected.
Definition
gp_widget_types.h:45
GP_WIDGET_BORDER_ALL
@ GP_WIDGET_BORDER_ALL
All borders selected.
Definition
gp_widget_types.h:47
GP_WIDGET_BORDER_NONE
@ GP_WIDGET_BORDER_NONE
No border selected.
Definition
gp_widget_types.h:33
gp_dialog
A dialog.
Definition
gp_dialog.h:26
gp_widget_event
Event structure passed to widget event handler.
Definition
gp_widget_event.h:137
gp_widget_json_callbacks
Structure to pass callbacks to the JSON loader.
Definition
gp_widget_json.h:59
gp_widget_json_ctx
A context to propagate values top down and bottom up.
Definition
gp_widget_json.h:73
gp_widget_render_ctx
Global widget (rendering) context.
Definition
gp_widget_render.h:29
gp_widget_size
A compound size.
Definition
gp_widget_size_units.h:31
gp_widget
A widget base.
Definition
gp_widget.h:28
Generated by
1.9.8