Browse Source

Const getters

Anne Marije v/d Meer 11 years ago
parent
commit
3fceb7652c
  1. 12
      Sources/Plasma/FeatureLib/pfPython/pyGUIControl.cpp
  2. 12
      Sources/Plasma/FeatureLib/pfPython/pyGUIControl.h

12
Sources/Plasma/FeatureLib/pfPython/pyGUIControl.cpp

@ -279,7 +279,7 @@ PyObject* pyGUIControl::GetOwnerDlg( void )
} }
// get color schemes // get color schemes
PyObject* pyGUIControl::GetForeColor() PyObject* pyGUIControl::GetForeColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -293,7 +293,7 @@ PyObject* pyGUIControl::GetForeColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
PyObject* pyGUIControl::GetSelColor() PyObject* pyGUIControl::GetSelColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -307,7 +307,7 @@ PyObject* pyGUIControl::GetSelColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
PyObject* pyGUIControl::GetBackColor() PyObject* pyGUIControl::GetBackColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -321,7 +321,7 @@ PyObject* pyGUIControl::GetBackColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
PyObject* pyGUIControl::GetBackSelColor() PyObject* pyGUIControl::GetBackSelColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -335,7 +335,7 @@ PyObject* pyGUIControl::GetBackSelColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
uint32_t pyGUIControl::GetFontSize() uint32_t pyGUIControl::GetFontSize() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -461,7 +461,7 @@ void pyGUIControl::SetFontFlags(uint8_t fontFlags)
} }
} }
uint8_t pyGUIControl::GetFontFlags() uint8_t pyGUIControl::GetFontFlags() const
{ {
if (fGCkey) if (fGCkey)
{ {

12
Sources/Plasma/FeatureLib/pfPython/pyGUIControl.h

@ -114,12 +114,12 @@ public:
virtual PyObject* GetOwnerDlg( void ); // returns pyGUIDialog virtual PyObject* GetOwnerDlg( void ); // returns pyGUIDialog
// get color schemes // get color schemes
virtual PyObject* GetForeColor(); // returns pyColor virtual PyObject* GetForeColor() const; // returns pyColor
virtual PyObject* GetSelColor(); // returns pyColor virtual PyObject* GetSelColor() const; // returns pyColor
virtual PyObject* GetBackColor(); // returns pyColor virtual PyObject* GetBackColor() const; // returns pyColor
virtual PyObject* GetBackSelColor(); // returns pyColor virtual PyObject* GetBackSelColor() const; // returns pyColor
virtual uint32_t GetFontSize(); virtual uint32_t GetFontSize() const;
virtual uint8_t GetFontFlags(); virtual uint8_t GetFontFlags() const;
// set color scheme // set color scheme
virtual void SetForeColor( float r, float g, float b, float a ); virtual void SetForeColor( float r, float g, float b, float a );
virtual void SetSelColor( float r, float g, float b, float a ); virtual void SetSelColor( float r, float g, float b, float a );

Loading…
Cancel
Save