mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
CComponentsExtTextForm: add member setLabelAndTextFont()
Origin commit data
------------------
Commit: a0e00387b6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-07 (Thu, 07 Nov 2013)
This commit is contained in:
@@ -187,6 +187,13 @@ void CComponentsExtTextForm::setLabelAndTexts(const locale_ext_txt_t& locale_tex
|
||||
setLabelAndText(g_Locale->getText(locale_texts.label_text), g_Locale->getText(locale_texts.text), locale_texts.font);
|
||||
}
|
||||
|
||||
void CComponentsExtTextForm::setLabelAndTextFont(Font* font)
|
||||
{
|
||||
if (font == NULL)
|
||||
return;
|
||||
setLabelAndText(ccx_label_text, ccx_text, font);
|
||||
}
|
||||
|
||||
void CComponentsExtTextForm::setTextModes(const int& label_mode, const int& text_mode)
|
||||
{
|
||||
ccx_label_align = label_mode;
|
||||
@@ -203,7 +210,6 @@ void CComponentsExtTextForm::setLabelAndTextColor(const fb_pixel_t label_color ,
|
||||
|
||||
void CComponentsExtTextForm::initCCTextItems()
|
||||
{
|
||||
height = max(height, ccx_font->getHeight());
|
||||
initLabel();
|
||||
initText();
|
||||
}
|
||||
|
Reference in New Issue
Block a user