maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
RETROGUI Struct Reference
Collaboration diagram for RETROGUI:

Data Fields

uint8_t flags
 
retroflat_pxxy_t x
 
retroflat_pxxy_t y
 
retroflat_pxxy_t w
 
retroflat_pxxy_t h
 
RETROFLAT_COLOR bg_color
 
retrogui_idc_t idc_prev
 
struct MDATA_VECTOR ctls
 
retrogui_idc_t focus
 Unique identifying index for current highlighted RETROGUI_CTL.
 
retroflat_blit_t * draw_bmp
 
MAUG_MHANDLE font_h
 Font used to draw any attached RETROGUI_CTL.
 

Related Symbols

(Note that these are not member symbols.)

#define RETROGUI_FLAGS_DIRTY   0x01
 RETROGUI::flags indicating controls should be redrawn.
 
#define RETROGUI_FLAGS_FONT_OWNED   0x02
 RETROGUI::flags indicating GUI font is owned by this RETROGUI and can/will be freed by retrogui_destroy().
 
retrogui_idc_t retrogui_focus_iter (struct RETROGUI *gui, size_t start, ssize_t incr)
 Increment RETROGUI::focus, skipping elements that cannot hold focus.
 
MERROR_RETVAL retrogui_init (struct RETROGUI *gui)
 Prepare a RETROGUI controller for use.
 
MERROR_RETVAL retrogui_remove_ctl (struct RETROGUI *gui, retrogui_idc_t idc)
 Remove a control with the given unique identifier index from the given RETROGUI controller.
 
MERROR_RETVAL retrogui_destroy (struct RETROGUI *gui)
 Free memory held by a RETROGUI controller internally and clean up any subordinate controls.
 

Field Documentation

◆ font_h

MAUG_MHANDLE RETROGUI::font_h

Font used to draw any attached RETROGUI_CTL.

This should be set with retrogui_set_font(), and will be automatically freed by retrogui_destroy() if it is. If it is set by manual assignment, then it will not be freed by retrogui_destroy().

Warning
This field is not present if RetroGXCache API is loaded!

The documentation for this struct was generated from the following file: