Foenix A2650 OS/f Library
 
Loading...
Searching...
No Matches
theme.h File Reference
#include "window.h"
#include <stdbool.h>
#include <mcp/syscalls.h>
#include "a2560k.h"

Go to the source code of this file.

Data Structures

struct  ControlBackdrop
 
struct  Theme
 

Functions

ThemeTheme_New (void)
 Allocate a Theme object.
 
ThemeTheme_CreateDefaultTheme (bool minimal_resources)
 create default Theme. More...
 
bool Theme_Activate (Theme *the_theme)
 Make the passed theme into the active Theme Note: this will change the VICKY's CLUT, inform the system to change its current theme (and in future: load new icons, etc)

 
ControlTemplateTheme_CreateControlTemplateFlexWidth (Theme *the_theme, control_type the_type, int16_t width, int16_t height, int16_t x_offset, int16_t y_offset, h_align_type h_align, v_align_type v_align, char *caption)
 Create a control template for a flexible-width control.
 
ControlTemplateTheme_CreateControlTemplateFixedWidth (Theme *the_theme, control_type the_type, int16_t width, int16_t height, int16_t x_offset, int16_t y_offset, h_align_type h_align, v_align_type v_align, char *caption)
 Create a control template for a fixed-width control with no background.
 
ThemeTheme_CreateGreenTheme (void)
 create default Theme. More...
 

Function Documentation

◆ Theme_CreateDefaultTheme()

Theme * Theme_CreateDefaultTheme ( bool  minimal_resources)

create default Theme.

used in cases where a custom theme is not specified or is not available Note: set the minimal_resources flag to true when running on a C256, as this framework does not yet have full support on that platform. Themes created with the minimal resource flag will 1) not have control templates, 2) will only support one font, the system font (control_font_).

Parameters
minimal_resources– if true, control templates will not be created.
Returns
Returns an allocated, configured theme representing the default theme.

◆ Theme_CreateGreenTheme()

Theme * Theme_CreateGreenTheme ( void  )

create default Theme.

used in cases where a custom theme is not specified or is not available