Nana C++ Library. Reference for users.
What we need to use nana
|
Abstract class for defining the capacity interface. More...
Classes | |
class | inner_widget_notifier |
Public Types | |
using | native_string_type = detail::native_string_type |
Public Member Functions | |
widget ()=default | |
virtual | ~widget ()=default |
virtual window | handle () const =0 |
Returns the handle of window, returns 0 if window is not created. More... | |
bool | empty () const |
Determines whether the manipulator is handling a window. More... | |
void | close () |
window | parent () const |
::std::string | caption () const noexcept |
::std::wstring | caption_wstring () const noexcept |
native_string_type | caption_native () const noexcept |
widget & | caption (std::string utf8) |
widget & | caption (std::wstring) |
template<typename... Args> | |
void | i18n (std::string msgid, Args &&...args) |
void | i18n (i18n_eval) |
void | cursor (nana::cursor) |
nana::cursor | cursor () const |
Retrieves the shape of cursor. More... | |
void | typeface (const paint::font &font) |
paint::font | typeface () const |
bool | enabled () const |
Determines whether the window is enabled for mouse and keyboard input. More... | |
void | enabled (bool) |
void | enable_dropfiles (bool) |
Enables/Disables a window to accept dropped files. More... | |
void | focus () |
bool | focused () const |
std::shared_ptr < scroll_operation_interface > | scroll_operation () |
void | show () |
Sets the window visible. More... | |
void | hide () |
Sets the window invisible. More... | |
bool | visible () const |
nana::size | size () const |
void | size (const nana::size &) |
void | set_capture (bool ignore_children) |
Enables the widget to grab the mouse input. More... | |
void | release_capture () |
Disables the widget to grab the mouse input. More... | |
point | pos () const |
void | move (int x, int y) |
void | move (const point &) |
void | move (const rectangle &) |
void | fgcolor (const nana::color &) |
nana::color | fgcolor () const |
void | bgcolor (const nana::color &) |
nana::color | bgcolor () const |
general_events & | events () const |
void | umake_event (event_handle eh) const |
Deletes an event callback by a handle. More... | |
widget & | register_shortkey (wchar_t) |
Registers a shortkey. To remove a registered key, pass 0. More... | |
widget & | take_active (bool activated, window take_if_not_activated) |
widget & | tooltip (const ::std::string &) |
operator dummy_bool_type () const | |
operator window () const | |
Friends | |
class | detail::widget_notifier_interface |
Abstract class for defining the capacity interface.
|
default |
|
virtualdefault |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtualnoexcept |
Reimplemented in nana::textbox.
|
protectedvirtual |
Reimplemented in nana::textbox.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedpure virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in nana::textbox.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in nana::textbox.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
void nana::widget::bgcolor | ( | const nana::color & | col | ) |
nana::color nana::widget::bgcolor | ( | ) | const |
|
noexcept |
widget & nana::widget::caption | ( | std::string | utf8 | ) |
widget & nana::widget::caption | ( | std::wstring | text | ) |
|
noexcept |
|
noexcept |
void nana::widget::close | ( | ) |
void nana::widget::cursor | ( | nana::cursor | cur | ) |
nana::cursor nana::widget::cursor | ( | ) | const |
Retrieves the shape of cursor.
bool nana::widget::empty | ( | ) | const |
Determines whether the manipulator is handling a window.
void nana::widget::enable_dropfiles | ( | bool | enb | ) |
Enables/Disables a window to accept dropped files.
bool nana::widget::enabled | ( | ) | const |
Determines whether the window is enabled for mouse and keyboard input.
void nana::widget::enabled | ( | bool | value | ) |
general_events & nana::widget::events | ( | ) | const |
void nana::widget::fgcolor | ( | const nana::color & | col | ) |
nana::color nana::widget::fgcolor | ( | ) | const |
void nana::widget::focus | ( | ) |
bool nana::widget::focused | ( | ) | const |
|
pure virtual |
Returns the handle of window, returns 0 if window is not created.
Implemented in nana::detail::widget_base.
void nana::widget::hide | ( | ) |
Sets the window invisible.
|
inline |
void nana::widget::i18n | ( | i18n_eval | eval | ) |
void nana::widget::move | ( | int | x, |
int | y | ||
) |
void nana::widget::move | ( | const point & | pos | ) |
void nana::widget::move | ( | const rectangle & | r | ) |
nana::widget::operator widget::dummy_bool_type | ( | ) | const |
nana::widget::operator window | ( | ) | const |
window nana::widget::parent | ( | ) | const |
nana::point nana::widget::pos | ( | ) | const |
widget & nana::widget::register_shortkey | ( | wchar_t | key | ) |
Registers a shortkey. To remove a registered key, pass 0.
void nana::widget::release_capture | ( | ) |
Disables the widget to grab the mouse input.
std::shared_ptr< scroll_operation_interface > nana::widget::scroll_operation | ( | ) |
void nana::widget::set_capture | ( | bool | ignore_children | ) |
Enables the widget to grab the mouse input.
void nana::widget::show | ( | ) |
Sets the window visible.
nana::size nana::widget::size | ( | ) | const |
void nana::widget::size | ( | const nana::size & | sz | ) |
widget & nana::widget::tooltip | ( | const ::std::string & | text | ) |
void nana::widget::typeface | ( | const paint::font & | font | ) |
nana::paint::font nana::widget::typeface | ( | ) | const |
void nana::widget::umake_event | ( | event_handle | eh | ) | const |
Deletes an event callback by a handle.
bool nana::widget::visible | ( | ) | const |
|
friend |