51 lines
1.2 KiB
C++

/**
*******************************************************************************
* @file ewol/widget/Drawable.h
* @brief basic ewol drawable widget (header)
* @author Edouard DUPIN
* @date 18/02/2012
* @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.
*
*******************************************************************************
*/
#ifndef __EWOL_WIDGET_DRAWABLE_H__
#define __EWOL_WIDGET_DRAWABLE_H__
#include <ewol/Widget.h>
namespace ewol {
class Drawable : public ewol::Widget {
public:
Drawable(void);
virtual ~Drawable(void);
private:
etk::VectorType<ewol::OObject*> m_listOObject[NB_BOUBLE_BUFFER]; //!< generic element to display...
public:
void AddOObject(ewol::OObject* newObject, int32_t pos=-1);
void ClearOObjectList(void);
protected:
virtual bool OnDraw(void);
};
};
#endif