/** * \file * * * * \brief Widget (interface). * * \author Bernie Innocenti * \author Francesco Sacchi */ #ifndef DT_DWIDGET_H #define DT_DWIDGET_H #include
#include /** Widget position. */ typedef uint8_t dpos_t; /** Widget drawing context. */ typedef iptr_t dcontext_t; /** Widget definition. */ typedef struct DWidget { DNotifier notifier; dpos_t pos; dpos_t size; dcontext_t *context; } DWidget; void widget_init(DWidget *w, dpos_t pos, dpos_t size, dcontext_t *context); #endif