Browse Source

Const getters

textrendering
Anne Marije v/d Meer 11 years ago
parent
commit
d1c86267b3
  1. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfPython/pyGUIControl.cpp
  2. 12
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfPython/pyGUIControl.h

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

@ -278,7 +278,7 @@ PyObject* pyGUIControl::GetOwnerDlg( void )
} }
// get color schemes // get color schemes
PyObject* pyGUIControl::GetForeColor() PyObject* pyGUIControl::GetForeColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -292,7 +292,7 @@ PyObject* pyGUIControl::GetForeColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
PyObject* pyGUIControl::GetSelColor() PyObject* pyGUIControl::GetSelColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -306,7 +306,7 @@ PyObject* pyGUIControl::GetSelColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
PyObject* pyGUIControl::GetBackColor() PyObject* pyGUIControl::GetBackColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -320,7 +320,7 @@ PyObject* pyGUIControl::GetBackColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
PyObject* pyGUIControl::GetBackSelColor() PyObject* pyGUIControl::GetBackSelColor() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -334,7 +334,7 @@ PyObject* pyGUIControl::GetBackSelColor()
PYTHON_RETURN_NONE; PYTHON_RETURN_NONE;
} }
UInt32 pyGUIControl::GetFontSize() UInt32 pyGUIControl::GetFontSize() const
{ {
if ( fGCkey ) if ( fGCkey )
{ {
@ -460,7 +460,7 @@ void pyGUIControl::SetFontFlags(UInt8 fontFlags)
} }
} }
UInt8 pyGUIControl::GetFontFlags() UInt8 pyGUIControl::GetFontFlags() const
{ {
if (fGCkey) if (fGCkey)
{ {

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

@ -116,12 +116,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 GetFontSize(); virtual UInt32 GetFontSize() const;
virtual UInt8 GetFontFlags(); virtual UInt8 GetFontFlags() const;
// set color scheme // set color scheme
virtual void SetForeColor( hsScalar r, hsScalar g, hsScalar b, hsScalar a ); virtual void SetForeColor( hsScalar r, hsScalar g, hsScalar b, hsScalar a );
virtual void SetSelColor( hsScalar r, hsScalar g, hsScalar b, hsScalar a ); virtual void SetSelColor( hsScalar r, hsScalar g, hsScalar b, hsScalar a );

Loading…
Cancel
Save