wex v24.04.0
Public Types | Public Member Functions | List of all members
wex::column Class Reference

Offers a column to be used in a wxListCtrl. Facilitates sorting. More...

#include <wex/factory/listview.h>

Inherits wxListItem.

Public Types

enum  type_t {
  INVALID , INT = 1 , DATE , FLOAT ,
  STRING
}
 get_column types. More...
 

Public Member Functions

 column ()
 Default constructor.
 
 column (const std::string &name, type_t type=INT, int width=0)
 Constructor.
 
bool is_sorted_ascending () const
 Returns whether sorting is ascending.
 
void set_is_sorted_ascending (sort_t type)
 Sets the sort ascending member.
 
auto type () const
 Returns the column type.
 

Detailed Description

Offers a column to be used in a wxListCtrl. Facilitates sorting.

Member Enumeration Documentation

◆ type_t

get_column types.

Enumerator
INVALID 

illegal col

INT 

integer

DATE 

date

FLOAT 

float

STRING 

string

Constructor & Destructor Documentation

◆ column()

wex::column::column ( const std::string & name,
type_t type = INT,
int width = 0 )

Constructor.

Parameters
namename of the column
typetype of the column
widthwidth of the column, default width (0) uses a width that depends on the column type if you specify a width other than 0, that one is used.