|
Muteki
EABI code execution on Besta® RTOS devices.
|
Public method syscall proxies and helper functions related to the deskbox (applet window pane) view. More...
Go to the source code of this file.
Functions | |
| 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. | |
| 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. | |
| void | PDESKBOX_drawTitle (ui_deskbox_t *self) |
| Draw the title of the deskbox. | |
| void | PDESKBOX_handleEvent (ui_deskbox_t *self, ui_event_t *event) |
| Default event handler of the deskbox. | |
| void | PDESKBOX_redraw (ui_deskbox_t *self) |
| Redraw the deskbox. | |
| ui_deskbox_t * | DeskBox_construct (ui_deskbox_t *self) |
| Populate a deskbox object in-place. | |
| void | DrawDeskBoxBound (short x0, short y0, short x1, short y1, unsigned int deskbox_flags) |
| Helper to render the borders of a deskbox. | |
| void | ChangeCommandMenu (ui_deskbox_t *deskbox, const ui_menu_entry_t *cmdmenu) |
| Update the command menu 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 | GetDeskClientRect (lcd_rect_t *rect, ui_deskbox_t *from) |
| Get the user-drawable area on a deskbox. | |
Public method syscall proxies and helper functions related to the deskbox (applet window pane) view.
|
extern |
Update the command menu on a deskbox.
| deskbox | The parent deskbox to attach the menu to. |
| cmdmenu | Array of the new command menu entries. |
|
extern |
Create a deskbox object.
| tag | Component tag. Can be used to distinguish components under some circumstances (like when sharing a callback with another component, or looking up an item with GetDeskItem()). Does not need to be unique. Usually will be set by AllocBlock() after the memory was allocated. |
| x0 | X coordinate of the top-left corner, in pixels (inclusive). |
| y0 | Y coordinate of the top-left corner, in pixels (inclusive). |
| x1 | X coordinate of the bottom-right corner, in pixels (inclusive). |
| y1 | Y coordinate of the bottom-right corner, in pixels (inclusive). |
| title | Title of the deskbox. |
| cmdmenu | Array of the command menu entries. |
| cmdmenu_title | Title text of the command menu. |
| flags | Style flags specific to deskbox class. |
|
extern |
Populate a deskbox object in-place.
This is used internally inside CreateDeskBox() and is normally not needed.
| self | Unpopulated deskbox object. |
|
extern |
Helper to render the borders of a deskbox.
This is used internally inside PDESKBOX_draw() and is normally not needed.
| x0 | X coordinate of the top-left corner, in pixels (inclusive). |
| y0 | Y coordinate of the top-left corner, in pixels (inclusive). |
| x1 | X coordinate of the bottom-right corner, in pixels (inclusive). |
| y1 | Y coordinate of the bottom-right corner, in pixels (inclusive). |
| deskbox_flags |
|
extern |
Get the user-drawable area on a deskbox.
| [out] | rect | Result rectangle. |
| [in] | from | The deskbox object. |
| 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.
| parent | Parent deskbox object to attach a image to. |
| tag | Component tag. Can be used to distinguish components under some circumstances (like when sharing a callback with another component, or looking up an item with GetDeskItem()). Does not need to be unique. Usually will be set by AllocBlock() after the memory was allocated. |
| x0 | X coordinate of the top-left corner, in pixels (inclusive). |
| y0 | Y coordinate of the top-left corner, in pixels (inclusive). |
| width | Width of the image |
| height | Height of the image. |
| image_x | X offset of the image to blit. |
| image_y | Y offset of the image to blit. |
| source_image | Surface that contains the image. |
| free_source_after_copy | Free up the surface after copy. Note that this uses the _lfree() syscall so do not use this if you allocated the surface using muteki newlib. |
| blit_flag | Blit flags. |
|
extern |
Convenience method to add the function button to the title bar of a deskbox.
| self | The parent deskbox to attach the button to. |
| tag | Component tag. Can be used to distinguish components under some circumstances (like when sharing a callback with another component, or looking up an item with GetDeskItem()). Does not need to be unique. Usually will be set by AllocBlock() after the memory was allocated. |
| label | Text label on the button. |
| event | Event value assigned to the button. |
|
extern |
Draw the deskbox.
| self | The deskbox object. |
|
extern |
Draw the title of the deskbox.
| self | The deskbox object. |
|
extern |
Default event handler of the deskbox.
| self | The deskbox object. |
| event | The event. |
|
extern |
Redraw the deskbox.
| self | The deskbox object. |