create custom widget


Previous: Conplexe xml gui
Next: Add widget custum in x m l
To create a custum widget, this is as simple as complex. The first things to do is to choice a methode to display you widget:

Create the widget structure

Header

	#include <ewol/widget/Widget.h>
	namespace appl {
		class myWidget : public ewol::Widget {
			public:
				myWidget(void) {};
				~myWidget(void) {};
			public: // herited function
				void draw(void);
				void onRegenerateDisplay(void);
		}
	}

We can show that we had two function, the first is call every time we render the widget (as the number of fps) "draw()". And the second that is call only when we need to redraw the widget (after the user call markToRedraw() ) "onRegenerateDisplay()".