Added some accessors for wxEffects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
40716a510b
commit
db54b04615
@ -30,13 +30,39 @@ public:
|
|||||||
wxEffects() ;
|
wxEffects() ;
|
||||||
// Going from lightest to darkest
|
// Going from lightest to darkest
|
||||||
wxEffects(const wxColour& highlightColour, const wxColour& lightShadow,
|
wxEffects(const wxColour& highlightColour, const wxColour& lightShadow,
|
||||||
const wxColour& faceColour, const wxColour& mediumShadow, const wxColour& darkShadow) ;
|
const wxColour& faceColour, const wxColour& mediumShadow,
|
||||||
|
const wxColour& darkShadow) ;
|
||||||
|
|
||||||
|
// Accessors
|
||||||
|
wxColour GetHighlightColour() const { return m_highlightColour; }
|
||||||
|
wxColour GetLightShadow() const { return m_lightShadow; }
|
||||||
|
wxColour GetFaceColour() const { return m_faceColour; }
|
||||||
|
wxColour GetMediumShadow() const { return m_mediumShadow; }
|
||||||
|
wxColour GetDarkShadow() const { return m_darkShadow; }
|
||||||
|
|
||||||
|
void SetHighlightColour(const wxColour& c) { m_highlightColour = c; }
|
||||||
|
void SetLightShadow(const wxColour& c) { m_lightShadow = c; }
|
||||||
|
void SetFaceColour(const wxColour& c) { m_faceColour = c; }
|
||||||
|
void SetMediumShadow(const wxColour& c) { m_mediumShadow = c; }
|
||||||
|
void SetDarkShadow(const wxColour& c) { m_darkShadow = c; }
|
||||||
|
|
||||||
|
void Set(const wxColour& highlightColour, const wxColour& lightShadow,
|
||||||
|
const wxColour& faceColour, const wxColour& mediumShadow,
|
||||||
|
const wxColour& darkShadow)
|
||||||
|
{
|
||||||
|
SetHighlightColour(highlightColour);
|
||||||
|
SetLightShadow(lightShadow);
|
||||||
|
SetFaceColour(faceColour);
|
||||||
|
SetMediumShadow(mediumShadow);
|
||||||
|
SetDarkShadow(darkShadow);
|
||||||
|
}
|
||||||
|
|
||||||
// Draw a sunken edge
|
// Draw a sunken edge
|
||||||
void DrawSunkenEdge(wxDC& dc, const wxRect& rect, int borderSize = 1);
|
void DrawSunkenEdge(wxDC& dc, const wxRect& rect, int borderSize = 1);
|
||||||
|
|
||||||
// Tile a bitmap
|
// Tile a bitmap
|
||||||
bool TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap);
|
bool TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxColour m_highlightColour; // Usually white
|
wxColour m_highlightColour; // Usually white
|
||||||
wxColour m_lightShadow; // Usually light grey
|
wxColour m_lightShadow; // Usually light grey
|
||||||
|
Loading…
Reference in New Issue
Block a user