Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::drawerbase::listbox::es_header::column Struct Reference
Inheritance diagram for nana::drawerbase::listbox::es_header::column:
nana::drawerbase::listbox::column_interface

Public Member Functions

 column (const column &)=default
 
columnoperator= (const column &other)
 
 column (column &&other)
 
 column (essence *ess, native_string_type &&text, unsigned px, size_type pos) noexcept
 
void fit_width_to_header ()
 
unsigned width () const noexceptoverride
 Implementation of column_interface. More...
 
void width (unsigned pixels) noexceptoverride
 Sets the width and overrides the ranged width. More...
 
void width (unsigned minimum, unsigned maximum) override
 Automatically adjusted width. More...
 
size_type position (bool disp_order) const noexceptoverride
 Returns the position of the column. More...
 
std::string text () const noexceptoverride
 Returns the caption of column. More...
 
void text (std::string text_utf8) override
 Sets the caption of column. More...
 
void text_align (::nana::align align) noexceptoverride
 Sets alignment of column text. More...
 
void fit_content (unsigned maximize=100000) noexceptoverride
 Adjusts the width to fit the content. More...
 
void typeface (const paint::font &column_font) override
 Sets an exclusive font for the column. More...
 
paint::font typeface () const noexceptoverride
 Returns a font. More...
 
bool visible () const noexceptoverride
 Determines the visibility state of the column. More...
 
void visible (bool is_visible) noexceptoverride
 Sets the visibility state of the column. More...
 
- Public Member Functions inherited from nana::drawerbase::listbox::column_interface
virtual ~column_interface ()=default
 

Public Attributes

native_string_type caption
 
unsigned width_px
 
std::pair< unsigned, unsigned > range_width_px
 
bool visible_state { true }
 
size_type index
 
nana::align alignment { nana::align::left }
 
std::function< bool(const
std::string &, nana::any
*, const std::string
&, nana::any *, bool reverse)> 
weak_ordering
 
std::shared_ptr< paint::fontfont
 The exclusive column font. More...
 

Constructor & Destructor Documentation

nana::drawerbase::listbox::es_header::column::column ( const column )
default
nana::drawerbase::listbox::es_header::column::column ( column &&  other)
inline
nana::drawerbase::listbox::es_header::column::column ( essence ess,
native_string_type &&  text,
unsigned  px,
size_type  pos 
)
inlinenoexcept

Member Function Documentation

void nana::drawerbase::listbox::es_header::column::fit_content ( unsigned  maximum = 100000)
overridevirtualnoexcept

Adjusts the width to fit the content.

The priority of max: maximum, ranged width, scheme's max_fit_content.

Parameters
maximumSets the width of column to the maximum if the width of content is larger than maximum

Implements nana::drawerbase::listbox::column_interface.

void nana::drawerbase::listbox::es_header::column::fit_width_to_header ( )
column& nana::drawerbase::listbox::es_header::column::operator= ( const column other)
inline
size_type nana::drawerbase::listbox::es_header::column::position ( bool  disp_order) const
overridevirtualnoexcept

Returns the position of the column.

Parameters
disp_orderIndicates whether the display position or absolute position to be returned
Returns
the position of the column.

Implements nana::drawerbase::listbox::column_interface.

std::string nana::drawerbase::listbox::es_header::column::text ( ) const
inlineoverridevirtualnoexcept

Returns the caption of column.

Implements nana::drawerbase::listbox::column_interface.

void nana::drawerbase::listbox::es_header::column::text ( std::string  text_utf8)
inlineoverridevirtual

Sets the caption of column.

Parameters
text_utf8A UTF-8 string for the caption.

Implements nana::drawerbase::listbox::column_interface.

void nana::drawerbase::listbox::es_header::column::text_align ( ::nana::align  align)
inlineoverridevirtualnoexcept

Sets alignment of column text.

Parameters
alignAlignment

Implements nana::drawerbase::listbox::column_interface.

void nana::drawerbase::listbox::es_header::column::typeface ( const paint::font column_font)
overridevirtual

Sets an exclusive font for the column.

Implements nana::drawerbase::listbox::column_interface.

paint::font nana::drawerbase::listbox::es_header::column::typeface ( ) const
overridevirtualnoexcept

Returns a font.

Implements nana::drawerbase::listbox::column_interface.

bool nana::drawerbase::listbox::es_header::column::visible ( ) const
inlineoverridevirtualnoexcept

Determines the visibility state of the column.

Returns
true if the column is visible, false otherwise

Implements nana::drawerbase::listbox::column_interface.

void nana::drawerbase::listbox::es_header::column::visible ( bool  is_visible)
inlineoverridevirtualnoexcept

Sets the visibility state of the column.

Parameters
is_visibleIndicates whether to show or hide the column

Implements nana::drawerbase::listbox::column_interface.

unsigned nana::drawerbase::listbox::es_header::column::width ( ) const
inlineoverridevirtualnoexcept
void nana::drawerbase::listbox::es_header::column::width ( unsigned  pixels)
inlineoverridevirtualnoexcept

Sets the width and overrides the ranged width.

Implements nana::drawerbase::listbox::column_interface.

void nana::drawerbase::listbox::es_header::column::width ( unsigned  minimum,
unsigned  maximum 
)
inlineoverridevirtual

Automatically adjusted width.

Parameters
minimumThe minimal width of column, in pixel
maximumThe maximal width of column, in pixel

Implements nana::drawerbase::listbox::column_interface.

Member Data Documentation

nana::align nana::drawerbase::listbox::es_header::column::alignment { nana::align::left }
native_string_type nana::drawerbase::listbox::es_header::column::caption
std::shared_ptr<paint::font> nana::drawerbase::listbox::es_header::column::font

The exclusive column font.

size_type nana::drawerbase::listbox::es_header::column::index
std::pair<unsigned, unsigned> nana::drawerbase::listbox::es_header::column::range_width_px
bool nana::drawerbase::listbox::es_header::column::visible_state { true }
std::function<bool(const std::string&, nana::any*, const std::string&, nana::any*, bool reverse)> nana::drawerbase::listbox::es_header::column::weak_ordering
unsigned nana::drawerbase::listbox::es_header::column::width_px