Nana C++ Library. Reference for users.
What we need to use nana
|
Namespaces | |
anonymous_namespace{platform_abstraction.cpp} | |
API | |
bidi_charmap | |
category | |
concepts | |
detail | |
dev | |
drawerbase | |
effects | |
element | |
filesystem_ext | |
internationalization_parts | |
meta | |
paint | |
parameters | |
pat | |
place_parts | |
restrict | |
spec | |
system | |
threads | |
Some mutex classes for synchronizing. | |
utf | |
widgets | |
Classes | |
class | bad_any_cast |
class | any |
struct | casei_char_traits |
union | pixel_argb_t |
union | pixel_rgba_t |
class | color |
struct | basic_point |
struct | size |
struct | rectangle |
class | rectangle_rotator |
class | charset |
An intelligent charset class for character code conversion. Example: More... | |
struct | utf8_Error |
move to *.h ?? More... | |
class | date |
A date operation class. More... | |
class | time |
struct | platform_runtime |
class | internal_font |
class | platform_abstraction |
class | font_interface |
struct | output_t |
struct | framebuilder |
struct | frame |
class | frameset |
Holds the frames and frame builders. Have reference semantics for efficiency. More... | |
class | animation |
Easy way to display an animation or create an animated GUI. More... | |
class | drawing |
Draw pictures on a widget by specifying a drawing method that will be employed every time the widget refreshes. More... | |
struct | accel_key |
struct | keyboard |
struct | appearance |
Window appearance structure defined to specify the appearance of a form. More... | |
struct | appear |
Provided to generate an appearance object with better readability and understandability. More... | |
class | caret_interface |
Interface for caret operations. More... | |
class | scroll_operation_interface |
Interface for scroll operations. More... | |
class | event_filter_status |
class | drawer_trigger |
class | color_proxy |
a tool to share and set a color common to many uses More... | |
struct | widget_geometrics |
define common color and geometrical properties More... | |
class | null_type |
class | noncopyable |
Prevent a class to be copyable. More... | |
class | nonmovable |
Prevent a class to be movable. More... | |
class | event_arg |
base class for all event argument types More... | |
class | basic_event |
the type of the members of general_events. More... | |
struct | arg_mouse |
struct | arg_wheel |
in arg_wheel event_code is event_code::mouse_wheel More... | |
struct | arg_dropfiles |
struct | arg_expose |
struct | arg_focus |
struct | arg_ime |
struct | arg_keyboard |
struct | arg_move |
struct | arg_resized |
struct | arg_resizing |
struct | arg_unload |
struct | arg_destroy |
struct | arg_click |
a higher level event argument than just mouse down More... | |
struct | general_events |
provides some fundamental events that every widget owns. More... | |
class | internal_scope_guard |
class | internal_revert_guard |
class | widget |
Abstract class for defining the capacity interface. More... | |
class | widget_object |
class | widget_object< category::lite_widget_tag, DrawerTrigger, Events, Scheme > |
class | widget_object< category::root_tag, DrawerTrigger, Events, Scheme > |
class | internationalization |
class | i18n_eval |
class | facade |
class | facade< element::crook > |
class | facade< element::cross > |
class | facade< element::border > |
class | facade< element::arrow > |
class | facade< element::button > |
class | facade< element::x_icon > |
class | display |
The monitor display metrics. More... | |
class | screen |
Provides some functions to get the metrics of the monitors. More... | |
class | dragdrop_session |
class | dragdrop_service |
class | simple_dragdrop |
class | dragdrop |
class | dragger |
Helper class that allows the user to drag windows. More... | |
class | element_object |
class | element_manager |
class | filebox |
Create an Open or Save dialog box to let user select the name of a file. More... | |
class | folderbox |
class | inputbox_window |
class | msgbox |
Prefabricated modal dialog box (with text, icon and actions buttons) that informs and instructs the user. More... | |
class | inputbox |
class | form |
class | nested_form |
class | agent |
class | place |
Layout management - an object of class place is attached to a widget, and it automatically positions and resizes the children widgets. More... | |
class | label |
Define a label widget (can dispaly a formated text string and images). Provides the interfaces to be operational. More... | |
class | button |
Define a button widget and provides the interfaces to be operational. More... | |
struct | arg_spinbox |
class | spinbox |
Spinbox Widget. More... | |
struct | arg_checkbox |
class | checkbox |
class | radio_group |
for managing checkboxs in radio mode More... | |
struct | arg_combox |
class | combox |
This widget is a combo box which consists of a list box combined with a textbox. The list box should drop down when the user selects the drop-down arrow next to the control. More... | |
struct | arg_textbox |
class | textbox |
Allow users to enter and edit text by typing on the keyboard. More... | |
class | panel |
For placing other widgets, where the bool template parameter determines if it is widget or lite_widget, which in actual use makes no difference. More... | |
class | picture |
Rectangle area for displaying a bitmap file. More... | |
class | notifications |
struct | arg_notifier |
class | notifier |
struct | arg_elapse |
class | timer |
Can repeatedly call a piece of code. More... | |
struct | badname |
class | tabbar |
Analogous to dividers in a notebook or the labels in a file cabinet. More... | |
struct | arg_tabbar |
struct | arg_tabbar_click |
struct | arg_tabbar_mouse |
struct | arg_tabbar_adding |
struct | arg_tabbar_removed |
class | tabbar_lite |
class | real_display |
class | state_cursor |
class | timer_driver |
class | tooltip_interface |
class | tooltip |
class | categorize |
Represent an architecture of categories and what category is chosen. The categorize widget can be used for representing a path of a directory or the order of a hierarchy. More... | |
struct | arg_categorize |
class | float_listbox |
class | key |
struct | arg_datechooser |
class | date_chooser |
class | scroll |
Provides a way to display an object which is larger than the window's client area. More... | |
struct | arg_scroll |
class | scroll_interface |
class | group |
class | unicode_bidi |
struct | arg_listbox |
struct | arg_listbox_category |
The event parameter type for listbox's category_dbl_click. More... | |
class | listbox |
A rectangle containing a list of strings from which the user can select. This widget contain a list of categories, with in turn contain a list of items. A category is a text with can be selected, checked and expanded to show the items. An item is formed by column-fields, each corresponding to one of the headers. An item can be selected and checked. The user can drag the header to resize it or to reorganize it. By clicking on one header the list get reordered, first up, and then down alternatively. More... | |
class | menu |
a list of items that specify options or group of options for an application. More... | |
class | menu_accessor |
class | menubar |
A toolbar at the top of window for pop-upping menus. More... | |
class | progress |
A progressbar widget with two styles: know, and unknown amount value (goal). In unknown style the amount is ignored and the bar is scrolled when value change. More... | |
struct | arg_slider |
class | slider |
A slider widget which the user can drag for tracking. More... | |
struct | arg_toolbar |
class | toolbar |
Control bar that contains buttons for controlling. More... | |
struct | arg_treebox |
a type of treebox event parameter More... | |
class | treebox |
Displays a hierarchical list of items, such as the files and directories on a disk. See also in documentation More... | |
Typedefs | |
using | cistring = std::basic_string< char, casei_char_traits< char >> |
using | ciwstring = std::basic_string< wchar_t, casei_char_traits< wchar_t >> |
using | pixel_color_t = pixel_argb_t |
using | point = basic_point< int > |
using | upoint = basic_point< unsigned > |
using | window = detail::basic_window * |
The window handle type representing nana window objects. More... | |
using | native_window_type = detail::native_window_handle_impl * |
The native window handle type representing system native windows. E.g, HWND in windows, Window in X11. More... | |
using | event_handle = detail::event_handle_impl * |
The event handle type representing nana window events. More... | |
using | native_drawable_type = detail::native_drawable_impl * |
The drawable handle type representing system native drawable objects. E.g. HDC in windows, Drawable in X11. More... | |
template<typename Form , bool IsVisible = true> | |
using | form_loader = detail::form_loader< Form, IsVisible > |
using | lock_guard = std::lock_guard< std::recursive_mutex > |
typedef place_parts::number_t | number_t |
typedef place_parts::repeated_array | repeated_array |
typedef const detail::timer_core * | timer_identifier |
typedef drawerbase::tooltip::controller | ctrl |
using | form_base = drawerbase::form::form_base |
using | groupbase_type = widget_object< category::widget_tag, drawerbase::panel::drawer, general_events, drawerbase::group::scheme > |
using | item_type = drawerbase::menu::menu_item_type |
using | component = drawerbase::treebox::component |
Functions | |
void | swap (any &x, any &y) noexcept |
template<typename Value > | |
Value | any_cast (const any &operand) |
template<typename Value > | |
Value | any_cast (any &operand) |
template<typename Value > | |
Value | any_cast (any &&operand) |
template<typename Value > | |
const Value * | any_cast (const any *operand) noexcept |
template<typename Value > | |
Value * | any_cast (any *operand) noexcept |
std::string | read_number (std::string &str, std::size_t &pos) |
double | rgb_from_hue (double v1, double v2, double h) |
color | operator+ (const color &x, const color &y) |
bool | is_utf8 (const char *str, std::size_t len) |
Checks whether a specified text is utf8 encoding. More... | |
void | throw_not_utf8 (const std::string &text) |
void | throw_not_utf8 (const char *, std::size_t len) |
void | throw_not_utf8 (const char *) |
bool | review_utf8 (const std::string &text) |
this text needed change, it needed review ?? More... | |
bool | review_utf8 (std::string &text) |
this text needed change, it needed review ?? More... | |
const std::string & | to_utf8 (const std::string &) |
std::string | to_utf8 (const std::wstring &) |
std::wstring | to_wstring (const std::string &utf8_str) |
const std::wstring & | to_wstring (const std::wstring &wstr) |
std::wstring && | to_wstring (std::wstring &&wstr) |
std::string | to_osmbstr (std::string text_utf8) |
const detail::native_string_type & | to_nstring (const std::string &) |
const detail::native_string_type | to_nstring (const std::wstring &) |
detail::native_string_type && | to_nstring (std::string &&) |
detail::native_string_type | to_nstring (std::wstring &&) |
detail::native_string_type | to_nstring (int) |
detail::native_string_type | to_nstring (double) |
detail::native_string_type | to_nstring (std::size_t) |
unsigned | make_rgb (unsigned char red, unsigned char green, unsigned char blue) |
set (localtime()) | |
std::string | recode_to_utf8 (std::string no_utf8) |
static platform_runtime & | platform_storage () |
static std::shared_ptr < platform_abstraction::font > | font_factory (::std::string font_family, double size_pt, const platform_abstraction::font::font_style &fs, internal_font::path_type ttf) |
bool | overlapped (const rectangle &r1, const rectangle &r2) |
bool | overlap (const rectangle &r1, const rectangle &r2, rectangle &r) |
bool | overlap (const rectangle &ir, const size &valid_input_area, const rectangle &dr, const size &valid_dst_area, rectangle &output_src_r, rectangle &output_dst_r) |
bool | intersection (const rectangle &r, point pos_beg, point pos_end, point &good_pos_beg, point &good_pos_end) |
void | fit_zoom (const size &input_s, const size &ref_s, size &result_s) |
Zoom the input_s to fit for ref_s. More... | |
size | fit_zoom (const size &input_s, size ref_s) |
void | zoom (const rectangle &refer, const rectangle &scaled, const rectangle &refer_dst, rectangle &r) |
bool | covered (const rectangle &underlying, const rectangle &cover) |
void | exec () |
static bool | is_vert_dir (::nana::direction dir) |
static int | horz_point (bool vert, const point &pos) |
static bool | is_idchar (int ch) noexcept |
static std::size_t | find_idstr (const std::string &text, const char *idstr, std::size_t off=0) |
static std::pair< std::size_t, std::size_t > | get_field_boundary (const std::string &div, std::size_t start_pos) |
static std::pair< std::size_t, std::size_t > | get_field_boundary (const std::string &div, const char *idstr, int depth) |
static int | get_parameter (place_parts::tokenizer &tknizer, std::size_t pos) |
static void | update_div (std::string &div, const char *field, const char *attr, update_operation operation) |
std::vector< unicode_bidi::entity > | unicode_reorder (const wchar_t *text, std::size_t length) |
bool | unicode_wordbreak (wchar_t left, wchar_t right) |
static void | check_range (std::size_t pos, std::size_t size) |
detail::popuper | menu_popuper (menu &mobj, mouse ms) |
detail::popuper | menu_popuper (menu &mobj, window owner, const point &pos, mouse ms) |
std::unique_ptr< unsigned[]> | nana_xft_glyph_pixels (font_interface *, const wchar_t *str, std::size_t len) |
unicode_character_type | unicode_char_type (unsigned long ch) |
Variables | |
const std::size_t | npos = static_cast<std::size_t>(-1) |
A constant value for the invalid position. More... | |
static const char * | field_title = "__nana_group_title__" |
static const char * | field_options = "__nana_group_options__" |
using nana::cistring = typedef std::basic_string<char, casei_char_traits<char>> |
using nana::ciwstring = typedef std::basic_string<wchar_t, casei_char_traits<wchar_t>> |
using nana::component = typedef drawerbase::treebox::component |
using nana::event_handle = typedef detail::event_handle_impl* |
The event handle type representing nana window events.
using nana::form_base = typedef drawerbase::form::form_base |
using nana::form_loader = typedef detail::form_loader<Form, IsVisible> |
using nana::groupbase_type = typedef widget_object<category::widget_tag, drawerbase::panel::drawer, general_events, drawerbase::group::scheme> |
using nana::item_type = typedef drawerbase::menu::menu_item_type |
using nana::lock_guard = typedef std::lock_guard<std::recursive_mutex> |
using nana::native_drawable_type = typedef detail::native_drawable_impl* |
The drawable handle type representing system native drawable objects. E.g. HDC in windows, Drawable in X11.
using nana::native_window_type = typedef detail::native_window_handle_impl* |
The native window handle type representing system native windows. E.g, HWND in windows, Window in X11.
typedef place_parts::number_t nana::number_t |
using nana::pixel_color_t = typedef pixel_argb_t |
using nana::point = typedef basic_point<int> |
typedef const detail::timer_core* nana::timer_identifier |
using nana::upoint = typedef basic_point<unsigned> |
using nana::window = typedef detail::basic_window* |
The window handle type representing nana window objects.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
See extended CSS color keywords (4.3) in http://www.w3.org/TR/2011/REC-css3-color-20110607/.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Value nana::any_cast | ( | const any & | operand | ) |
Value nana::any_cast | ( | any & | operand | ) |
Value nana::any_cast | ( | any && | operand | ) |
|
noexcept |
|
noexcept |
|
static |
bool nana::covered | ( | const rectangle & | underlying, |
const rectangle & | cover | ||
) |
void nana::exec | ( | ) |
|
static |
??
void nana::fit_zoom | ( | const size & | input_s, |
const size & | ref_s, | ||
size & | result_s | ||
) |
Zoom the input_s to fit for ref_s.
size nana::fit_zoom | ( | const size & | input_s, |
size | ref_s | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
bool nana::intersection | ( | const rectangle & | r, |
point | pos_beg, | ||
point | pos_end, | ||
point & | good_pos_beg, | ||
point & | good_pos_end | ||
) |
|
staticnoexcept |
bool nana::is_utf8 | ( | const char * | str, |
std::size_t | len | ||
) |
Checks whether a specified text is utf8 encoding.
|
static |
|
inline |
detail::popuper nana::menu_popuper | ( | menu & | mobj, |
mouse | ms | ||
) |
detail::popuper nana::menu_popuper | ( | menu & | mobj, |
window | owner, | ||
const point & | pos, | ||
mouse | ms | ||
) |
std::unique_ptr<unsigned[]> nana::nana_xft_glyph_pixels | ( | font_interface * | , |
const wchar_t * | str, | ||
std::size_t | len | ||
) |
color nana::operator+ | ( | const color & | x, |
const color & | y | ||
) |
bool nana::overlap | ( | const rectangle & | r1, |
const rectangle & | r2, | ||
rectangle & | r | ||
) |
bool nana::overlap | ( | const rectangle & | ir, |
const size & | valid_input_area, | ||
const rectangle & | dr, | ||
const size & | valid_dst_area, | ||
rectangle & | output_src_r, | ||
rectangle & | output_dst_r | ||
) |
bool nana::overlapped | ( | const rectangle & | r1, |
const rectangle & | r2 | ||
) |
|
static |
std::string nana::read_number | ( | std::string & | str, |
std::size_t & | pos | ||
) |
std::string nana::recode_to_utf8 | ( | std::string | no_utf8 | ) |
bool nana::review_utf8 | ( | const std::string & | text | ) |
this text needed change, it needed review ??
it needed change, it needed review !!
it needed change, it needed review !!
bool nana::review_utf8 | ( | std::string & | text | ) |
this text needed change, it needed review ??
it needed change, it needed review !!
it needed change, it needed review !!
double nana::rgb_from_hue | ( | double | v1, |
double | v2, | ||
double | h | ||
) |
nana::set | ( | localtime() | ) |
|
inlinenoexcept |
void nana::throw_not_utf8 | ( | const std::string & | text | ) |
void nana::throw_not_utf8 | ( | const char * | text, |
std::size_t | len | ||
) |
void nana::throw_not_utf8 | ( | const char * | text | ) |
const detail::native_string_type & nana::to_nstring | ( | const std::string & | text | ) |
const detail::native_string_type nana::to_nstring | ( | const std::wstring & | text | ) |
detail::native_string_type && nana::to_nstring | ( | std::string && | text | ) |
detail::native_string_type nana::to_nstring | ( | std::wstring && | text | ) |
detail::native_string_type nana::to_nstring | ( | int | n | ) |
detail::native_string_type nana::to_nstring | ( | double | d | ) |
detail::native_string_type nana::to_nstring | ( | std::size_t | d | ) |
std::string nana::to_osmbstr | ( | std::string | text_utf8 | ) |
const std::string & nana::to_utf8 | ( | const std::string & | str | ) |
std::string nana::to_utf8 | ( | const std::wstring & | text | ) |
std::wstring nana::to_wstring | ( | const std::string & | utf8_str | ) |
const std::wstring & nana::to_wstring | ( | const std::wstring & | wstr | ) |
std::wstring && nana::to_wstring | ( | std::wstring && | wstr | ) |
unicode_character_type nana::unicode_char_type | ( | unsigned long | ch | ) |
std::vector< unicode_bidi::entity > nana::unicode_reorder | ( | const wchar_t * | text, |
std::size_t | length | ||
) |
bool nana::unicode_wordbreak | ( | wchar_t | left, |
wchar_t | right | ||
) |
|
static |
void nana::zoom | ( | const rectangle & | refer, |
const rectangle & | scaled, | ||
const rectangle & | refer_dst, | ||
rectangle & | r | ||
) |
|
static |
|
static |
const std::size_t nana::npos = static_cast<std::size_t>(-1) |
A constant value for the invalid position.