11#ifndef __MUTEKI_UI_VIEWS_DESKBOX_H__
12#define __MUTEKI_UI_VIEWS_DESKBOX_H__
49 bool free_source_after_copy,
50 unsigned short blit_flag
76 const UTF16 *cmdmenu_title,
139 unsigned int deskbox_flags
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
struct ui_event_std_s ui_event_t
ui_event_std_s
Definition framework.h:96
struct ui_imageclip_s ui_imageclip_t
Image clip subwidget type.
Definition imageclip.h:24
struct lcd_rect_s lcd_rect_t
Rectangle used to represent usable drawing area in an LCD descriptor.
Deskbox view type definition.
struct ui_deskbox_s ui_deskbox_t
Deskbox container type.
Definition deskbox.h:84
struct lcd_surface_s lcd_surface_t
Descriptor of an LCD drawing surface or hardware framebuffer.
ui_deskbox_t * CreateDeskBox(unsigned short tag, short x0, short y0, short x1, short y1, const UTF16 *title, const ui_menu_entry_t *cmdmenu, const UTF16 *cmdmenu_title, unsigned int flags)
Create a deskbox object.
void PDESKBOX_draw(ui_deskbox_t *self)
Draw the deskbox.
ui_deskbox_t * DeskBox_construct(ui_deskbox_t *self)
Populate a deskbox object in-place.
void PDESKBOX_handleEvent(ui_deskbox_t *self, ui_event_t *event)
Default event handler of the deskbox.
void DrawDeskBoxBound(short x0, short y0, short x1, short y1, unsigned int deskbox_flags)
Helper to render the borders of a deskbox.
void PDESKBOX_drawTitle(ui_deskbox_t *self)
Draw the title of the deskbox.
void PDESKBOX_redraw(ui_deskbox_t *self)
Redraw the deskbox.
ui_imageclip_t * InsertImageClip(ui_deskbox_t *parent, unsigned short tag, short x0, short y0, short width, short height, short image_x, short image_y, const lcd_surface_t *source_image, bool free_source_after_copy, unsigned short blit_flag)
Assign a background image to the deskbox.
void GetDeskClientRect(lcd_rect_t *rect, ui_deskbox_t *from)
Get the user-drawable area on a deskbox.
ui_button_t * InsertTitleBarButton(ui_deskbox_t *self, unsigned short tag, const UTF16 *label, unsigned int event)
Convenience method to add the function button to the title bar of a deskbox.
void ChangeCommandMenu(ui_deskbox_t *deskbox, const ui_menu_entry_t *cmdmenu)
Update the command menu on a deskbox.