13#ifndef GP_WIDGET_RENDER_H
14#define GP_WIDGET_RENDER_H
18#include <gfx/gp_gfx.h>
117 uint16_t feedback_ms;
125 int focused_is_bold:1;
130static inline int gp_widgets_is_dclick(uint64_t time_now, uint64_t time_prev,
133 if (time_now - time_prev < (uint64_t)ctx->dclick_ms)
146typedef struct gp_widget_timer {
147 uint32_t (*callback)(
void *priv);
153enum gp_widget_render_timer_flags {
154 GP_TIMER_RESCHEDULE = 0x01,
157void gp_widget_render_timer(
gp_widget *self,
int flags,
unsigned int timeout_ms);
158void gp_widget_render_timer_cancel(
gp_widget *self);
197 void (*init)(
int argc,
char *argv[]),
198 int argc,
char *argv[])
199 __attribute__((noreturn));
278void gp_widgets_redraw(
gp_widget *layout);
283int gp_widgets_process_events(
gp_widget *layout);
288void gp_widgets_layout_init(
gp_widget *layout,
const char *win_tittle);
uint32_t gp_pixel
Pixel integer value.
A bounding box implementation.
A compiler dependent macros.
#define GP_PACKED
Expand to packed attribute if supported by the compiler.
Includes all core headers.
gp_pixel_type
List of all pixel types.
A text drawing functions.
Timers and timer queue implementation.