Nana C++ Library. Reference for users.
What we need to use nana
|
Public Member Functions | |
column (const column &)=default | |
column & | operator= (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::font > | font |
The exclusive column font. More... | |
|
default |
|
inline |
|
inlinenoexcept |
|
overridevirtualnoexcept |
Adjusts the width to fit the content.
The priority of max: maximum, ranged width, scheme's max_fit_content.
maximum | Sets 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 | ( | ) |
|
overridevirtualnoexcept |
Returns the position of the column.
disp_order | Indicates whether the display position or absolute position to be returned |
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtualnoexcept |
Returns the caption of column.
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtual |
Sets the caption of column.
text_utf8 | A UTF-8 string for the caption. |
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtualnoexcept |
Sets alignment of column text.
align | Alignment |
Implements nana::drawerbase::listbox::column_interface.
|
overridevirtual |
Sets an exclusive font for the column.
Implements nana::drawerbase::listbox::column_interface.
|
overridevirtualnoexcept |
Returns a font.
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtualnoexcept |
Determines the visibility state of the column.
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtualnoexcept |
Sets the visibility state of the column.
is_visible | Indicates whether to show or hide the column |
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtualnoexcept |
Implementation of column_interface.
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtualnoexcept |
Sets the width and overrides the ranged width.
Implements nana::drawerbase::listbox::column_interface.
|
inlineoverridevirtual |
Automatically adjusted width.
minimum | The minimal width of column, in pixel |
maximum | The maximal width of column, in pixel |
Implements nana::drawerbase::listbox::column_interface.
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 |