GUI Toolkit for TI nSpire  0.55 beta (dated 2021-03-21)
A GUI toolkit for Ndless-TI NSpire using SDL and Ndless libraries.
ColorEngine Class Reference

#include <ColorEngine.h>

Collaboration diagram for ColorEngine:

Public Member Functions

 ColorEngine ()
 
virtual ~ColorEngine ()
 
virtual void savecolortofile (char *filename)
 
virtual void loadcolorfromfile (char *filename)
 
virtual void setdefaultcolorpreset ()
 

Public Attributes

colorRGBA widget_border_enable
 
colorRGBA widget_border_disable
 
colorRGBA widget_border_cursoron
 
colorRGBA widget_border_hasfocus
 
colorRGBA widget_tickmark_enable
 
colorRGBA widget_tickmark_disable
 
colorRGBA widget_filling_enable
 
colorRGBA widget_filling_disable
 
colorRGBA widget_text_enable
 
colorRGBA widget_text_disable
 
colorRGBA window_titlebar_enable
 
colorRGBA window_titlebar_disable
 
colorRGBA window_titlebartext_enable
 
colorRGBA window_titlebartext_disable
 
colorRGBA widget_commuter_active_filling_style1
 
colorRGBA widget_commuter_inactive_filling_style1
 
colorRGBA widget_commuter_active_cursor_style1
 
colorRGBA widget_commuter_inactive_cursor_style1
 
colorRGBA widget_commuter_active_filling_style2
 
colorRGBA widget_commuter_inactive_filling_style2
 
colorRGBA widget_commuter_active_cursor_style2
 
colorRGBA widget_commuter_inactive_cursor_style2
 
colorRGBA widget_commuter_active_filling_style3
 
colorRGBA widget_commuter_inactive_filling_style3
 
colorRGBA widget_commuter_active_cursor_style3
 
colorRGBA widget_commuter_inactive_cursor_style3
 
colorRGBA widget_commuter_active_filling_style4
 
colorRGBA widget_commuter_inactive_filling_style4
 
colorRGBA widget_commuter_active_cursor_style4
 
colorRGBA widget_commuter_inactive_cursor_style4
 
colorRGBA widget_progressbar_enable_filling
 
colorRGBA widget_progressbar_disable_filling
 
colorRGBA widget_progressbar_rainbow_empty
 
colorRGBA widget_progressbar_rainbow_full
 

Detailed Description

ColorEngine class.

The class to be used for using a ColorEngine object. This object/class is not intended to be used out of th WidgetApplication 'ecosystem' BUT may become mandatory to provide a way to use Widget::render() in a proper way.

See also
WidgetApplication and Widget::render( SDL_Surface*, ColorEngine*, FontEngine* )

Constructor & Destructor Documentation

◆ ColorEngine()

ColorEngine::ColorEngine ( )

Simple constructor

Engine properties are set to default, nothing more. Simple constructor, will need specific properties assignement later.

Parameters
None
Returns
Nothing

◆ ~ColorEngine()

ColorEngine::~ColorEngine ( )
virtual

Object destructor.

Object destructor, remove all trace of the ColorEngine and free allocated memory.

Parameters
None
Returns
Nothing

Member Function Documentation

◆ loadcolorfromfile()

void ColorEngine::loadcolorfromfile ( char *  filename)
virtual

Method for loading a color shemes from file.

To be used to load a color scheme already saved in a file.

Note
Not implemented yet.

◆ savecolortofile()

void ColorEngine::savecolortofile ( char *  filename)
virtual

Method for saving color shemes to file.

To be used to save a color scheme to a file.

Note
Not implemented yet.

◆ setdefaultcolorpreset()

void ColorEngine::setdefaultcolorpreset ( )
virtual

Method for assigning default color shemes to the ColorEngine.

To be used to assign the default color scheme the ColorEngine.

Member Data Documentation

◆ widget_border_enable

colorRGBA ColorEngine::widget_border_enable

Default color names used by the widgets to be rendered.

To be used only for developping new Widget and keeping a coherency with the look and feel of the other widgets. Using these default name permits to have a global theming for an application.


The documentation for this class was generated from the following files: