/** @file * @author Edouard DUPIN * @copyright 2011, Edouard DUPIN, all right reserved * @license MPL v2.0 (see license file) */ #pragma once #include #include #include #include #include #include namespace ewol { namespace widget { class ColorBar; using ColorBar = ememory::Ptr; using ColorBarWeak = ememory::WeakPtr; class ColorBar : public Widget { public: // signals esignal::Signal> signalChange; public: eproperty::Value> propertyValue; protected: ColorBar(); public: DECLARE_WIDGET_FACTORY(ColorBar, "ColorBar"); ~ColorBar(); private: ewol::compositing::Drawing this.draw; //!< Compositing drawing element Vector2f this.currentUserPos; protected: void onDraw() ; public: void calculateMinMaxSize() ; void onRegenerateDisplay() ; boolean onEventInput( ewol::event::Input _event) ; protected: void onChangePropertyValue(); }; }; };