KolibriLib
Loading...
Searching...
No Matches
KolibriLib::UI::text Namespace Reference

Работа с тектсом More...

Classes

class  TextLabel
 Текстовая метка More...
 

Functions

unsigned int GetTextSize ()
 Получить размер текста
 
void SetTextSize (unsigned int newSize)
 Изменить размер текста
 
void DrawText (const std::string &text, const Coord &coord, const unsigned &size=9, Color::Color color=OS::sys_color_table.work_text)
 Вывести текст
 
void DrawText (const char *text, const Coord &coord, const unsigned &size=9, Color::Color color=OS::sys_color_table.work_text)
 Вывести текст
 

Detailed Description

Работа с тектсом

Function Documentation

◆ DrawText() [1/2]

void KolibriLib::UI::text::DrawText ( const char * text,
const Coord & coord,
const unsigned & size = 9,
Color::Color color = OS::sys_color_table.work_text )
inline

Вывести текст

Parameters
textтекст
coordкоординаты
colorцвет текста

◆ DrawText() [2/2]

void KolibriLib::UI::text::DrawText ( const std::string & text,
const Coord & coord,
const unsigned & size = 9,
Color::Color color = OS::sys_color_table.work_text )
inline

Вывести текст

Parameters
textтекст
coordкоординаты
colorцвет текста

◆ GetTextSize()

unsigned int KolibriLib::UI::text::GetTextSize ( )
inline

Получить размер текста

Returns
текущая высота текста

◆ SetTextSize()

void KolibriLib::UI::text::SetTextSize ( unsigned int newSize)
inline

Изменить размер текста

Parameters
newSizeвысота текста в px