CComponentsShapeCircle: getDiam() become const

Technically the member function 'CComponentsShapeCircle::getDiam'
can be const (style)
This commit is contained in:
2013-08-26 21:41:04 +02:00
parent 68b431f1b8
commit aca06a5c02

View File

@@ -1,5 +1,5 @@
/* /*
Based up Neutrino-GUI - Tuxbox-Project Based up Neutrino-GUI - Tuxbox-Project
Copyright (C) 2001 by Steffen Hehn 'McClean' Copyright (C) 2001 by Steffen Hehn 'McClean'
Classes for generic GUI-related components. Classes for generic GUI-related components.
@@ -49,7 +49,7 @@ class CComponentsShapeCircle : public CComponentsItem
///set property: diam ///set property: diam
inline void setDiam(const int& diam){d=width=height=diam, corner_rad=d/2;}; inline void setDiam(const int& diam){d=width=height=diam, corner_rad=d/2;};
///get property: diam ///get property: diam
inline int getDiam(){return d;}; inline int getDiam() const {return d;};
///paint item ///paint item
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES); void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
@@ -60,7 +60,7 @@ class CComponentsShapeSquare : public CComponentsItem
public: public:
CComponentsShapeSquare( const int x_pos, const int y_pos, const int w, const int h, bool has_shadow = CC_SHADOW_ON, CComponentsShapeSquare( const int x_pos, const int y_pos, const int w, const int h, bool has_shadow = CC_SHADOW_ON,
fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, fb_pixel_t color_body = COL_MENUCONTENT_PLUS_0, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, fb_pixel_t color_body = COL_MENUCONTENT_PLUS_0, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES); void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
}; };