src/widget/widget.h
branchcpp_gui
changeset 6275 bd57b30a8b81
parent 6273 d8a2c6844650
child 6277 732cf765e2d7
equal deleted inserted replaced
6274:35a9b459de19 6275:bd57b30a8b81
   235 	typedef CompositeWidget super;
   235 	typedef CompositeWidget super;
   236 
   236 
   237 	static const int16 DEFAULT_HEIGHT = 14;
   237 	static const int16 DEFAULT_HEIGHT = 14;
   238 
   238 
   239 protected:
   239 protected:
   240 	StringID m_text;
   240 	StringID      m_text;
   241 	byte     m_text_color;
   241 	byte          m_text_color;
       
   242 	Point16       m_moving_offset;
       
   243 	CaptureTicket m_ticket_moving;
   242 
   244 
   243 public:
   245 public:
   244 	CaptionBar()
   246 	CaptionBar()
   245 		: CompositeWidget()
   247 		: CompositeWidget()
   246 		, m_text(0)
   248 		, m_text(0)
   254 	{}
   256 	{}
   255 
   257 
   256 	/*virtual*/ void DrawBackground(EvtPaint &ev);
   258 	/*virtual*/ void DrawBackground(EvtPaint &ev);
   257 
   259 
   258 	/*virtual*/ void OnPaint(EvtPaint &ev);
   260 	/*virtual*/ void OnPaint(EvtPaint &ev);
       
   261 	/*virtual*/ void OnLeftClick(EvtClick &ev);
       
   262 	void OnCapturePressed(EvtMouseOver &e);
   259 };
   263 };
   260 
   264 
   261 
   265 
   262 
   266 
   263 
   267