Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-09 17:44:24 +0000
committerStijn Buys <ingar@osirion.org>2008-11-09 17:44:24 +0000
commit06212c7d8dc20b11f49d54e42f8299740f90a231 (patch)
treeaf179e6015cb86be61ee640154fde1d70967d919 /src/ui/scrollpane.h
parentf0ba130494173d01c6e800c95e19dc1826ddc68e (diff)
improved client notifications, minor bugfixes
Diffstat (limited to 'src/ui/scrollpane.h')
-rw-r--r--src/ui/scrollpane.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/ui/scrollpane.h b/src/ui/scrollpane.h
index 47e68ee..f0ffac1 100644
--- a/src/ui/scrollpane.h
+++ b/src/ui/scrollpane.h
@@ -19,7 +19,20 @@ class ScrollPane : public Widget
public:
ScrollPane(Widget *parent, ui::Text &text);
~ScrollPane();
+
+ /* -- inspectors ------------------------------------------- */
+
+ /// current scroll position
+ inline int scroll() const { return scrollpane_scroll; }
+
+ /// text alignment
+ inline unsigned int alignment() const { return scrollpane_alignment; }
+ /// set text alignment
+ void set_alignment(const unsigned int alignment);
+
+ /* -- mutators --------------------------------------------- */
+
/// set scroll
void set_scroll(int scroll);
@@ -29,9 +42,6 @@ public:
/// decrease scroll
void dec_scroll(int scroll);
- /// current scroll position
- inline int scroll() const { return scrollpane_scroll; }
-
protected:
/// draw the scroll pane
virtual void draw();
@@ -39,6 +49,7 @@ protected:
private:
ui::Text &scrollpane_text;
int scrollpane_scroll;
+ unsigned int scrollpane_alignment;
};
}