wxHeaderColumnSimple Class Reference
[Controls]

#include <wx/headercol.h>

Inheritance diagram for wxHeaderColumnSimple:
Inheritance graph
[legend]

Detailed Description

Simple container for the information about the column.

This is a concrete class implementing all wxSettableHeaderColumn class methods in a trivial way, i.e. by just storing the information in the object itself. It is used by and with wxHeaderCtrlSimple, e.g.

        wxHeaderCtrlSimple * header = new wxHeaderCtrlSimple(...);
        wxHeaderColumnSimple col("Title");
        col.SetWidth(100);
        col.SetSortable(100);
        header->AppendColumn(col);

Library:  wxCore
Category:  Controls

Public Member Functions



 wxHeaderColumnSimple (const wxString &title, int width=wxCOL_WIDTH_DEFAULT, wxAlignment align=wxALIGN_NOT, int flags=wxCOL_DEFAULT_FLAGS)
 Constructor for a column header.
 wxHeaderColumnSimple (const wxBitmap &bitmap, int width=wxDVC_DEFAULT_WIDTH, wxAlignment align=wxALIGN_CENTER, int flags=wxCOL_DEFAULT_FLAGS)
 Constructor for a column header.
virtual void SetTitle (const wxString &title)
 Trivial implementations of the base class pure virtual functions.
virtual wxString GetTitle () const
 Constructor for a column header.
virtual void SetBitmap (const wxBitmap &bitmap)
 Constructor for a column header.
virtual wxBitmap GetBitmap () const
 Constructor for a column header.
virtual void SetWidth (int width)
 Constructor for a column header.
virtual int GetWidth () const
 Constructor for a column header.
virtual void SetMinWidth (int minWidth)
 Constructor for a column header.
virtual int GetMinWidth () const
 Constructor for a column header.
virtual void SetAlignment (wxAlignment align)
 Constructor for a column header.
virtual wxAlignment GetAlignment () const
 Constructor for a column header.
virtual void SetFlags (int flags)
 Constructor for a column header.
virtual int GetFlags () const
 Constructor for a column header.
virtual void SetAsSortKey (bool sort=true)
 Constructor for a column header.
virtual bool IsSortKey () const
 Constructor for a column header.
virtual void SetSortOrder (bool ascending)
 Constructor for a column header.
virtual bool IsSortOrderAscending () const
 Constructor for a column header.

List of all members.


Constructor & Destructor Documentation

wxHeaderColumnSimple::wxHeaderColumnSimple ( const wxString title,
int  width = wxCOL_WIDTH_DEFAULT,
wxAlignment  align = wxALIGN_NOT,
int  flags = wxCOL_DEFAULT_FLAGS 
)

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

wxHeaderColumnSimple::wxHeaderColumnSimple ( const wxBitmap bitmap,
int  width = wxDVC_DEFAULT_WIDTH,
wxAlignment  align = wxALIGN_CENTER,
int  flags = wxCOL_DEFAULT_FLAGS 
)

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.


Member Function Documentation

virtual wxAlignment wxHeaderColumnSimple::GetAlignment (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual wxBitmap wxHeaderColumnSimple::GetBitmap (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual int wxHeaderColumnSimple::GetFlags (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual int wxHeaderColumnSimple::GetMinWidth (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual wxString wxHeaderColumnSimple::GetTitle (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual int wxHeaderColumnSimple::GetWidth (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual bool wxHeaderColumnSimple::IsSortKey (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual bool wxHeaderColumnSimple::IsSortOrderAscending (  )  const [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

Implements wxHeaderColumn.

virtual void wxHeaderColumnSimple::SetAlignment ( wxAlignment  align  )  [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

virtual void wxHeaderColumnSimple::SetAsSortKey ( bool  sort = true  )  [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

virtual void wxHeaderColumnSimple::SetBitmap ( const wxBitmap bitmap  )  [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

virtual void wxHeaderColumnSimple::SetFlags ( int  flags  )  [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

virtual void wxHeaderColumnSimple::SetMinWidth ( int  minWidth  )  [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

virtual void wxHeaderColumnSimple::SetSortOrder ( bool  ascending  )  [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

virtual void wxHeaderColumnSimple::SetTitle ( const wxString title  )  [virtual]

Trivial implementations of the base class pure virtual functions.

virtual void wxHeaderColumnSimple::SetWidth ( int  width  )  [virtual]

Constructor for a column header.

The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



wxWidgets logo

[ top ]