From 36247549fb97fa9072facbb5f19be9d2b3c47c70 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 3 Oct 2016 01:09:47 +0200 Subject: [PATCH] CComponentsExtTextForm: add methode to get current font Default font is generated by class it self, so it is useful to have access to current font if is required by implemenations. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ac58c8c016e7adac13f7a392244a1d6fb2592dae Author: Thilo Graf Date: 2016-10-03 (Mon, 03 Oct 2016) --- src/gui/components/cc_frm_ext_text.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/components/cc_frm_ext_text.h b/src/gui/components/cc_frm_ext_text.h index 162ec34ad..769d1b284 100644 --- a/src/gui/components/cc_frm_ext_text.h +++ b/src/gui/components/cc_frm_ext_text.h @@ -133,6 +133,9 @@ class CComponentsExtTextForm : public CComponentsForm, public CCTextScreen ///sets the text modes (mainly text alignment) to the label and text object, see /gui/widget/textbox.h for possible modes void setTextModes(const int& label_mode, const int& text_mode); + ///return current font + Font* getFont(){return ccx_font;} + ///paint this item/form void paint(bool do_save_bg = CC_SAVE_SCREEN_YES); };