From 99cd843fc6dc7a7f55b6c90fd1162f233853aad2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 8 Feb 2003 07:33:48 +0000 Subject: Brand spankin new widgets for otk (Label and Button). Add a new Size class. Rect, Point, and Size are immutable classes. Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that. --- otk/focuslabel.hh | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 otk/focuslabel.hh (limited to 'otk/focuslabel.hh') diff --git a/otk/focuslabel.hh b/otk/focuslabel.hh deleted file mode 100644 index c25ab29c..00000000 --- a/otk/focuslabel.hh +++ /dev/null @@ -1,35 +0,0 @@ -// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __focuslabel_hh -#define __focuslabel_hh - -#include "focuswidget.hh" - -namespace otk { - -class FocusLabel : public FocusWidget { - -public: - - FocusLabel(Widget *parent); - ~FocusLabel(); - - inline const ustring &getText(void) const { return _text; } - void setText(const ustring &text) { _text = text; _dirty = true; } - - virtual void renderForeground(); - - virtual void update(); - - void fitString(const std::string &str); - void fitSize(int w, int h); - - virtual void setStyle(RenderStyle *style); - -private: - //! Text displayed in the label - ustring _text; -}; - -} - -#endif // __focuslabel_hh -- cgit v1.2.3