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 // 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 // Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"), // 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) { bool Font::load(const std::string &name) {
if (name.size() == 0) if (name.size() == 0)
return false; return false;
// default values for font options // default values for font options

View file

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

View file

@ -1,5 +1,5 @@
// Theme.hh for FbTk - Fluxbox ToolKit // 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 // Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"), // copy of this software and associated documentation files (the "Software"),