summaryrefslogtreecommitdiff
path: root/otk/style.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-16 13:00:22 +0000
committerDana Jansens <danakj@orodu.net>2002-11-16 13:00:22 +0000
commit6b977b2ded0b8807dd05bb7ee0c318612600027d (patch)
treecb11f3dd4691d59034326973af8cdf8e3e87e38a /otk/style.cc
parent804b8cc6e5913913a76894a753619590a291c204 (diff)
add OtkFocusLabel
Diffstat (limited to 'otk/style.cc')
-rw-r--r--otk/style.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/otk/style.cc b/otk/style.cc
index 3c40e24b..277924d6 100644
--- a/otk/style.cc
+++ b/otk/style.cc
@@ -156,32 +156,6 @@ void Style::load(const Configuration &style) {
}
-void Style::doJustify(const std::string &text, int &start_pos,
- unsigned int max_length,
- unsigned int modifier) const {
- size_t text_len = text.size();
- unsigned int length;
-
- do {
- length = font->measureString(std::string(text, 0, text_len)) + modifier;
- } while (length > max_length && text_len-- > 0);
-
- switch (justify) {
- case RightJustify:
- start_pos += max_length - length;
- break;
-
- case CenterJustify:
- start_pos += (max_length - length) / 2;
- break;
-
- case LeftJustify:
- default:
- break;
- }
-}
-
-
void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask,
const Configuration &style) {
Window root_window = OBDisplay::screenInfo(screen_number)->getRootWindow();