summaryrefslogtreecommitdiff
path: root/otk/style.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-11 10:03:11 +0000
committerDana Jansens <danakj@orodu.net>2002-11-11 10:03:11 +0000
commitfb0dd6cf9a839f9990ac877bf1b3d469d883b463 (patch)
tree26e92f3701e9164e7cba3ddb2106d8bb9402b7b1 /otk/style.hh
parent590f7f58a6d4ba9214d3bd2d42ba2c353b492d4e (diff)
some small cleanups
make style not take a screen separate from the image control make style::load() take a const ref
Diffstat (limited to 'otk/style.hh')
-rw-r--r--otk/style.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/otk/style.hh b/otk/style.hh
index d13a1282..2eb214c5 100644
--- a/otk/style.hh
+++ b/otk/style.hh
@@ -62,8 +62,7 @@ public:
public:
Style();
- Style(unsigned int);
- Style(unsigned int, BImageControl *);
+ Style(BImageControl *);
~Style();
void doJustify(const std::string &text, int &start_pos,
@@ -85,7 +84,7 @@ public:
BFont *readDatabaseFont(const std::string &rbasename,
const Configuration &style);
- void load(Configuration &);
+ void load(const Configuration &style);
inline BColor *getBorderColor(void) { return &border_color; }
@@ -134,8 +133,10 @@ public:
inline const BTexture &getFrameFocus() const { return f_focus; }
inline const BTexture &getFrameUnfocus() const { return f_unfocus; }
- inline void setImageControl(BImageControl *c) { image_control = c; }
- inline void setScreenNumber(unsigned int scr) { screen_number = scr; }
+ inline void setImageControl(BImageControl *c) {
+ image_control = c;
+ screen_number = c->getScreenInfo()->getScreenNumber();
+ }
inline unsigned int getScreen(void) { return screen_number; }
// XXX add inline accessors for the rest of the bummy