noinst_LIBRARIES=libotk.a
-libotk_a_SOURCES= color.cc display.cc font.cc gccache.cc image.cc property.cc \
- imagecontrol.cc rect.cc screeninfo.cc texture.cc timer.cc \
- timerqueuemanager.cc style.cc configuration.cc util.cc \
- widget.cc focuswidget.cc button.cc eventhandler.cc \
- eventdispatcher.cc application.cc
+libotk_a_SOURCES= color.cc display.cc font.cc gccache.cc image.cc \
+ property.cc imagecontrol.cc rect.cc screeninfo.cc \
+ texture.cc timer.cc timerqueuemanager.cc style.cc \
+ configuration.cc util.cc widget.cc focuswidget.cc \
+ button.cc eventhandler.cc eventdispatcher.cc \
+ focuslabel.cc application.cc
MAINTAINERCLEANFILES= Makefile.in
}
-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();
Style(BImageControl *);
~Style();
- void doJustify(const std::string &text, int &start_pos,
- unsigned int max_length, unsigned int modifier) const;
-
void readDatabaseMask(const std::string &rname,
PixmapMask &pixmapMask,
const Configuration &style);