17#ifndef GP_WIDGET_OPS_H
18#define GP_WIDGET_OPS_H
48typedef struct gp_offset {
62 GP_WIDGET_REDRAW_CHILDREN = 0x02,
143 unsigned int x,
unsigned int y);
222const struct gp_widget_ops *gp_widget_ops_by_id(
const char *
id);
224const char *gp_widget_type_id(
gp_widget *self);
232unsigned int gp_widget_align(
gp_widget *self);
236void gp_widget_ops_render(
gp_widget *self,
const gp_offset *offset,
288 unsigned int x,
unsigned int y);
350static inline int gp_widget_is_disabled(
gp_widget *self,
int flags)
368 unsigned int w,
unsigned int h,
int new_wh);
int gp_coord
Integer type for coordinates i.e. x, y, ...
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
A bounding box implementation.
static gp_bbox gp_bbox_merge(gp_bbox box1, gp_bbox box2)
Merges two bounding boxes.
static int gp_bbox_empty(gp_bbox box)
Returns true if bounding box is empty.
static gp_bbox gp_bbox_pack(gp_coord x, gp_coord y, gp_coord w, gp_coord h)
Creates a bounding box from coordinates and size.
Includes all JSON headers.
A JSON parser internal state.
A parsed JSON key value pair.