diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-05-21 20:36:26 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-05-21 20:36:26 +0000 |
commit | d908cc68a7c3fe49814ba459f0ee33dc44decf5b (patch) | |
tree | c752aa96e1923eae07f284402812bfa8103c36b8 /src/formatter.cpp | |
parent | f36140137654bb48faa6d13319f5e0e1f35a1770 (diff) | |
download | libbu++-d908cc68a7c3fe49814ba459f0ee33dc44decf5b.tar.gz libbu++-d908cc68a7c3fe49814ba459f0ee33dc44decf5b.tar.bz2 libbu++-d908cc68a7c3fe49814ba459f0ee33dc44decf5b.tar.xz libbu++-d908cc68a7c3fe49814ba459f0ee33dc44decf5b.zip |
Added some more helpers to Bu::Formatter::Fmt, make it a little easier to use.
Diffstat (limited to 'src/formatter.cpp')
-rw-r--r-- | src/formatter.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/formatter.cpp b/src/formatter.cpp index 8c06bde..dc4336b 100644 --- a/src/formatter.cpp +++ b/src/formatter.cpp | |||
@@ -153,6 +153,24 @@ Bu::Formatter::Fmt &Bu::Formatter::Fmt::align( Alignment eAlign ) | |||
153 | return *this; | 153 | return *this; |
154 | } | 154 | } |
155 | 155 | ||
156 | Bu::Formatter::Fmt &Bu::Formatter::Fmt::left() | ||
157 | { | ||
158 | this->uAlign = Fmt::Left; | ||
159 | return *this; | ||
160 | } | ||
161 | |||
162 | Bu::Formatter::Fmt &Bu::Formatter::Fmt::center() | ||
163 | { | ||
164 | this->uAlign = Fmt::Center; | ||
165 | return *this; | ||
166 | } | ||
167 | |||
168 | Bu::Formatter::Fmt &Bu::Formatter::Fmt::right() | ||
169 | { | ||
170 | this->uAlign = Fmt::Right; | ||
171 | return *this; | ||
172 | } | ||
173 | |||
156 | Bu::Formatter::Fmt &Bu::Formatter::Fmt::plus( bool bPlus ) | 174 | Bu::Formatter::Fmt &Bu::Formatter::Fmt::plus( bool bPlus ) |
157 | { | 175 | { |
158 | this->bPlus = bPlus; | 176 | this->bPlus = bPlus; |