wxAccordion
Public Member Functions | List of all members
wxAccordionStyle Class Reference

#include <wx/accordion/accordion.h>

Detailed Description

This class encapsulates the colours, bitmap, and font used for drawing a wxAccordion's caption bars and pages.

See Also
wxAccordion

Public Member Functions

 wxAccordionStyle ()
 Default constructor.
 
wxColour GetColour1 () const
 Returns the first (top) colour.
 
wxGraphicsGradientStops GetGradientStops () const
 Returns a copy of the gradient stops used for this style.
 
wxColour GetColour2 () const
 Returns the second (bottom) colour.
 
wxBitmap GetBGBitmap () const
 Returns a copy of the background bitmap used for this style.
 
wxColour GetBorderColour () const
 Returns the border colour.
 
wxColour GetTextColour () const
 Returns the text colour.
 
wxFont GetFont () const
 Returns a copy of the font used for this style.
 
void SetColour1 (const wxColour &col)
 Sets the first (top) colour.
 
void ClearGradientStops ()
 Clears any gradient stops that have been set.
 
void AddGradientStop (const wxColour &col, float pos)
 Adds a gradient stop to the set of colours used for this style.
 
void SetColour2 (const wxColour &col)
 Sets the second (bottom) colour.
 
void SetBGBitmap (const wxBitmap &b)
 Sets the background bitmap used for this style.
 
void SetBorderColour (const wxColour &col)
 Sets the border colour.
 
void SetTextColour (const wxColour &col)
 Sets the text colour.
 
void SetFont (const wxFont &f)
 Sets the font used for this style.
 

Constructor & Destructor Documentation

wxAccordionStyle::wxAccordionStyle ( )

Default constructor.

Member Function Documentation

void wxAccordionStyle::AddGradientStop ( const wxColour col,
float  pos 
)

Adds a gradient stop to the set of colours used for this style.

void wxAccordionStyle::ClearGradientStops ( )

Clears any gradient stops that have been set.

wxBitmap wxAccordionStyle::GetBGBitmap ( ) const

Returns a copy of the background bitmap used for this style.

wxColour wxAccordionStyle::GetBorderColour ( ) const

Returns the border colour.

wxColour wxAccordionStyle::GetColour1 ( ) const

Returns the first (top) colour.

wxColour wxAccordionStyle::GetColour2 ( ) const

Returns the second (bottom) colour.

wxFont wxAccordionStyle::GetFont ( ) const

Returns a copy of the font used for this style.

wxGraphicsGradientStops wxAccordionStyle::GetGradientStops ( ) const

Returns a copy of the gradient stops used for this style.

wxColour wxAccordionStyle::GetTextColour ( ) const

Returns the text colour.

void wxAccordionStyle::SetBGBitmap ( const wxBitmap b)

Sets the background bitmap used for this style.

void wxAccordionStyle::SetBorderColour ( const wxColour col)

Sets the border colour.

wxTransparentColour can be used to make the border invisible.

void wxAccordionStyle::SetColour1 ( const wxColour col)

Sets the first (top) colour.

void wxAccordionStyle::SetColour2 ( const wxColour col)

Sets the second (bottom) colour.

void wxAccordionStyle::SetFont ( const wxFont f)

Sets the font used for this style.

void wxAccordionStyle::SetTextColour ( const wxColour col)

Sets the text colour.