GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | Public Attributes | List of all members

Represents the style of a text displayed in the events editor. More...

#include <TextFormatting.h>

Public Member Functions

bool IsBold () const
 Return true if the bold style must be applied.
 
bool IsItalic () const
 Return true if the italic style must be applied.
 
unsigned int GetColorRed () const
 Return the red component of the color that must be applied to the text.
 
unsigned int GetColorGreen () const
 Return the green component of the color that must be applied to the text.
 
unsigned int GetColorBlue () const
 Return the blue component of the color that must be applied to the text.
 
TextFormattingSetColor (unsigned int r, unsigned int g, unsigned int b)
 
TextFormattingSetBold (bool enable=true)
 Set if the bold style must be applied.
 
TextFormattingSetItalic (bool enable=true)
 Set if the italic style must be applied.
 
size_t GetUserData () const
 

Public Attributes

unsigned int colorRed
 
unsigned int colorGreen
 
unsigned int colorBlue
 
bool bold
 
bool italic
 
size_t userData
 

Detailed Description

Represents the style of a text displayed in the events editor.

Notably used by EventsRenderingHelper to render Instruction.

See also
EventsRenderingHelper

Member Function Documentation

size_t gd::TextFormatting::GetUserData ( ) const
inline

Return the data (an integer) associated with the text formatting. Used to store the parameter when rendering instructions.

TextFormatting& gd::TextFormatting::SetColor ( unsigned int  r,
unsigned int  g,
unsigned int  b 
)
inline

Change the color of the text.


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