cosmetic white-space-stuff and/or copyright dates

This commit is contained in:
mathias 2005-02-07 13:46:55 +00:00
parent 8e33dad39f
commit 703fc0b0ee
4 changed files with 13 additions and 12 deletions

View file

@ -1,5 +1,5 @@
// FbDrawable.hh for FbTk - Fluxbox ToolKit
// Copyright (c) 2003-2005 Henrik Kinnunen (fluxgen at fluxbox dot org)
// Copyright (c) 2003 - 2005 Henrik Kinnunen (fluxgen at fluxbox dot org)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),

View file

@ -352,6 +352,7 @@ void Font::setAntialias(bool flag) {
}
bool Font::load(const std::string &name) {
if (name.size() == 0)
return false;
// default values for font options

View file

@ -1,6 +1,6 @@
// Font.cc for FbTk
// Copyright (c) 2002-2004 Henrik Kinnunen (fluxgen at fluxbox dot org)
//
// Copyright (c) 2002 - 2005 Henrik Kinnunen (fluxgen at fluxbox dot org)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
@ -54,7 +54,7 @@ public:
/// called at FbTk::App destruction time, cleans up what was inited first
static void shutdown();
/// @return true if multibyte is enabled, else false
static bool multibyte() { return m_multibyte; }
/// @return true if utf-8 mode is enabled, else false
@ -64,7 +64,7 @@ public:
Font(const char *name=0, bool antialias = false);
virtual ~Font();
/**
/**
Load a font
@return true on success, else false and it'll fall back on the last
loaded font
@ -80,11 +80,11 @@ public:
@return size of text in pixels
*/
unsigned int textWidth(const char * const text, unsigned int size) const;
unsigned int height() const;
unsigned int height() const;
int ascent() const;
int descent() const;
/**
Rotate font in any angle
Rotate font in any angle
(currently only 90 degrees supported and just XFont implementation)
*/
void rotate(float angle);
@ -99,9 +99,9 @@ public:
@param x position
@param y position
@param rotate if the text should be drawn rotated (if it's rotated before)
*/
void drawText(const FbDrawable &w, int screen, GC gc,
const char *text, size_t len,
*/
void drawText(const FbDrawable &w, int screen, GC gc,
const char *text, size_t len,
int x, int y, bool rotate=true) const;
bool isAntialias() const { return m_antialias; }
/// @return true if the font is rotated, else false
@ -111,7 +111,7 @@ public:
bool shadow() const { return m_shadow; }
bool halo() const { return m_halo; }
private:
std::auto_ptr<FontImp> m_fontimp; ///< font implementation
std::string m_fontstr; ///< font name
static bool m_multibyte; ///< if the fontimp should be a multibyte font

View file

@ -1,5 +1,5 @@
// Theme.hh for FbTk - Fluxbox ToolKit
// Copyright (c) 2002 - 2003 Henrik Kinnunen (fluxgen at fluxbox dot org)
// Copyright (c) 2002 - 2005 Henrik Kinnunen (fluxgen at fluxbox dot org)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),