~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/gui/Widget.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-06-02 07:33:16 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120602073316-20r4hr32t4oj36u9
Tags: 3.7-1
* New upstream version.
* Update description and documentation with new features in 3.7, notably
  Blargg TV filters (replacing the filters available in versions 3.4.1
  and earlier).
* Switch to debhelper compatibility level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: Widget.hxx 2356 2012-01-14 22:00:54Z stephena $
 
17
// $Id: Widget.hxx 2438 2012-04-11 16:10:24Z stephena $
18
18
//
19
19
//   Based on code from ScummVM - Scumm Interpreter
20
20
//   Copyright (C) 2002-2004 The ScummVM project
86
86
  This is the base class for all widgets.
87
87
  
88
88
  @author  Stephen Anthony
89
 
  @version $Id: Widget.hxx 2356 2012-01-14 22:00:54Z stephena $
 
89
  @version $Id: Widget.hxx 2438 2012-04-11 16:10:24Z stephena $
90
90
*/
91
91
class Widget : public GuiObject
92
92
{
133
133
    bool wantsRaw() const    { return _flags & WIDGET_WANTS_RAWDATA;   }
134
134
 
135
135
    void setID(int id)  { _id = id;   }
136
 
    int  getID()        { return _id; }
 
136
    int  getID() const  { return _id; }
137
137
 
138
 
    virtual const GUI::Font* font() { return _font; }
 
138
    virtual const GUI::Font& font() const { return _font; }
139
139
 
140
140
    void setTextColor(uInt32 color)   { _textcolor = color;   }
141
141
    void setTextColorHi(uInt32 color) { _textcolorhi = color; }
161
161
  protected:
162
162
    int        _type;
163
163
    GuiObject* _boss;
164
 
    GUI::Font* _font;
 
164
    const GUI::Font& _font;
165
165
    Widget*    _next;
166
166
    int        _id;
167
167
    int        _flags;