equal
deleted
inserted
replaced
229 {} |
229 {} |
230 |
230 |
231 /*virtual*/ void OnPaint(EvtPaint &ev); |
231 /*virtual*/ void OnPaint(EvtPaint &ev); |
232 }; |
232 }; |
233 |
233 |
|
234 struct CaptionBar : public CompositeWidget { |
|
235 typedef CompositeWidget super; |
|
236 |
|
237 static const int16 DEFAULT_HEIGHT = 14; |
|
238 |
|
239 protected: |
|
240 StringID m_text; |
|
241 byte m_text_color; |
|
242 |
|
243 public: |
|
244 CaptionBar() |
|
245 : CompositeWidget() |
|
246 , m_text(0) |
|
247 , m_text_color(0xFF) |
|
248 {} |
|
249 |
|
250 CaptionBar(CompositeWidget *container, WidgetId id, byte display_flags, byte color, byte text_color, StringID tooltips, StringID text) |
|
251 : CompositeWidget(container, id, display_flags, color, Rect16(0, 0, container->Width() - 1, DEFAULT_HEIGHT - 1), tooltips) |
|
252 , m_text(text) |
|
253 , m_text_color(text_color) |
|
254 {} |
|
255 |
|
256 /*virtual*/ void DrawBackground(EvtPaint &ev); |
|
257 |
|
258 /*virtual*/ void OnPaint(EvtPaint &ev); |
|
259 }; |
|
260 |
234 |
261 |
235 |
262 |
236 |
263 |
237 |
264 |
238 |
265 |