Manage scene background inside derived class ==> no need in the basic scene ...
This commit is contained in:
parent
8f8aaef01e
commit
e97e33890b
@ -70,17 +70,18 @@ namespace ewol {
|
||||
bool GetValue(void);
|
||||
void SetAlignement(textAlignement_te typeAlign);
|
||||
void SetPadding(Vector2D<float> newPadding);
|
||||
void SetColorBg(color_ts newColor) { m_textColorBg = newColor; };
|
||||
void SetColorFg(color_ts newColor) { m_textColorFg = newColor; };
|
||||
private:
|
||||
bool m_hasAnImage;
|
||||
etk::UString m_imageSelected;
|
||||
textAlignement_te m_alignement;
|
||||
Vector2D<float> m_padding;
|
||||
Vector2D<float> m_padding;
|
||||
etk::UString m_label;
|
||||
color_ts m_textColorFg; //!< Text color
|
||||
color_ts m_textColorBg; //!< Background color
|
||||
public:
|
||||
virtual void OnRegenerateDisplay(void);
|
||||
public:
|
||||
/**
|
||||
* @brief Event on an input of this Widget
|
||||
* @param[in] type Type of the input (ewol::INPUT_TYPE_MOUSE/ewol::INPUT_TYPE_FINGER ...)
|
||||
|
@ -124,7 +124,6 @@ void ewol::Scene::OnRegenerateDisplay(void)
|
||||
//TODO : Il y a un bug : seg fault ... je ne sais pas trop ou ...
|
||||
void ewol::Scene::OnDraw(void)
|
||||
{
|
||||
m_basicBackground.Draw();
|
||||
//EWOL_ERROR(" On draw : " << m_currentDrawId);
|
||||
// draw elements
|
||||
for (int32_t iii=0; iii<m_sceneElement.animated[m_currentDrawId].Size(); iii++) {
|
||||
|
@ -40,7 +40,6 @@ namespace ewol {
|
||||
SceneElement m_sceneElement; //!< all element neede in the scene
|
||||
bool m_isRunning;
|
||||
int64_t m_lastCallTime;
|
||||
ewol::OObject2DColored m_basicBackground;
|
||||
public:
|
||||
Scene(void);
|
||||
virtual ~Scene(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user