/** ******************************************************************************* * @file ewolWindows.h * @brief ewol window system (header) * @author Edouard DUPIN * @date 20/10/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. * ******************************************************************************* */ #ifndef __EWOL_WINDOWS_H__ #define __EWOL_WINDOWS_H__ #include #include #include #include #include namespace ewol { class Windows :public ewol::Widget { public: Windows(void); virtual ~Windows(void) {}; // internal event at ewol system : public: void SysDraw(void); void SysOnShow(void) {}; void SysOnHide(void) {}; void SysOnKill(void) {}; void SysOnExpose(void) {}; public: virtual void OnShow(void) { }; virtual void OnHide(void) { }; virtual bool OnKill(void) { return true; }; virtual void OnReduce(void) { }; virtual void On(void) { }; // from Widget management : virtual bool CalculateSize(double availlableX, double availlableY); virtual bool OnEventArea(const char * generateEventId, double x, double y); // Widget overwrite function public: virtual bool OnEventInput(int32_t IdInput, eventInputType_te typeEvent, double X, double Y); }; }; #endif