'inline' in class declaration is implicitly inline

This commit is contained in:
Mathias Gumz 2007-12-29 22:38:53 +01:00
parent e90c3678d9
commit e1f362ae76
44 changed files with 583 additions and 584 deletions

View file

@ -41,10 +41,10 @@ public:
bool fallback(FbTk::ThemeItem_base &item); bool fallback(FbTk::ThemeItem_base &item);
void reconfigTheme(); void reconfigTheme();
inline const FbTk::Texture &pressed() const { return *m_pressed_texture; } const FbTk::Texture &pressed() const { return *m_pressed_texture; }
inline GC gc() const { return m_gc.gc(); } GC gc() const { return m_gc.gc(); }
inline int scale() const { return *m_scale; } // scale factor for inside objects int scale() const { return *m_scale; } // scale factor for inside objects
inline const std::string &name() { return m_name; } const std::string &name() { return m_name; }
private: private:
FbTk::ThemeItem<FbTk::Color> m_pic_color; FbTk::ThemeItem<FbTk::Color> m_pic_color;

View file

@ -76,7 +76,7 @@ public:
*/ */
bool addTerm(const std::string &str, WinProperty prop, bool negate = false); bool addTerm(const std::string &str, WinProperty prop, bool negate = false);
inline void addMatch() { ++m_nummatches; } void addMatch() { ++m_nummatches; }
// whether this pattern has identical matching criteria // whether this pattern has identical matching criteria
bool operator ==(const ClientPattern &pat) const; bool operator ==(const ClientPattern &pat) const;
@ -85,7 +85,7 @@ public:
* If there are no terms, then there is assumed to be an error * If there are no terms, then there is assumed to be an error
* the column of the error is stored in m_matchlimit * the column of the error is stored in m_matchlimit
*/ */
inline int error() const { return m_terms.empty() ? 1 : 0; } int error() const { return m_terms.empty() ? 1 : 0; }
static std::string getProperty(WinProperty prop, const Focusable &client); static std::string getProperty(WinProperty prop, const Focusable &client);

View file

@ -62,7 +62,7 @@ public:
unsigned int width() const; unsigned int width() const;
unsigned int height() const; unsigned int height() const;
unsigned int borderWidth() const; unsigned int borderWidth() const;
inline const std::string &timeFormat() const { return *m_timeformat; } const std::string &timeFormat() const { return *m_timeformat; }
void setOrientation(FbTk::Orientation orient); void setOrientation(FbTk::Orientation orient);

View file

@ -34,17 +34,17 @@ public:
static FbAtoms *instance(); static FbAtoms *instance();
inline Atom getWMChangeStateAtom() const { return xa_wm_change_state; } Atom getWMChangeStateAtom() const { return xa_wm_change_state; }
inline Atom getWMStateAtom() const { return xa_wm_state; } Atom getWMStateAtom() const { return xa_wm_state; }
inline Atom getWMDeleteAtom() const { return xa_wm_delete_window; } Atom getWMDeleteAtom() const { return xa_wm_delete_window; }
inline Atom getWMProtocolsAtom() const { return xa_wm_protocols; } Atom getWMProtocolsAtom() const { return xa_wm_protocols; }
inline Atom getWMTakeFocusAtom() const { return xa_wm_take_focus; } Atom getWMTakeFocusAtom() const { return xa_wm_take_focus; }
inline Atom getMWMHintsAtom() const { return motif_wm_hints; } Atom getMWMHintsAtom() const { return motif_wm_hints; }
// these atoms are for normal app->WM interaction beyond the scope of the // these atoms are for normal app->WM interaction beyond the scope of the
// ICCCM... // ICCCM...
inline Atom getFluxboxAttributesAtom() const { return blackbox_attributes; } Atom getFluxboxAttributesAtom() const { return blackbox_attributes; }
private: private:
void initAtoms(); void initAtoms();

View file

@ -38,8 +38,8 @@ public:
// we should not assign a new window to this // we should not assign a new window to this
FbTk::FbWindow &operator = (Window win) { return *this; } FbTk::FbWindow &operator = (Window win) { return *this; }
void updateGeometry(); void updateGeometry();
inline Visual *visual() const { return m_visual; } Visual *visual() const { return m_visual; }
inline Colormap colormap() const { return m_colormap; } Colormap colormap() const { return m_colormap; }
private: private:
Visual *m_visual; Visual *m_visual;

View file

@ -37,8 +37,8 @@ template <typename T>
class SimpleAccessor: public Accessor<T> { class SimpleAccessor: public Accessor<T> {
public: public:
SimpleAccessor(T &val): m_val(val) { } SimpleAccessor(T &val): m_val(val) { }
inline Accessor<T> &operator =(const T &val) { m_val = val; return *this; } Accessor<T> &operator =(const T &val) { m_val = val; return *this; }
inline operator T() const { return m_val; } operator T() const { return m_val; }
private: private:
T &m_val; T &m_val;
@ -53,8 +53,8 @@ public:
ObjectAccessor(Receiver &r, Getter g, Setter s): ObjectAccessor(Receiver &r, Getter g, Setter s):
m_receiver(r), m_getter(g), m_setter(s) { } m_receiver(r), m_getter(g), m_setter(s) { }
inline operator T() const { return (m_receiver.*m_getter)(); } operator T() const { return (m_receiver.*m_getter)(); }
inline Accessor<T> &operator =(const T &val) { Accessor<T> &operator =(const T &val) {
(m_receiver.*m_setter)(val); return *this; (m_receiver.*m_setter)(val); return *this;
} }
@ -72,8 +72,8 @@ public:
ConstObjectAccessor(const Receiver &r, Getter g): ConstObjectAccessor(const Receiver &r, Getter g):
m_receiver(r), m_getter(g) { } m_receiver(r), m_getter(g) { }
inline operator T() const { return (m_receiver.*m_getter)(); } operator T() const { return (m_receiver.*m_getter)(); }
inline Accessor<T> &operator =(const T &val) { return *this; } Accessor<T> &operator =(const T &val) { return *this; }
private: private:
const Receiver &m_receiver; const Receiver &m_receiver;

View file

@ -46,7 +46,7 @@ public:
explicit App(const char *displayname=0); explicit App(const char *displayname=0);
virtual ~App(); virtual ~App();
/// display connection /// display connection
inline Display *display() const { return m_display; } Display *display() const { return m_display; }
void sync(bool discard); void sync(bool discard);
/// starts event loop /// starts event loop
virtual void eventLoop(); virtual void eventLoop();

View file

@ -49,11 +49,11 @@ public:
Color &operator = (const Color &col_copy); Color &operator = (const Color &col_copy);
inline bool isAllocated() const { return m_allocated; } bool isAllocated() const { return m_allocated; }
inline unsigned short red() const { return m_red; } unsigned short red() const { return m_red; }
inline unsigned short green() const { return m_green; } unsigned short green() const { return m_green; }
inline unsigned short blue() const { return m_blue; } unsigned short blue() const { return m_blue; }
inline unsigned long pixel() const { return m_pixel; } unsigned long pixel() const { return m_pixel; }
/// @return true if the color name in color_string is resolved, else false /// @return true if the color name in color_string is resolved, else false
static bool validColorString(const char *color_string, int screen); static bool validColorString(const char *color_string, int screen);
@ -63,7 +63,7 @@ private:
void copy(const Color &col); void copy(const Color &col);
void allocate(unsigned short red, unsigned short green, void allocate(unsigned short red, unsigned short green,
unsigned short blue, int screen); unsigned short blue, int screen);
inline void setAllocated(bool a) { m_allocated = a; } void setAllocated(bool a) { m_allocated = a; }
void setRGB(unsigned short red, unsigned short green, unsigned short blue); void setRGB(unsigned short red, unsigned short green, unsigned short blue);

View file

@ -71,9 +71,9 @@ public:
Item back() { return m_item_list.back(); } Item back() { return m_item_list.back(); }
/// force update /// force update
inline void update() { repositionItems(); } void update() { repositionItems(); }
/// so we can add items without having an graphic update for each item /// so we can add items without having an graphic update for each item
inline void setUpdateLock(bool value) { m_update_lock = value; } void setUpdateLock(bool value) { m_update_lock = value; }
/// event handler /// event handler
void exposeEvent(XExposeEvent &event); void exposeEvent(XExposeEvent &event);
@ -86,12 +86,12 @@ public:
void invalidateBackground(); void invalidateBackground();
/// accessors /// accessors
inline Alignment alignment() const { return m_align; } Alignment alignment() const { return m_align; }
inline Orientation orientation() const { return m_orientation; } Orientation orientation() const { return m_orientation; }
inline int size() const { return m_item_list.size(); } int size() const { return m_item_list.size(); }
inline bool empty() const { return m_item_list.empty(); } bool empty() const { return m_item_list.empty(); }
unsigned int maxWidthPerClient() const; unsigned int maxWidthPerClient() const;
inline bool updateLock() const { return m_update_lock; } bool updateLock() const { return m_update_lock; }
void for_each(std::mem_fun_t<void, FbWindow> function); void for_each(std::mem_fun_t<void, FbWindow> function);
void setAlpha(unsigned char alpha); // set alpha on all windows void setAlpha(unsigned char alpha); // set alpha on all windows

View file

@ -36,14 +36,14 @@ public:
DefaultValue(const Def def): DefaultValue(const Def def):
m_default(def), m_actual(def), m_use_default(true) { } m_default(def), m_actual(def), m_use_default(true) { }
inline void restoreDefault() { m_use_default = true; } void restoreDefault() { m_use_default = true; }
inline bool isDefault() const { return m_use_default; } bool isDefault() const { return m_use_default; }
inline DefaultValue<Ret, Def> &operator =(const Ret &val) { DefaultValue<Ret, Def> &operator =(const Ret &val) {
m_use_default = false; m_actual = val; return *this; m_use_default = false; m_actual = val; return *this;
} }
inline operator Ret() const { return m_use_default ? m_default : m_actual; } operator Ret() const { return m_use_default ? m_default : m_actual; }
private: private:
const Def m_default; const Def m_default;

View file

@ -64,10 +64,10 @@ public:
/// sets new pixmap /// sets new pixmap
FbPixmap &operator = (Pixmap pm); FbPixmap &operator = (Pixmap pm);
inline Drawable drawable() const { return m_pm; } Drawable drawable() const { return m_pm; }
inline unsigned int width() const { return m_width; } unsigned int width() const { return m_width; }
inline unsigned int height() const { return m_height; } unsigned int height() const { return m_height; }
inline unsigned int depth() const { return m_depth; } unsigned int depth() const { return m_depth; }
static Pixmap getRootPixmap(int screen_num, bool force_update=false); static Pixmap getRootPixmap(int screen_num, bool force_update=false);
static bool setRootPixmap(int screen_num, Pixmap pm); static bool setRootPixmap(int screen_num, Pixmap pm);

View file

@ -101,11 +101,11 @@ public:
/// Notify that the parent window was moved, /// Notify that the parent window was moved,
/// thus the absolute position of this one moved /// thus the absolute position of this one moved
virtual inline void parentMoved() { virtual void parentMoved() {
updateBackground(true); updateBackground(true);
} }
virtual inline void move(int x, int y) { virtual void move(int x, int y) {
if (x == m_x && y == m_y) if (x == m_x && y == m_y)
return; return;
XMoveWindow(s_display, m_window, x, y); XMoveWindow(s_display, m_window, x, y);
@ -114,7 +114,7 @@ public:
updateBackground(true); updateBackground(true);
} }
virtual inline void resize(unsigned int width, unsigned int height) { virtual void resize(unsigned int width, unsigned int height) {
if (width == m_width && height == m_height) if (width == m_width && height == m_height)
return; return;
XResizeWindow(s_display, m_window, width, height); XResizeWindow(s_display, m_window, width, height);
@ -123,7 +123,7 @@ public:
updateBackground(false); updateBackground(false);
} }
virtual inline void moveResize(int x, int y, unsigned int width, unsigned int height) { virtual void moveResize(int x, int y, unsigned int width, unsigned int height) {
if (x == m_x && y == m_y && width == m_width && height == m_height) if (x == m_x && y == m_y && width == m_width && height == m_height)
return; return;
XMoveResizeWindow(s_display, m_window, x, y, width, height); XMoveResizeWindow(s_display, m_window, x, y, width, height);
@ -171,26 +171,26 @@ public:
/// @return parent FbWindow /// @return parent FbWindow
const FbWindow *parent() const { return m_parent; } const FbWindow *parent() const { return m_parent; }
/// @return real X window /// @return real X window
inline Window window() const { return m_window; } Window window() const { return m_window; }
/// @return drawable (the X window) /// @return drawable (the X window)
inline Drawable drawable() const { return window(); } Drawable drawable() const { return window(); }
inline int x() const { return m_x; } int x() const { return m_x; }
inline int y() const { return m_y; } int y() const { return m_y; }
inline unsigned int width() const { return m_width; } unsigned int width() const { return m_width; }
inline unsigned int height() const { return m_height; } unsigned int height() const { return m_height; }
inline unsigned int borderWidth() const { return m_border_width; } unsigned int borderWidth() const { return m_border_width; }
inline unsigned int depth() const { return m_depth; } unsigned int depth() const { return m_depth; }
unsigned char alpha() const; unsigned char alpha() const;
int screenNumber() const; int screenNumber() const;
long eventMask() const; long eventMask() const;
Display *display() const { return s_display; } Display *display() const { return s_display; }
/// compare X window /// compare X window
inline bool operator == (Window win) const { return m_window == win; } bool operator == (Window win) const { return m_window == win; }
inline bool operator != (Window win) const { return m_window != win; } bool operator != (Window win) const { return m_window != win; }
/// compare two windows /// compare two windows
inline bool operator == (const FbWindow &win) const { return m_window == win.m_window; } bool operator == (const FbWindow &win) const { return m_window == win.m_window; }
inline bool operator != (const FbWindow &win) const { return m_window != win.m_window; } bool operator != (const FbWindow &win) const { return m_window != win.m_window; }
// used for composite // used for composite
void setOpaque(unsigned char alpha); void setOpaque(unsigned char alpha);

View file

@ -61,67 +61,67 @@ public:
GContext(Drawable d, const FbTk::GContext &gc); GContext(Drawable d, const FbTk::GContext &gc);
virtual ~GContext(); virtual ~GContext();
inline void setForeground(const FbTk::Color &color) { void setForeground(const FbTk::Color &color) {
setForeground(color.pixel()); setForeground(color.pixel());
} }
inline void setForeground(long pixel_value) { void setForeground(long pixel_value) {
XSetForeground(m_display, m_gc, XSetForeground(m_display, m_gc,
pixel_value); pixel_value);
} }
inline void setBackground(const FbTk::Color &color) { void setBackground(const FbTk::Color &color) {
setBackground(color.pixel()); setBackground(color.pixel());
} }
inline void setBackground(long pixel_value) { void setBackground(long pixel_value) {
XSetBackground(m_display, m_gc, pixel_value); XSetBackground(m_display, m_gc, pixel_value);
} }
inline void setTile(Drawable draw) { void setTile(Drawable draw) {
XSetTile(m_display, m_gc, draw); XSetTile(m_display, m_gc, draw);
} }
inline void setTile(const FbTk::FbPixmap &draw) { void setTile(const FbTk::FbPixmap &draw) {
setTile(draw.drawable()); setTile(draw.drawable());
} }
/// not implemented /// not implemented
inline void setFont(const FbTk::Font &) {} void setFont(const FbTk::Font &) {}
/// set font id /// set font id
inline void setFont(int fid) { void setFont(int fid) {
XSetFont(m_display, m_gc, fid); XSetFont(m_display, m_gc, fid);
} }
#ifdef NOT_USED #ifdef NOT_USED
inline void setClipMask(const FbTk::FbPixmap &mask) { void setClipMask(const FbTk::FbPixmap &mask) {
XSetClipMask(m_display, m_gc, mask.drawable()); XSetClipMask(m_display, m_gc, mask.drawable());
} }
inline void setClipOrigin(int x, int y) { void setClipOrigin(int x, int y) {
XSetClipOrigin(m_display, m_gc, x, y); XSetClipOrigin(m_display, m_gc, x, y);
} }
#endif #endif
inline void setGraphicsExposure(bool value) { void setGraphicsExposure(bool value) {
XSetGraphicsExposures(m_display, m_gc, value); XSetGraphicsExposures(m_display, m_gc, value);
} }
inline void setFunction(int func) { void setFunction(int func) {
XSetFunction(m_display, m_gc, func); XSetFunction(m_display, m_gc, func);
} }
inline void setSubwindowMode(int mode) { void setSubwindowMode(int mode) {
XSetSubwindowMode(m_display, m_gc, mode); XSetSubwindowMode(m_display, m_gc, mode);
} }
inline void setFillStyle(int style) { void setFillStyle(int style) {
XSetFillStyle(m_display, m_gc, style); XSetFillStyle(m_display, m_gc, style);
} }
#ifdef NOT_USED #ifdef NOT_USED
inline void setFillRule(int rule) { void setFillRule(int rule) {
XSetFillRule(m_display, m_gc, rule); XSetFillRule(m_display, m_gc, rule);
} }
#endif #endif
inline void setLineAttributes(unsigned int width, void setLineAttributes(unsigned int width,
int line_style, int line_style,
int cap_style, int cap_style,
int join_style) { int join_style) {
@ -133,9 +133,9 @@ public:
void copy(GC gc); void copy(GC gc);
void copy(const GContext &gc); void copy(const GContext &gc);
inline GContext &operator = (const GContext &copy_gc) { copy(copy_gc); return *this; } GContext &operator = (const GContext &copy_gc) { copy(copy_gc); return *this; }
inline GContext &operator = (GC copy_gc) { copy(copy_gc); return *this; } GContext &operator = (GC copy_gc) { copy(copy_gc); return *this; }
inline GC gc() const { return m_gc; } GC gc() const { return m_gc; }
private: private:
GContext(const GContext &cont); GContext(const GContext &cont);

View file

@ -105,9 +105,9 @@ namespace FbTk {
class I18n { class I18n {
public: public:
static I18n *instance(); static I18n *instance();
inline const char *getLocale() const { return m_locale.c_str(); } const char *getLocale() const { return m_locale.c_str(); }
inline bool multibyte() const { return m_multibyte; } bool multibyte() const { return m_multibyte; }
inline const nl_catd &getCatalogFd() const { return m_catalog_fd; } const nl_catd &getCatalogFd() const { return m_catalog_fd; }
FbString getMessage(int set_number, int message_number, FbString getMessage(int set_number, int message_number,
const char *default_messsage = 0, bool translate_fb = false) const; const char *default_messsage = 0, bool translate_fb = false) const;

View file

@ -47,14 +47,14 @@ public:
unsigned long cache_timeout = 300000l, unsigned long cache_max = 200l); unsigned long cache_timeout = 300000l, unsigned long cache_max = 200l);
virtual ~ImageControl(); virtual ~ImageControl();
inline bool doDither() const { return m_dither; } bool doDither() const { return m_dither; }
#ifdef NOT_USED #ifdef NOT_USED
inline int bitsPerPixel() const { return bits_per_pixel; } int bitsPerPixel() const { return bits_per_pixel; }
#endif #endif
inline int depth() const { return m_screen_depth; } int depth() const { return m_screen_depth; }
inline int colorsPerChannel() const { return m_colors_per_channel; } int colorsPerChannel() const { return m_colors_per_channel; }
inline int screenNumber() const { return m_screen_num; } int screenNumber() const { return m_screen_num; }
inline Visual *visual() const { return m_visual; } Visual *visual() const { return m_visual; }
unsigned long getSqrt(unsigned int val) const; unsigned long getSqrt(unsigned int val) const;
/** /**

View file

@ -79,11 +79,11 @@ public:
int remove(unsigned int item); int remove(unsigned int item);
/// remove all items /// remove all items
void removeAll(); void removeAll();
inline void setInternalMenu(bool val = true) { m_internal_menu = val; } void setInternalMenu(bool val = true) { m_internal_menu = val; }
inline void setAlignment(Alignment a) { m_alignment = a; } void setAlignment(Alignment a) { m_alignment = a; }
#ifdef NOT_USED #ifdef NOT_USED
inline void setTorn() { m_torn = true; } void setTorn() { m_torn = true; }
inline void removeParent() { if (m_internal_menu) m_parent = 0; } void removeParent() { if (m_internal_menu) m_parent = 0; }
#endif #endif
/// raise this window /// raise this window
virtual void raise(); virtual void raise();
@ -119,7 +119,7 @@ public:
virtual void updateMenu(int active_index = -1); virtual void updateMenu(int active_index = -1);
void setItemSelected(unsigned int index, bool val); void setItemSelected(unsigned int index, bool val);
void setItemEnabled(unsigned int index, bool val); void setItemEnabled(unsigned int index, bool val);
inline void setMinimumSublevels(int m) { menu.minsub = m; } void setMinimumSublevels(int m) { menu.minsub = m; }
virtual void drawSubmenu(unsigned int index); virtual void drawSubmenu(unsigned int index);
/// show menu /// show menu
virtual void show(); virtual void show();
@ -134,48 +134,48 @@ public:
@name accessors @name accessors
*/ */
//@{ //@{
inline int activeIndex() const { return m_active_index; } int activeIndex() const { return m_active_index; }
#endif #endif
inline bool isTorn() const { return m_torn; } bool isTorn() const { return m_torn; }
inline bool isVisible() const { return m_visible; } bool isVisible() const { return m_visible; }
inline bool isMoving() const { return m_moving; } bool isMoving() const { return m_moving; }
inline int screenNumber() const { return menu.window.screenNumber(); } int screenNumber() const { return menu.window.screenNumber(); }
inline Window window() const { return menu.window.window(); } Window window() const { return menu.window.window(); }
inline FbWindow &fbwindow() { return menu.window; } FbWindow &fbwindow() { return menu.window; }
inline const FbWindow &fbwindow() const { return menu.window; } const FbWindow &fbwindow() const { return menu.window; }
inline FbWindow &titleWindow() { return menu.title; } FbWindow &titleWindow() { return menu.title; }
inline FbWindow &frameWindow() { return menu.frame; } FbWindow &frameWindow() { return menu.frame; }
inline const std::string &label() const { return menu.label; } const std::string &label() const { return menu.label; }
inline int x() const { return menu.window.x(); } int x() const { return menu.window.x(); }
inline int y() const { return menu.window.y(); } int y() const { return menu.window.y(); }
inline unsigned int width() const { return menu.window.width(); } unsigned int width() const { return menu.window.width(); }
inline unsigned int height() const { return menu.window.height(); } unsigned int height() const { return menu.window.height(); }
inline size_t numberOfItems() const { return menuitems.size(); } size_t numberOfItems() const { return menuitems.size(); }
inline int currentSubmenu() const { return m_which_sub; } int currentSubmenu() const { return m_which_sub; }
bool isItemSelected(unsigned int index) const; bool isItemSelected(unsigned int index) const;
bool isItemEnabled(unsigned int index) const; bool isItemEnabled(unsigned int index) const;
bool isItemSelectable(unsigned int index) const; bool isItemSelectable(unsigned int index) const;
inline const MenuTheme &theme() const { return m_theme; } const MenuTheme &theme() const { return m_theme; }
inline unsigned char alpha() const { return theme().alpha(); } unsigned char alpha() const { return theme().alpha(); }
inline static Menu *shownMenu() { return shown; } static Menu *shownMenu() { return shown; }
inline static Menu *focused() { return s_focused; } static Menu *focused() { return s_focused; }
static void hideShownMenu(); static void hideShownMenu();
/// @return menuitem at index /// @return menuitem at index
inline const MenuItem *find(unsigned int index) const { return menuitems[index]; } const MenuItem *find(unsigned int index) const { return menuitems[index]; }
inline MenuItem *find(unsigned int index) { return menuitems[index]; } MenuItem *find(unsigned int index) { return menuitems[index]; }
//@} //@}
/// @return true if index is valid /// @return true if index is valid
inline bool validIndex(int index) const { return (index < static_cast<int>(numberOfItems()) && index >= 0); } bool validIndex(int index) const { return (index < static_cast<int>(numberOfItems()) && index >= 0); }
inline Menu *parent() { return m_parent; } Menu *parent() { return m_parent; }
inline const Menu *parent() const { return m_parent; } const Menu *parent() const { return m_parent; }
void renderForeground(FbWindow &win, FbDrawable &drawable); void renderForeground(FbWindow &win, FbDrawable &drawable);
protected: protected:
inline void setTitleVisibility(bool b) { void setTitleVisibility(bool b) {
m_title_vis = b; m_need_update = true; m_title_vis = b; m_need_update = true;
if (!b) if (!b)
titleWindow().lower(); titleWindow().lower();

View file

@ -92,7 +92,7 @@ public:
{ } { }
virtual ~MenuItem() { } virtual ~MenuItem() { }
inline void setCommand(RefCount<Command> &cmd) { m_command = cmd; } void setCommand(RefCount<Command> &cmd) { m_command = cmd; }
virtual void setSelected(bool selected) { m_selected = selected; } virtual void setSelected(bool selected) { m_selected = selected; }
virtual void setEnabled(bool enabled) { m_enabled = enabled; } virtual void setEnabled(bool enabled) { m_enabled = enabled; }
virtual void setLabel(const FbString &label) { m_label = label; } virtual void setLabel(const FbString &label) { m_label = label; }
@ -114,9 +114,9 @@ public:
virtual bool isToggleItem() const { return m_toggle_item; } virtual bool isToggleItem() const { return m_toggle_item; }
// iType functions // iType functions
virtual inline void setIndex(int index) { m_index = index; } virtual void setIndex(int index) { m_index = index; }
virtual inline int getIndex() { return m_index; } virtual int getIndex() { return m_index; }
inline const std::string &iTypeString() const { return m_label; } const std::string &iTypeString() const { return m_label; }
virtual void drawLine(FbDrawable &draw, virtual void drawLine(FbDrawable &draw,
const MenuTheme &theme, const MenuTheme &theme,
size_t size, size_t size,

View file

@ -55,89 +55,89 @@ public:
@name text colors @name text colors
*/ */
///@{ ///@{
inline const Color &titleTextColor() const { return *t_text; } const Color &titleTextColor() const { return *t_text; }
inline const Color &frameTextColor() const { return *f_text; } const Color &frameTextColor() const { return *f_text; }
inline const Color &frameUnderlineColor() const { return *u_text; } const Color &frameUnderlineColor() const { return *u_text; }
inline const Color &highlightTextColor() const { return *h_text; } const Color &highlightTextColor() const { return *h_text; }
inline const Color &disableTextColor() const { return *d_text; } const Color &disableTextColor() const { return *d_text; }
///@} ///@}
/** /**
@name textures @name textures
*/ */
///@{ ///@{
inline const Texture &titleTexture() const { return *title; } const Texture &titleTexture() const { return *title; }
inline const Texture &frameTexture() const { return *frame; } const Texture &frameTexture() const { return *frame; }
inline const Texture &hiliteTexture() const { return *hilite; } const Texture &hiliteTexture() const { return *hilite; }
///@} ///@}
inline const PixmapWithMask &bulletPixmap() const { return *m_bullet_pixmap; } const PixmapWithMask &bulletPixmap() const { return *m_bullet_pixmap; }
inline const PixmapWithMask &selectedPixmap() const { return *m_selected_pixmap; } const PixmapWithMask &selectedPixmap() const { return *m_selected_pixmap; }
inline const PixmapWithMask &unselectedPixmap() const { return *m_unselected_pixmap; } const PixmapWithMask &unselectedPixmap() const { return *m_unselected_pixmap; }
inline const PixmapWithMask &highlightBulletPixmap() const { return *m_hl_bullet_pixmap; } const PixmapWithMask &highlightBulletPixmap() const { return *m_hl_bullet_pixmap; }
inline const PixmapWithMask &highlightSelectedPixmap() const { return *m_hl_selected_pixmap; } const PixmapWithMask &highlightSelectedPixmap() const { return *m_hl_selected_pixmap; }
inline const PixmapWithMask &highlightUnselectedPixmap() const { return *m_hl_unselected_pixmap; } const PixmapWithMask &highlightUnselectedPixmap() const { return *m_hl_unselected_pixmap; }
/** /**
@name fonts @name fonts
*/ */
///@{ ///@{
inline const Font &titleFont() const { return *titlefont; } const Font &titleFont() const { return *titlefont; }
inline Font &titleFont() { return *titlefont; } Font &titleFont() { return *titlefont; }
inline const Font &frameFont() const { return *framefont; } const Font &frameFont() const { return *framefont; }
inline Font &frameFont() { return *framefont; } Font &frameFont() { return *framefont; }
///@} ///@}
inline Justify frameFontJustify() const { return *framefont_justify; } Justify frameFontJustify() const { return *framefont_justify; }
inline Justify titleFontJustify() const { return *titlefont_justify; } Justify titleFontJustify() const { return *titlefont_justify; }
/** /**
@name graphic contexts @name graphic contexts
*/ */
///@{ ///@{
inline const GContext &titleTextGC() const { return t_text_gc; } const GContext &titleTextGC() const { return t_text_gc; }
inline const GContext &frameTextGC() const { return f_text_gc; } const GContext &frameTextGC() const { return f_text_gc; }
inline const GContext &frameUnderlineGC() const { return u_text_gc; } const GContext &frameUnderlineGC() const { return u_text_gc; }
inline const GContext &hiliteTextGC() const { return h_text_gc; } const GContext &hiliteTextGC() const { return h_text_gc; }
inline const GContext &disableTextGC() const { return d_text_gc; } const GContext &disableTextGC() const { return d_text_gc; }
inline const GContext &hiliteGC() const { return hilite_gc; } const GContext &hiliteGC() const { return hilite_gc; }
inline GContext &titleTextGC() { return t_text_gc; } GContext &titleTextGC() { return t_text_gc; }
inline GContext &frameTextGC() { return f_text_gc; } GContext &frameTextGC() { return f_text_gc; }
inline GContext &frameUnderlineGC() { return u_text_gc; } GContext &frameUnderlineGC() { return u_text_gc; }
inline GContext &hiliteTextGC() { return h_text_gc; } GContext &hiliteTextGC() { return h_text_gc; }
inline GContext &disableTextGC() { return d_text_gc; } GContext &disableTextGC() { return d_text_gc; }
inline GContext &hiliteGC() { return hilite_gc; } GContext &hiliteGC() { return hilite_gc; }
///@} ///@}
inline BulletType bullet() const { return *m_bullet; } BulletType bullet() const { return *m_bullet; }
inline Justify bulletPos() const { return *bullet_pos; } Justify bulletPos() const { return *bullet_pos; }
inline unsigned int titleHeight() const { return m_real_title_height; } unsigned int titleHeight() const { return m_real_title_height; }
inline unsigned int itemHeight() const { return m_real_item_height; } unsigned int itemHeight() const { return m_real_item_height; }
inline unsigned int borderWidth() const { return *m_border_width; } unsigned int borderWidth() const { return *m_border_width; }
inline unsigned int bevelWidth() const { return *m_bevel_width; } unsigned int bevelWidth() const { return *m_bevel_width; }
inline unsigned char alpha() const { return m_alpha; } unsigned char alpha() const { return m_alpha; }
inline void setAlpha(unsigned char alpha) { m_alpha = alpha; } void setAlpha(unsigned char alpha) { m_alpha = alpha; }
// this isn't actually a theme item // this isn't actually a theme item
// but we'll let it be here for now, until there's a better way to // but we'll let it be here for now, until there's a better way to
// get resources into menu // get resources into menu
inline void setMenuMode(MenuMode mode) { m_menumode = mode; } void setMenuMode(MenuMode mode) { m_menumode = mode; }
inline MenuMode menuMode() const { return m_menumode; } MenuMode menuMode() const { return m_menumode; }
inline void setDelayOpen(int msec) { m_delayopen = msec; } void setDelayOpen(int msec) { m_delayopen = msec; }
inline void setDelayClose(int msec) { m_delayclose = msec; } void setDelayClose(int msec) { m_delayclose = msec; }
inline int delayOpen() const { return m_delayopen; } int delayOpen() const { return m_delayopen; }
inline int delayClose() const { return m_delayclose; } int delayClose() const { return m_delayclose; }
inline const Color &borderColor() const { return *m_border_color; } const Color &borderColor() const { return *m_border_color; }
inline Shape::ShapePlace shapePlaces() const { return *m_shapeplace; } Shape::ShapePlace shapePlaces() const { return *m_shapeplace; }
// special override // special override
inline void setSelectedPixmap(Pixmap pm, bool is_imagecached) { void setSelectedPixmap(Pixmap pm, bool is_imagecached) {
m_selected_pixmap->pixmap() = pm; m_selected_pixmap->pixmap() = pm;
if (is_imagecached) if (is_imagecached)
m_selected_pixmap->pixmap().dontFree(); m_selected_pixmap->pixmap().dontFree();
} }
inline void setHighlightSelectedPixmap(Pixmap pm, bool is_imagecached) { void setHighlightSelectedPixmap(Pixmap pm, bool is_imagecached) {
m_hl_selected_pixmap->pixmap() = pm; m_hl_selected_pixmap->pixmap() = pm;
if (is_imagecached) if (is_imagecached)
m_hl_selected_pixmap->pixmap().dontFree(); m_hl_selected_pixmap->pixmap().dontFree();

View file

@ -59,9 +59,9 @@ public:
XLayer *getLayer(size_t num); XLayer *getLayer(size_t num);
const XLayer *getLayer(size_t num) const; const XLayer *getLayer(size_t num) const;
inline bool isUpdatable() const { return m_lock == 0; } bool isUpdatable() const { return m_lock == 0; }
inline void lock() { ++m_lock; } void lock() { ++m_lock; }
inline void unlock() { if (--m_lock == 0) restack(); } void unlock() { if (--m_lock == 0) restack(); }
private: private:
std::vector<XLayer *> m_layers; std::vector<XLayer *> m_layers;

View file

@ -40,7 +40,7 @@ public:
/// executes command for the button click /// executes command for the button click
virtual void click(int button, int time, unsigned int mods); virtual void click(int button, int time, unsigned int mods);
/// @return number of buttons this instance handles /// @return number of buttons this instance handles
inline unsigned int buttons() const { return m_buttons; } unsigned int buttons() const { return m_buttons; }
private: private:
void init(int buttons); void init(int buttons);

View file

@ -64,9 +64,9 @@ public:
/// get string value /// get string value
virtual std::string getString() const = 0; virtual std::string getString() const = 0;
/// get alternative name of this resource /// get alternative name of this resource
inline const std::string& altName() const { return m_altname; } const std::string& altName() const { return m_altname; }
/// get name of this resource /// get name of this resource
inline const std::string& name() const { return m_name; } const std::string& name() const { return m_name; }
protected: protected:
Resource_base(const std::string &name, const std::string &altname): Resource_base(const std::string &name, const std::string &altname):
@ -136,7 +136,7 @@ public:
ResourceManager &lock(); ResourceManager &lock();
void unlock(); void unlock();
// for debugging // for debugging
inline int lockDepth() const { return m_db_lock; } int lockDepth() const { return m_db_lock; }
void dump() { void dump() {
ResourceList::iterator it = m_resourcelist.begin(); ResourceList::iterator it = m_resourcelist.begin();
ResourceList::iterator it_end = m_resourcelist.end(); ResourceList::iterator it_end = m_resourcelist.end();
@ -184,20 +184,20 @@ public:
m_rm.removeResource(*this); // remove this from resource handler m_rm.removeResource(*this); // remove this from resource handler
} }
inline void setDefaultValue() { m_value = m_defaultval; } void setDefaultValue() { m_value = m_defaultval; }
/// sets resource from string, specialized, must be implemented /// sets resource from string, specialized, must be implemented
void setFromString(const char *strval); void setFromString(const char *strval);
inline Resource<T>& operator = (const T& newvalue) { m_value = newvalue; return *this;} Resource<T>& operator = (const T& newvalue) { m_value = newvalue; return *this;}
/// specialized, must be implemented /// specialized, must be implemented
/// @return string value of resource /// @return string value of resource
std::string getString() const; std::string getString() const;
inline operator T() const { return m_value; } operator T() const { return m_value; }
inline T& get() { return m_value; } T& get() { return m_value; }
inline T& operator*() { return m_value; } T& operator*() { return m_value; }
inline const T& operator*() const { return m_value; } const T& operator*() const { return m_value; }
inline T *operator->() { return &m_value; } T *operator->() { return &m_value; }
inline const T *operator->() const { return &m_value; } const T *operator->() const { return &m_value; }
private: private:
T m_value, m_defaultval; T m_value, m_defaultval;
ResourceManager &m_rm; ResourceManager &m_rm;

View file

@ -68,7 +68,7 @@ public:
const Font &font() const { return *m_font; } const Font &font() const { return *m_font; }
GC gc() const { return m_gc; } GC gc() const { return m_gc; }
int cursorPosition() const { return m_cursor_pos; } int cursorPosition() const { return m_cursor_pos; }
inline int textStartPos(){ return m_start_pos; } int textStartPos(){ return m_start_pos; }
unsigned int findEmptySpaceLeft(); unsigned int findEmptySpaceLeft();
unsigned int findEmptySpaceRight(); unsigned int findEmptySpaceRight();

View file

@ -66,10 +66,10 @@ public:
void renderForeground(FbDrawable &drawable); void renderForeground(FbDrawable &drawable);
inline FbTk::Justify justify() const { return m_justify; } FbTk::Justify justify() const { return m_justify; }
inline const std::string &text() const { return m_text; } const std::string &text() const { return m_text; }
inline FbTk::Font &font() const { return *m_font; } FbTk::Font &font() const { return *m_font; }
inline FbTk::Orientation orientation() const { return m_orientation; } FbTk::Orientation orientation() const { return m_orientation; }
unsigned int textWidth() const; unsigned int textWidth() const;
#ifdef NOT_USED #ifdef NOT_USED
unsigned int textHeight() const; unsigned int textHeight() const;

View file

@ -93,8 +93,8 @@ public:
const Color &hiColor() const { return m_hicolor; } const Color &hiColor() const { return m_hicolor; }
const Color &loColor() const { return m_locolor; } const Color &loColor() const { return m_locolor; }
const FbTk::FbPixmap &pixmap() const { return m_pixmap; } const FbTk::FbPixmap &pixmap() const { return m_pixmap; }
inline unsigned long type() const { return m_type; } unsigned long type() const { return m_type; }
inline bool usePixmap() const { return !( type() == (FLAT | SOLID) && pixmap().drawable() == 0); } bool usePixmap() const { return !( type() == (FLAT | SOLID) && pixmap().drawable() == 0); }
private: private:
FbTk::Color m_color, m_color_to, m_hicolor, m_locolor; FbTk::Color m_color, m_color_to, m_hicolor, m_locolor;

View file

@ -77,10 +77,10 @@ public:
@name access operators @name access operators
*/ */
/**@{*/ /**@{*/
inline T& operator*() { return m_value; } T& operator*() { return m_value; }
inline const T& operator*() const { return m_value; } const T& operator*() const { return m_value; }
inline T *operator->() { return &m_value; } T *operator->() { return &m_value; }
inline const T *operator->() const { return &m_value; } const T *operator->() const { return &m_value; }
/**@}*/ /**@}*/
FbTk::Theme &theme() { return m_tm; } FbTk::Theme &theme() { return m_tm; }

View file

@ -60,7 +60,7 @@ public:
explicit Timer(RefCount<Command> &handler); explicit Timer(RefCount<Command> &handler);
virtual ~Timer(); virtual ~Timer();
inline void fireOnce(bool once) { m_once = once; } void fireOnce(bool once) { m_once = once; }
/// set timeout /// set timeout
void setTimeout(time_t val); void setTimeout(time_t val);
/// set timeout /// set timeout

View file

@ -30,7 +30,7 @@ namespace FbTk {
template <typename Items, typename Item_Type> template <typename Items, typename Item_Type>
class TypeAhead { class TypeAhead {
/* #if 0
a class template can't be split into separate interface + implementation files, an interface summary is given here: a class template can't be split into separate interface + implementation files, an interface summary is given here:
@ -38,7 +38,7 @@ public:
void init(Items const &items); void init(Items const &items);
// accessors: // accessors:
inline int stringSize() const { return m_searchstr.size(); } int stringSize() const { return m_searchstr.size(); }
Items matched() const; Items matched() const;
// modifiers: // modifiers:
@ -65,7 +65,7 @@ private:
void doSearch(char to_test, void doSearch(char to_test,
BaseItems const &search, BaseItems const &search,
SearchResult &mySearchResult) const; SearchResult &mySearchResult) const;
*/ #endif
public: public:
typedef std::vector < ITypeAheadable* > BaseItems; typedef std::vector < ITypeAheadable* > BaseItems;
@ -75,7 +75,7 @@ public:
void init(Items const &items) { m_ref = &items; } void init(Items const &items) { m_ref = &items; }
inline size_t stringSize() const { return m_searchstr.size(); } size_t stringSize() const { return m_searchstr.size(); }
void seek() { void seek() {
if (!m_search_results.empty()) if (!m_search_results.empty())

View file

@ -118,7 +118,7 @@ public:
void hide(); void hide();
void show(); void show();
inline bool isVisible() const { return m_visible; } bool isVisible() const { return m_visible; }
/// shade frame (ie resize to titlebar size) /// shade frame (ie resize to titlebar size)
void shade(); void shade();
void move(int x, int y); void move(int x, int y);
@ -147,9 +147,9 @@ public:
/// set focus/unfocus style /// set focus/unfocus style
void setFocus(bool newvalue); void setFocus(bool newvalue);
inline void setFocusTitle(const std::string &str) { m_label.setText(str); } void setFocusTitle(const std::string &str) { m_label.setText(str); }
bool setTabMode(TabMode tabmode); bool setTabMode(TabMode tabmode);
inline void updateTabProperties() { alignTabs(); } void updateTabProperties() { alignTabs(); }
/// Alpha settings /// Alpha settings
void setAlpha(bool focused, unsigned char value); void setAlpha(bool focused, unsigned char value);
@ -225,10 +225,10 @@ public:
@name accessors @name accessors
*/ */
//@{ //@{
inline int x() const { return m_window.x(); } int x() const { return m_window.x(); }
inline int y() const { return m_window.y(); } int y() const { return m_window.y(); }
inline unsigned int width() const { return m_window.width(); } unsigned int width() const { return m_window.width(); }
inline unsigned int height() const { return m_window.height(); } unsigned int height() const { return m_window.height(); }
unsigned int normalHeight() const; unsigned int normalHeight() const;
// extra bits for tabs // extra bits for tabs
@ -237,31 +237,31 @@ public:
int widthOffset() const; int widthOffset() const;
int heightOffset() const; int heightOffset() const;
inline const FbTk::FbWindow &window() const { return m_window; } const FbTk::FbWindow &window() const { return m_window; }
inline FbTk::FbWindow &window() { return m_window; } FbTk::FbWindow &window() { return m_window; }
/// @return titlebar window /// @return titlebar window
inline const FbTk::FbWindow &titlebar() const { return m_titlebar; } const FbTk::FbWindow &titlebar() const { return m_titlebar; }
inline FbTk::FbWindow &titlebar() { return m_titlebar; } FbTk::FbWindow &titlebar() { return m_titlebar; }
inline const FbTk::FbWindow &label() const { return m_label; } const FbTk::FbWindow &label() const { return m_label; }
inline FbTk::FbWindow &label() { return m_label; } FbTk::FbWindow &label() { return m_label; }
inline const FbTk::Container &tabcontainer() const { return m_tab_container; } const FbTk::Container &tabcontainer() const { return m_tab_container; }
inline FbTk::Container &tabcontainer() { return m_tab_container; } FbTk::Container &tabcontainer() { return m_tab_container; }
/// @return clientarea window /// @return clientarea window
inline const FbTk::FbWindow &clientArea() const { return m_clientarea; } const FbTk::FbWindow &clientArea() const { return m_clientarea; }
inline FbTk::FbWindow &clientArea() { return m_clientarea; } FbTk::FbWindow &clientArea() { return m_clientarea; }
/// @return handle window /// @return handle window
inline const FbTk::FbWindow &handle() const { return m_handle; } const FbTk::FbWindow &handle() const { return m_handle; }
inline FbTk::FbWindow &handle() { return m_handle; } FbTk::FbWindow &handle() { return m_handle; }
inline const FbTk::FbWindow &gripLeft() const { return m_grip_left; } const FbTk::FbWindow &gripLeft() const { return m_grip_left; }
inline FbTk::FbWindow &gripLeft() { return m_grip_left; } FbTk::FbWindow &gripLeft() { return m_grip_left; }
inline const FbTk::FbWindow &gripRight() const { return m_grip_right; } const FbTk::FbWindow &gripRight() const { return m_grip_right; }
inline FbTk::FbWindow &gripRight() { return m_grip_right; } FbTk::FbWindow &gripRight() { return m_grip_right; }
inline const IconButton *currentLabel() const { return m_current_label; } const IconButton *currentLabel() const { return m_current_label; }
inline bool focused() const { return m_focused; } bool focused() const { return m_focused; }
inline bool isShaded() const { return m_shaded; } bool isShaded() const { return m_shaded; }
inline FbWinFrameTheme &theme() const { return m_theme; } FbWinFrameTheme &theme() const { return m_theme; }
/// @return titlebar height /// @return titlebar height
unsigned int titlebarHeight() const { return (m_use_titlebar?m_titlebar.height()+m_window.borderWidth():0); } unsigned int titlebarHeight() const { return (m_use_titlebar?m_titlebar.height()+m_window.borderWidth():0); }
unsigned int handleHeight() const { return (m_use_handle?m_handle.height()+m_window.borderWidth():0); } unsigned int handleHeight() const { return (m_use_handle?m_handle.height()+m_window.borderWidth():0); }
@ -269,8 +269,8 @@ public:
unsigned int buttonHeight() const; unsigned int buttonHeight() const;
bool externalTabMode() const { return m_tabmode == EXTERNAL && m_use_tabs; } bool externalTabMode() const { return m_tabmode == EXTERNAL && m_use_tabs; }
inline const FbTk::XLayerItem &layerItem() const { return m_layeritem; } const FbTk::XLayerItem &layerItem() const { return m_layeritem; }
inline FbTk::XLayerItem &layerItem() { return m_layeritem; } FbTk::XLayerItem &layerItem() { return m_layeritem; }
//@} //@}

View file

@ -73,18 +73,18 @@ public:
bool fallback(FbTk::ThemeItem_base &item); bool fallback(FbTk::ThemeItem_base &item);
void reconfigTheme(); void reconfigTheme();
inline Cursor moveCursor() const { return m_cursor_move; } Cursor moveCursor() const { return m_cursor_move; }
inline Cursor lowerLeftAngleCursor() const { return m_cursor_lower_left_angle; } Cursor lowerLeftAngleCursor() const { return m_cursor_lower_left_angle; }
inline Cursor lowerRightAngleCursor() const { return m_cursor_lower_right_angle; } Cursor lowerRightAngleCursor() const { return m_cursor_lower_right_angle; }
inline Cursor upperLeftAngleCursor() const { return m_cursor_upper_left_angle; } Cursor upperLeftAngleCursor() const { return m_cursor_upper_left_angle; }
inline Cursor upperRightAngleCursor() const { return m_cursor_upper_right_angle; } Cursor upperRightAngleCursor() const { return m_cursor_upper_right_angle; }
inline Cursor leftSideCursor() const { return m_cursor_left_side; } Cursor leftSideCursor() const { return m_cursor_left_side; }
inline Cursor rightSideCursor() const { return m_cursor_right_side; } Cursor rightSideCursor() const { return m_cursor_right_side; }
inline Cursor topSideCursor() const { return m_cursor_top_side; } Cursor topSideCursor() const { return m_cursor_top_side; }
inline Cursor bottomSideCursor() const { return m_cursor_bottom_side; } Cursor bottomSideCursor() const { return m_cursor_bottom_side; }
inline FbTk::Shape::ShapePlace shapePlace() const { return *m_shape_place; } FbTk::Shape::ShapePlace shapePlace() const { return *m_shape_place; }
inline const FbTk::BorderTheme &border(bool focus) const { return (focus ? m_border_focus : m_border_unfocus); } const FbTk::BorderTheme &border(bool focus) const { return (focus ? m_border_focus : m_border_unfocus); }
unsigned int titleHeight() const { return *m_title_height; } unsigned int titleHeight() const { return *m_title_height; }
unsigned int bevelWidth() const { return *m_bevel_width; } unsigned int bevelWidth() const { return *m_bevel_width; }

View file

@ -69,27 +69,27 @@ public:
virtual bool acceptsFocus() const { return true; } virtual bool acceptsFocus() const { return true; }
/// @return true if icon button should appear focused /// @return true if icon button should appear focused
inline bool getAttentionState() const { return m_attention_state; } bool getAttentionState() const { return m_attention_state; }
/// @set the attention state /// @set the attention state
virtual void setAttentionState(bool value) { virtual void setAttentionState(bool value) {
m_attention_state = value; attentionSig().notify(); m_attention_state = value; attentionSig().notify();
} }
/// @return the screen in which this object resides /// @return the screen in which this object resides
inline BScreen &screen() { return m_screen; } BScreen &screen() { return m_screen; }
/// @return the screen in which this object resides /// @return the screen in which this object resides
inline const BScreen &screen() const { return m_screen; } const BScreen &screen() const { return m_screen; }
/** /**
* For accessing window properties, like shaded, minimized, etc. * For accessing window properties, like shaded, minimized, etc.
* @return window context * @return window context
*/ */
inline const FluxboxWindow *fbwindow() const { return m_fbwin; } const FluxboxWindow *fbwindow() const { return m_fbwin; }
/** /**
* For accessing window properties, like shaded, minimized, etc. * For accessing window properties, like shaded, minimized, etc.
* @return window context * @return window context
*/ */
inline FluxboxWindow *fbwindow() { return m_fbwin; } FluxboxWindow *fbwindow() { return m_fbwin; }
/// @return WM_CLASS class string (for pattern matching) /// @return WM_CLASS class string (for pattern matching)
virtual const std::string &getWMClassClass() const { return m_class_name; } virtual const std::string &getWMClassClass() const { return m_class_name; }

View file

@ -48,57 +48,57 @@ class Application {
public: public:
Application(bool grouped, ClientPattern *pat = 0); Application(bool grouped, ClientPattern *pat = 0);
void reset(); void reset();
inline void forgetWorkspace() { workspace_remember = false; } void forgetWorkspace() { workspace_remember = false; }
inline void forgetHead() { head_remember = false; } void forgetHead() { head_remember = false; }
inline void forgetDimensions() { dimensions_remember = false; } void forgetDimensions() { dimensions_remember = false; }
inline void forgetPosition() { position_remember = false; } void forgetPosition() { position_remember = false; }
inline void forgetShadedstate() { shadedstate_remember = false; } void forgetShadedstate() { shadedstate_remember = false; }
inline void forgetTabstate() { tabstate_remember = false; } void forgetTabstate() { tabstate_remember = false; }
inline void forgetDecostate() { decostate_remember = false; } void forgetDecostate() { decostate_remember = false; }
inline void forgetFocusHiddenstate() { focushiddenstate_remember= false; } void forgetFocusHiddenstate() { focushiddenstate_remember= false; }
inline void forgetIconHiddenstate() { iconhiddenstate_remember= false; } void forgetIconHiddenstate() { iconhiddenstate_remember= false; }
inline void forgetStuckstate() { stuckstate_remember = false; } void forgetStuckstate() { stuckstate_remember = false; }
inline void forgetJumpworkspace() { jumpworkspace_remember = false; } void forgetJumpworkspace() { jumpworkspace_remember = false; }
inline void forgetLayer() { layer_remember = false; } void forgetLayer() { layer_remember = false; }
inline void forgetSaveOnClose() { save_on_close_remember = false; } void forgetSaveOnClose() { save_on_close_remember = false; }
inline void forgetAlpha() { alpha_remember = false; } void forgetAlpha() { alpha_remember = false; }
inline void forgetMinimizedstate() { minimizedstate_remember = false; } void forgetMinimizedstate() { minimizedstate_remember = false; }
inline void forgetMaximizedstate() { maximizedstate_remember = false; } void forgetMaximizedstate() { maximizedstate_remember = false; }
inline void forgetFullscreenstate() { fullscreenstate_remember = false; } void forgetFullscreenstate() { fullscreenstate_remember = false; }
inline void rememberWorkspace(int ws) void rememberWorkspace(int ws)
{ workspace = ws; workspace_remember = true; } { workspace = ws; workspace_remember = true; }
inline void rememberHead(int h) void rememberHead(int h)
{ head = h; head_remember = true; } { head = h; head_remember = true; }
inline void rememberDimensions(int width, int height) void rememberDimensions(int width, int height)
{ w = width; h = height; dimensions_remember = true; } { w = width; h = height; dimensions_remember = true; }
inline void rememberFocusHiddenstate(bool state) void rememberFocusHiddenstate(bool state)
{ focushiddenstate= state; focushiddenstate_remember= true; } { focushiddenstate= state; focushiddenstate_remember= true; }
inline void rememberIconHiddenstate(bool state) void rememberIconHiddenstate(bool state)
{ iconhiddenstate= state; iconhiddenstate_remember= true; } { iconhiddenstate= state; iconhiddenstate_remember= true; }
inline void rememberPosition(int posx, int posy, unsigned char rfc= 0 ) void rememberPosition(int posx, int posy, unsigned char rfc= 0 )
{ x = posx; y = posy; refc = rfc; position_remember = true; } { x = posx; y = posy; refc = rfc; position_remember = true; }
inline void rememberShadedstate(bool state) void rememberShadedstate(bool state)
{ shadedstate = state; shadedstate_remember = true; } { shadedstate = state; shadedstate_remember = true; }
inline void rememberTabstate(bool state) void rememberTabstate(bool state)
{ tabstate = state; tabstate_remember = true; } { tabstate = state; tabstate_remember = true; }
inline void rememberDecostate(unsigned int state) void rememberDecostate(unsigned int state)
{ decostate = state; decostate_remember = true; } { decostate = state; decostate_remember = true; }
inline void rememberStuckstate(bool state) void rememberStuckstate(bool state)
{ stuckstate = state; stuckstate_remember = true; } { stuckstate = state; stuckstate_remember = true; }
inline void rememberJumpworkspace(bool state) void rememberJumpworkspace(bool state)
{ jumpworkspace = state; jumpworkspace_remember = true; } { jumpworkspace = state; jumpworkspace_remember = true; }
inline void rememberLayer(int layernum) void rememberLayer(int layernum)
{ layer = layernum; layer_remember = true; } { layer = layernum; layer_remember = true; }
inline void rememberSaveOnClose(bool state) void rememberSaveOnClose(bool state)
{ save_on_close = state; save_on_close_remember = true; } { save_on_close = state; save_on_close_remember = true; }
inline void rememberAlpha(int focused_a, int unfocused_a) void rememberAlpha(int focused_a, int unfocused_a)
{ focused_alpha = focused_a; unfocused_alpha = unfocused_a; alpha_remember = true; } { focused_alpha = focused_a; unfocused_alpha = unfocused_a; alpha_remember = true; }
inline void rememberMinimizedstate(bool state) void rememberMinimizedstate(bool state)
{ minimizedstate = state; minimizedstate_remember = true; } { minimizedstate = state; minimizedstate_remember = true; }
inline void rememberMaximizedstate(int state) void rememberMaximizedstate(int state)
{ maximizedstate = state; maximizedstate_remember = true; } { maximizedstate = state; maximizedstate_remember = true; }
inline void rememberFullscreenstate(bool state) void rememberFullscreenstate(bool state)
{ fullscreenstate = state; fullscreenstate_remember = true; } { fullscreenstate = state; fullscreenstate_remember = true; }
bool workspace_remember; bool workspace_remember;

View file

@ -132,38 +132,38 @@ public:
FbWinFrame::TabPlacement getTabPlacement() const { return *resource.tab_placement; } FbWinFrame::TabPlacement getTabPlacement() const { return *resource.tab_placement; }
inline unsigned int noFocusWhileTypingDelay() const { return *resource.typing_delay; } unsigned int noFocusWhileTypingDelay() const { return *resource.typing_delay; }
inline FollowModel getFollowModel() const { return *resource.follow_model; } FollowModel getFollowModel() const { return *resource.follow_model; }
inline FollowModel getUserFollowModel() const { return *resource.user_follow_model; } FollowModel getUserFollowModel() const { return *resource.user_follow_model; }
inline const std::string &getScrollAction() const { return *resource.scroll_action; } const std::string &getScrollAction() const { return *resource.scroll_action; }
inline const bool getScrollReverse() const { return *resource.scroll_reverse; } const bool getScrollReverse() const { return *resource.scroll_reverse; }
inline const bool allowRemoteActions() const { return *resource.allow_remote_actions; } const bool allowRemoteActions() const { return *resource.allow_remote_actions; }
inline const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; } const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; }
inline const bool getDefaultInternalTabs() const { return *resource.default_internal_tabs; } const bool getDefaultInternalTabs() const { return *resource.default_internal_tabs; }
inline const bool getTabsUsePixmap() const { return *resource.tabs_use_pixmap; } const bool getTabsUsePixmap() const { return *resource.tabs_use_pixmap; }
inline const bool getMaxOverTabs() const { return *resource.max_over_tabs; } const bool getMaxOverTabs() const { return *resource.max_over_tabs; }
inline unsigned int getTabWidth() const { return *resource.tab_width; } unsigned int getTabWidth() const { return *resource.tab_width; }
/// @return the slit, @see Slit /// @return the slit, @see Slit
inline Slit *slit() { return m_slit.get(); } Slit *slit() { return m_slit.get(); }
/// @return the slit, @see Slit /// @return the slit, @see Slit
inline const Slit *slit() const { return m_slit.get(); } const Slit *slit() const { return m_slit.get(); }
/** /**
* @param w the workspace number * @param w the workspace number
* @return workspace for the given workspace number * @return workspace for the given workspace number
*/ */
inline Workspace *getWorkspace(unsigned int w) { return ( w < m_workspaces_list.size() ? m_workspaces_list[w] : 0); } Workspace *getWorkspace(unsigned int w) { return ( w < m_workspaces_list.size() ? m_workspaces_list[w] : 0); }
/** /**
* @param w the workspace number * @param w the workspace number
* @return workspace for the given workspace number * @return workspace for the given workspace number
*/ */
inline const Workspace *getWorkspace(unsigned int w) const { const Workspace *getWorkspace(unsigned int w) const {
return (w < m_workspaces_list.size() ? m_workspaces_list[w] : 0); return (w < m_workspaces_list.size() ? m_workspaces_list[w] : 0);
} }
/// @return the current workspace /// @return the current workspace
inline Workspace *currentWorkspace() { return m_current_workspace; } Workspace *currentWorkspace() { return m_current_workspace; }
inline const Workspace *currentWorkspace() const { return m_current_workspace; } const Workspace *currentWorkspace() const { return m_current_workspace; }
/// @return the workspace menu /// @return the workspace menu
const FbTk::Menu &workspaceMenu() const { return *m_workspacemenu.get(); } const FbTk::Menu &workspaceMenu() const { return *m_workspacemenu.get(); }
/// @return the workspace menu /// @return the workspace menu
@ -267,7 +267,7 @@ public:
*/ */
void addExtraWindowMenu(const FbTk::FbString &label, FbTk::Menu *menu); void addExtraWindowMenu(const FbTk::FbString &label, FbTk::Menu *menu);
inline int getEdgeSnapThreshold() const { return *resource.edge_snap_threshold; } int getEdgeSnapThreshold() const { return *resource.edge_snap_threshold; }
void setRootColormapInstalled(bool r) { root_colormap_installed = r; } void setRootColormapInstalled(bool r) { root_colormap_installed = r; }

View file

@ -111,22 +111,22 @@ public:
int layerNumber() const { return m_layeritem->getLayerNum(); } int layerNumber() const { return m_layeritem->getLayerNum(); }
inline bool isHidden() const { return m_hidden; } bool isHidden() const { return m_hidden; }
inline bool acceptKdeDockapp() const { return *m_rc_kde_dockapp; } bool acceptKdeDockapp() const { return *m_rc_kde_dockapp; }
inline bool doAutoHide() const { return *m_rc_auto_hide; } bool doAutoHide() const { return *m_rc_auto_hide; }
inline Direction direction() const { return *m_rc_direction; } Direction direction() const { return *m_rc_direction; }
inline Placement placement() const { return *m_rc_placement; } Placement placement() const { return *m_rc_placement; }
inline int getOnHead() const { return *m_rc_on_head; } int getOnHead() const { return *m_rc_on_head; }
void saveOnHead(int head); void saveOnHead(int head);
FbTk::Menu &menu() { return m_slitmenu; } FbTk::Menu &menu() { return m_slitmenu; }
inline const FbTk::FbWindow &window() const { return frame.window; } const FbTk::FbWindow &window() const { return frame.window; }
inline int x() const { return (m_hidden ? frame.x_hidden : frame.x); } int x() const { return (m_hidden ? frame.x_hidden : frame.x); }
inline int y() const { return (m_hidden ? frame.y_hidden : frame.y); } int y() const { return (m_hidden ? frame.y_hidden : frame.y); }
inline unsigned int width() const { return frame.width; } unsigned int width() const { return frame.width; }
inline unsigned int height() const { return frame.height; } unsigned int height() const { return frame.height; }
const SlitClients &clients() const { return m_client_list; } const SlitClients &clients() const { return m_client_list; }
SlitClients &clients() { return m_client_list; } SlitClients &clients() { return m_client_list; }
private: private:

View file

@ -40,14 +40,14 @@ public:
/// For adding a placeholder /// For adding a placeholder
explicit SlitClient(const char *name); explicit SlitClient(const char *name);
inline const std::string &matchName() const { return m_match_name; } const std::string &matchName() const { return m_match_name; }
inline Window window() const { return m_window; } Window window() const { return m_window; }
inline Window clientWindow() const { return m_client_window; } Window clientWindow() const { return m_client_window; }
inline Window iconWindow() const { return m_icon_window; } Window iconWindow() const { return m_icon_window; }
inline int x() const { return m_x; } int x() const { return m_x; }
inline int y() const { return m_y; } int y() const { return m_y; }
inline unsigned int width() const { return m_width; } unsigned int width() const { return m_width; }
inline unsigned int height() const { return m_height; } unsigned int height() const { return m_height; }
bool visible() const { return m_visible; } bool visible() const { return m_visible; }

View file

@ -31,12 +31,12 @@ public:
int top, int bottom, Strut* next = 0) int top, int bottom, Strut* next = 0)
:m_head(head), m_left(left), m_right(right), :m_head(head), m_left(left), m_right(right),
m_top(top), m_bottom(bottom), m_next(next) { } m_top(top), m_bottom(bottom), m_next(next) { }
inline int head() const { return m_head; } int head() const { return m_head; }
inline int left() const { return m_left; } int left() const { return m_left; }
inline int right() const { return m_right; } int right() const { return m_right; }
inline int bottom() const { return m_bottom; } int bottom() const { return m_bottom; }
inline int top() const { return m_top; } int top() const { return m_top; }
inline Strut* next() const { return m_next; } Strut* next() const { return m_next; }
bool operator == (const Strut &test) const { bool operator == (const Strut &test) const {
return (head() == test.head() && return (head() == test.head() &&
left() == test.left() && left() == test.left() &&

View file

@ -69,8 +69,8 @@ public:
int numClients() const { return m_clients.size(); } int numClients() const { return m_clients.size(); }
const FbTk::FbWindow &window() const { return m_window; } const FbTk::FbWindow &window() const { return m_window; }
inline void renderTheme(unsigned char alpha) { m_window.setAlpha(alpha); update(0); } void renderTheme(unsigned char alpha) { m_window.setAlpha(alpha); update(0); }
inline void updateSizing() {} void updateSizing() {}
void parentMoved() { m_window.parentMoved(); } void parentMoved() { m_window.parentMoved(); }

View file

@ -48,8 +48,8 @@ public:
ToolbarItem *create(const std::string &name, const FbTk::FbWindow &parent, Toolbar &tbar); ToolbarItem *create(const std::string &name, const FbTk::FbWindow &parent, Toolbar &tbar);
void updateThemes(); void updateThemes();
int maxFontHeight(); int maxFontHeight();
inline const BScreen &screen() const { return m_screen; } const BScreen &screen() const { return m_screen; }
inline BScreen &screen() { return m_screen; } BScreen &screen() { return m_screen; }
private: private:
BScreen &m_screen; BScreen &m_screen;

View file

@ -45,8 +45,8 @@ public:
// textures // textures
const FbTk::Texture &texture() const { return *m_texture; } const FbTk::Texture &texture() const { return *m_texture; }
const FbTk::BorderTheme &border() const { return m_border; } const FbTk::BorderTheme &border() const { return m_border; }
inline unsigned char alpha() const { return m_alpha; } unsigned char alpha() const { return m_alpha; }
inline void setAlpha(unsigned char alpha) { m_alpha = alpha; } void setAlpha(unsigned char alpha) { m_alpha = alpha; }
protected: protected:
FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; } FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; }

View file

@ -101,35 +101,35 @@ public:
int layerNumber() const { return const_cast<FbTk::XLayerItem &>(m_layeritem).getLayerNum(); } int layerNumber() const { return const_cast<FbTk::XLayerItem &>(m_layeritem).getLayerNum(); }
inline const FbTk::Menu &menu() const { return m_toolbarmenu; } const FbTk::Menu &menu() const { return m_toolbarmenu; }
inline FbTk::Menu &menu() { return m_toolbarmenu; } FbTk::Menu &menu() { return m_toolbarmenu; }
inline FbTk::Menu &placementMenu() { return m_placementmenu; } FbTk::Menu &placementMenu() { return m_placementmenu; }
inline const FbTk::Menu &placementMenu() const { return m_placementmenu; } const FbTk::Menu &placementMenu() const { return m_placementmenu; }
inline FbTk::Menu &layerMenu() { return m_layermenu; } FbTk::Menu &layerMenu() { return m_layermenu; }
inline const FbTk::Menu &layerMenu() const { return m_layermenu; } const FbTk::Menu &layerMenu() const { return m_layermenu; }
/// are we hidden? /// are we hidden?
inline bool isHidden() const { return m_hidden; } bool isHidden() const { return m_hidden; }
/// do we auto hide the toolbar? /// do we auto hide the toolbar?
inline bool doAutoHide() const { return *m_rc_auto_hide; } bool doAutoHide() const { return *m_rc_auto_hide; }
/// @return X window of the toolbar /// @return X window of the toolbar
inline const FbTk::FbWindow &window() const { return frame.window; } const FbTk::FbWindow &window() const { return frame.window; }
inline BScreen &screen() { return m_screen; } BScreen &screen() { return m_screen; }
inline const BScreen &screen() const { return m_screen; } const BScreen &screen() const { return m_screen; }
inline unsigned int width() const { return frame.window.width(); } unsigned int width() const { return frame.window.width(); }
inline unsigned int height() const { return frame.window.height(); } unsigned int height() const { return frame.window.height(); }
inline int x() const { return isHidden() ? frame.x_hidden : frame.x; } int x() const { return isHidden() ? frame.x_hidden : frame.x; }
inline int y() const { return isHidden() ? frame.y_hidden : frame.y; } int y() const { return isHidden() ? frame.y_hidden : frame.y; }
inline Placement placement() const { return *m_rc_placement; } Placement placement() const { return *m_rc_placement; }
/// @return pointer to iconbar if it got one, else 0 /// @return pointer to iconbar if it got one, else 0
inline const ToolbarTheme &theme() const { return m_theme; } const ToolbarTheme &theme() const { return m_theme; }
inline ToolbarTheme &theme() { return m_theme; } ToolbarTheme &theme() { return m_theme; }
bool isVertical() const; bool isVertical() const;
inline int getOnHead() const { return *m_rc_on_head; } int getOnHead() const { return *m_rc_on_head; }
inline unsigned char alpha() const { return *m_rc_alpha; } unsigned char alpha() const { return *m_rc_alpha; }
private: private:
void rearrangeItems(); void rearrangeItems();
void deleteItems(); void deleteItems();

View file

@ -37,16 +37,15 @@ public:
void reconfigTheme(); void reconfigTheme();
const FbTk::BorderTheme &border() const { return m_border; }
inline const FbTk::BorderTheme &border() const { return m_border; } const FbTk::Texture &toolbar() const { return *m_toolbar; }
inline const FbTk::Texture &toolbar() const { return *m_toolbar; }
bool fallback(FbTk::ThemeItem_base &item); bool fallback(FbTk::ThemeItem_base &item);
inline int bevelWidth() const { return *m_bevel_width; } int bevelWidth() const { return *m_bevel_width; }
inline bool shape() const { return *m_shape; } bool shape() const { return *m_shape; }
inline int height() const { return *m_height; } int height() const { return *m_height; }
inline int buttonSize() const { return *m_button_size; } int buttonSize() const { return *m_button_size; }
private: private:
FbTk::ThemeItem<FbTk::Texture> m_toolbar; FbTk::ThemeItem<FbTk::Texture> m_toolbar;
FbTk::BorderTheme m_border; FbTk::BorderTheme m_border;

View file

@ -56,7 +56,7 @@ public:
bool acceptsFocus() const; // will this window accept focus (according to hints) bool acceptsFocus() const; // will this window accept focus (according to hints)
void sendClose(bool forceful = false); void sendClose(bool forceful = false);
// not aware of anything that makes this false at present // not aware of anything that makes this false at present
inline bool isClosable() const { return true; } bool isClosable() const { return true; }
/// updates from wm class hints /// updates from wm class hints
void updateWMClassHint(); void updateWMClassHint();
@ -111,26 +111,26 @@ public:
Focusable::WindowType getWindowType() const { return m_window_type; } Focusable::WindowType getWindowType() const { return m_window_type; }
void setWindowType(Focusable::WindowType type) { m_window_type = type; } void setWindowType(Focusable::WindowType type) { m_window_type = type; }
inline WinClient *transientFor() { return transient_for; } WinClient *transientFor() { return transient_for; }
inline const WinClient *transientFor() const { return transient_for; } const WinClient *transientFor() const { return transient_for; }
inline TransientList &transientList() { return transients; } TransientList &transientList() { return transients; }
inline const TransientList &transientList() const { return transients; } const TransientList &transientList() const { return transients; }
inline bool isTransient() const { return transient_for != 0; } bool isTransient() const { return transient_for != 0; }
inline bool isModal() const { return m_modal_count > 0; } bool isModal() const { return m_modal_count > 0; }
inline bool isStateModal() const { return m_modal; } bool isStateModal() const { return m_modal; }
void setStateModal(bool state); void setStateModal(bool state);
inline int gravity() const { return m_win_gravity; } int gravity() const { return m_win_gravity; }
bool hasGroupLeftWindow() const; bool hasGroupLeftWindow() const;
// grouping is tracked by remembering the window to the left in the group // grouping is tracked by remembering the window to the left in the group
Window getGroupLeftWindow() const; Window getGroupLeftWindow() const;
inline const MwmHints *getMwmHint() const { return m_mwm_hint; } const MwmHints *getMwmHint() const { return m_mwm_hint; }
inline unsigned int maxWidth() const { return max_width; } unsigned int maxWidth() const { return max_width; }
inline unsigned int maxHeight() const { return max_height; } unsigned int maxHeight() const { return max_height; }
static const int PropMwmHintsElements = 3; static const int PropMwmHintsElements = 3;

View file

@ -394,45 +394,45 @@ public:
// whether this window can be tabbed with other windows, // whether this window can be tabbed with other windows,
// and others tabbed with it // and others tabbed with it
inline void setTabable(bool tabable) { functions.tabable = tabable; } void setTabable(bool tabable) { functions.tabable = tabable; }
inline bool isTabable() { return functions.tabable; } bool isTabable() { return functions.tabable; }
inline void setMovable(bool movable) { functions.move = movable; } void setMovable(bool movable) { functions.move = movable; }
inline void setResizable(bool resizable) { functions.resize = resizable; } void setResizable(bool resizable) { functions.resize = resizable; }
inline bool isFocusHidden() const { return m_focus_hidden; } bool isFocusHidden() const { return m_focus_hidden; }
inline bool isIconHidden() const { return m_icon_hidden; } bool isIconHidden() const { return m_icon_hidden; }
inline bool isManaged() const { return m_initialized; } bool isManaged() const { return m_initialized; }
bool isVisible() const; bool isVisible() const;
inline bool isIconic() { return iconic; } bool isIconic() { return iconic; }
inline bool isIconic() const { return iconic; } bool isIconic() const { return iconic; }
inline bool isShaded() { return shaded; } bool isShaded() { return shaded; }
inline bool isShaded() const { return shaded; } bool isShaded() const { return shaded; }
inline bool isFullscreen() const { return fullscreen; } bool isFullscreen() const { return fullscreen; }
inline bool isMaximized() const { return maximized == MAX_FULL; } bool isMaximized() const { return maximized == MAX_FULL; }
inline bool isMaximizedVert() const { return (bool)(maximized & MAX_VERT); } bool isMaximizedVert() const { return (bool)(maximized & MAX_VERT); }
inline bool isMaximizedHorz() const { return (bool)(maximized & MAX_HORZ); } bool isMaximizedHorz() const { return (bool)(maximized & MAX_HORZ); }
inline int maximizedState() const { return maximized; } int maximizedState() const { return maximized; }
inline bool isIconifiable() const { return functions.iconify; } bool isIconifiable() const { return functions.iconify; }
inline bool isMaximizable() const { return functions.maximize; } bool isMaximizable() const { return functions.maximize; }
inline bool isResizable() const { return functions.resize; } bool isResizable() const { return functions.resize; }
inline bool isClosable() const { return functions.close; } bool isClosable() const { return functions.close; }
inline bool isMoveable() const { return functions.move; } bool isMoveable() const { return functions.move; }
inline bool isStuck() const { return stuck; } bool isStuck() const { return stuck; }
inline bool hasTitlebar() const { return decorations.titlebar; } bool hasTitlebar() const { return decorations.titlebar; }
inline bool isMoving() const { return moving; } bool isMoving() const { return moving; }
inline bool isResizing() const { return resizing; } bool isResizing() const { return resizing; }
bool isGroupable() const; bool isGroupable() const;
inline int numClients() const { return m_clientlist.size(); } int numClients() const { return m_clientlist.size(); }
inline bool empty() const { return m_clientlist.empty(); } bool empty() const { return m_clientlist.empty(); }
inline ClientList &clientList() { return m_clientlist; } ClientList &clientList() { return m_clientlist; }
inline const ClientList &clientList() const { return m_clientlist; } const ClientList &clientList() const { return m_clientlist; }
inline WinClient &winClient() { return *m_client; } WinClient &winClient() { return *m_client; }
inline const WinClient &winClient() const { return *m_client; } const WinClient &winClient() const { return *m_client; }
bool isTyping(); bool isTyping();
inline const FbTk::XLayerItem &layerItem() const { return m_frame.layerItem(); } const FbTk::XLayerItem &layerItem() const { return m_frame.layerItem(); }
inline FbTk::XLayerItem &layerItem() { return m_frame.layerItem(); } FbTk::XLayerItem &layerItem() { return m_frame.layerItem(); }
Window clientWindow() const; Window clientWindow() const;
@ -455,20 +455,20 @@ public:
void setWindowType(Focusable::WindowType type); void setWindowType(Focusable::WindowType type);
bool isTransient() const; bool isTransient() const;
inline int x() const { return frame().x(); } int x() const { return frame().x(); }
inline int y() const { return frame().y(); } int y() const { return frame().y(); }
inline unsigned int width() const { return frame().width(); } unsigned int width() const { return frame().width(); }
inline unsigned int height() const { return frame().height(); } unsigned int height() const { return frame().height(); }
int normalX() const; int normalX() const;
int normalY() const; int normalY() const;
unsigned int normalWidth() const; unsigned int normalWidth() const;
unsigned int normalHeight() const; unsigned int normalHeight() const;
inline int xOffset() const { return frame().xOffset(); } int xOffset() const { return frame().xOffset(); }
inline int yOffset() const { return frame().yOffset(); } int yOffset() const { return frame().yOffset(); }
inline int widthOffset() const { return frame().widthOffset(); } int widthOffset() const { return frame().widthOffset(); }
inline int heightOffset() const { return frame().heightOffset(); } int heightOffset() const { return frame().heightOffset(); }
unsigned int workspaceNumber() const { return m_workspace_number; } unsigned int workspaceNumber() const { return m_workspace_number; }
@ -481,8 +481,8 @@ public:
int initialState() const; int initialState() const;
inline FbWinFrame &frame() { return m_frame; } FbWinFrame &frame() { return m_frame; }
inline const FbWinFrame &frame() const { return m_frame; } const FbWinFrame &frame() const { return m_frame; }
/** /**
@name signals @name signals

View file

@ -74,11 +74,11 @@ public:
WindowAccessor(Getter g, Setter s, Def def): WindowAccessor(Getter g, Setter s, Def def):
m_getter(g), m_setter(s), m_def(def) { } m_getter(g), m_setter(s), m_def(def) { }
inline operator Ret() const { operator Ret() const {
FluxboxWindow *fbwin = WindowCmd<void>::window(); FluxboxWindow *fbwin = WindowCmd<void>::window();
return fbwin ? (fbwin->*m_getter)() : m_def; return fbwin ? (fbwin->*m_getter)() : m_def;
} }
inline FbTk::Accessor<Ret> &operator =(const Ret &val) { FbTk::Accessor<Ret> &operator =(const Ret &val) {
FluxboxWindow *fbwin = WindowCmd<void>::window(); FluxboxWindow *fbwin = WindowCmd<void>::window();
if (fbwin) if (fbwin)
(fbwin->*m_setter)(val); (fbwin->*m_setter)(val);
@ -99,11 +99,11 @@ public:
ConstWindowAccessor(Getter g, Def def): ConstWindowAccessor(Getter g, Def def):
m_getter(g), m_def(def) { } m_getter(g), m_def(def) { }
inline operator Ret() const { operator Ret() const {
FluxboxWindow *fbwin = WindowCmd<void>::window(); FluxboxWindow *fbwin = WindowCmd<void>::window();
return fbwin ? (fbwin->*m_getter)() : m_def; return fbwin ? (fbwin->*m_getter)() : m_def;
} }
inline FbTk::Accessor<Ret> &operator =(const Ret &val) { return *this; } FbTk::Accessor<Ret> &operator =(const Ret &val) { return *this; }
private: private:
Getter m_getter; Getter m_getter;