CComponentsFooter: add member paintButtons()

This is a nearly methode similar with the older button handler find
in gui/widget/buttons.h, some parameters are different,
but require minimalized input.
This member sets some basic parameters and will paint
concurrently on execute, explicit call of paint() is not required.
This should simplify the implementation of the footer class.


Origin commit data
------------------
Commit: 18f13b0062
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-11 (Sun, 11 May 2014)
This commit is contained in:
2014-05-11 16:17:18 +02:00
parent d3963f3206
commit 1cdbf9c85e
2 changed files with 35 additions and 2 deletions

View File

@@ -98,6 +98,20 @@ class CComponentsFooter : public CComponentsHeader
///returns pointer to internal button container
CComponentsFrmChain* getButtonChainObject(){return chain;};
///this is a nearly methode similar with the older button handler find in gui/widget/buttons.h, some parameters are different, but require minimalized input
///this member sets some basic parameters and will paint concurrently on execute, explicit call of paint() is not required
void paintButtons( const int& x_pos,
const int& y_pos,
const int& w,
const int& h,
const size_t& label_count,
const struct button_label * const content,
const int& label_width = 0,
const int& context_buttons = 0,
Font* font = NULL,
bool do_save_bg = CC_SAVE_SCREEN_NO
);
};
#endif