60 lines
1.7 KiB
C++
60 lines
1.7 KiB
C++
/**
|
|
*******************************************************************************
|
|
* @file ewol/theme/EolBaseRect.h
|
|
* @brief basic ewol theme eol file basic element type=rectangle (Header)
|
|
* @author Edouard DUPIN
|
|
* @date 23/11/2011
|
|
* @par Project
|
|
* ewol
|
|
*
|
|
* @par Copyright
|
|
* Copyright 2011 Edouard DUPIN, all right reserved
|
|
*
|
|
* This software is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY.
|
|
*
|
|
* Licence summary :
|
|
* You can modify and redistribute the sources code and binaries.
|
|
* You can send me the bug-fix
|
|
*
|
|
* Term of the licence in in the file licence.txt.
|
|
*
|
|
*******************************************************************************
|
|
*/
|
|
|
|
|
|
#include <ewol/theme/EolBase.h>
|
|
#include <ewol/theme/EolColor.h>
|
|
|
|
#ifndef __EWOL_THEME_EOL_BASE_RECT_H__
|
|
#define __EWOL_THEME_EOL_BASE_RECT_H__
|
|
|
|
namespace ewol {
|
|
namespace theme {
|
|
class EolBaseRect : public EolBase {
|
|
public:
|
|
EolBaseRect(void);
|
|
virtual ~EolBaseRect(void);
|
|
/*
|
|
<rect colorBG="..." ==> generate condition to display background ...
|
|
colorBorder="..." ==> generate condition to display border ...
|
|
position="0.53;0.56"
|
|
size="0.22;0.11"
|
|
thickness="0.05" ==> only if neededd by border, default 0.01
|
|
/>
|
|
*/
|
|
virtual void Parse(TiXmlNode * pNode);
|
|
virtual void Generate(const ewol::theme::Theme * myTheme, const ewol::theme::EolElement * myElement, ewol::OObject2DColored & newObject, etkFloat_t posX, etkFloat_t posY, etkFloat_t sizeX, etkFloat_t sizeY);
|
|
private:
|
|
etk::String m_colorBG;
|
|
etk::String m_colorBorder;
|
|
coord2D_ts m_position;
|
|
coord2D_ts m_size;
|
|
etkFloat_t m_thickness;
|
|
};
|
|
};
|
|
};
|
|
|
|
#endif
|
|
|