summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/TextTheme.cc7
-rw-r--r--src/TextTheme.hh4
2 files changed, 9 insertions, 2 deletions
diff --git a/src/TextTheme.cc b/src/TextTheme.cc
index b54adcf..264975f 100644
--- a/src/TextTheme.cc
+++ b/src/TextTheme.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: TextTheme.cc,v 1.2 2003/08/12 00:20:47 fluxgen Exp $ 23// $Id: TextTheme.cc,v 1.3 2003/08/13 09:54:50 fluxgen Exp $
24 24
25#include "TextTheme.hh" 25#include "TextTheme.hh"
26 26
@@ -52,3 +52,8 @@ void TextTheme::update() {
52 XChangeGC(FbTk::App::instance()->display(), m_text_gc, 52 XChangeGC(FbTk::App::instance()->display(), m_text_gc,
53 GCForeground, &gcv); 53 GCForeground, &gcv);
54} 54}
55
56void TextTheme::setAntialias(bool value) {
57 font().setAntialias(value);
58 FbTk::ThemeManager::instance().loadItem(m_font);
59}
diff --git a/src/TextTheme.hh b/src/TextTheme.hh
index 21d4f1b..0764aca 100644
--- a/src/TextTheme.hh
+++ b/src/TextTheme.hh
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: TextTheme.hh,v 1.1 2003/08/11 14:28:38 fluxgen Exp $ 23// $Id: TextTheme.hh,v 1.2 2003/08/13 09:54:30 fluxgen Exp $
24 24
25#ifndef TEXTTHEME_HH 25#ifndef TEXTTHEME_HH
26#define TEXTTHEME_HH 26#define TEXTTHEME_HH
@@ -37,6 +37,8 @@ public:
37 37
38 void update(); 38 void update();
39 39
40 void setAntialias(bool value);
41
40 FbTk::Font &font() { return *m_font; } 42 FbTk::Font &font() { return *m_font; }
41 const FbTk::Font &font() const { return *m_font; } 43 const FbTk::Font &font() const { return *m_font; }
42 const FbTk::Color &textColor() const { return *m_text_color; } 44 const FbTk::Color &textColor() const { return *m_text_color; }