|
| | form (const rectangle &=API::make_center(300, 200), const appearance &={}) |
| | Creates a window form owned by the desktop, at the point and size specified by rect, and with the specified appearance. More...
|
| |
| | form (window owner, const ::nana::size &={300, 200}, const appearance &={}) |
| | Creates a window always floating above its owner at the point and size specified by rect, with the specified appearance. This window is always floating above its owner. More...
|
| |
| | form (window owner, const rectangle &, const appearance &={}) |
| |
| | form (const form &, const ::nana::size &={300, 200}, const appearance &={}) |
| |
| void | modality () const |
| | Blocks the execution and other windows' messages until this window is closed. More...
|
| |
| void | wait_for_this () |
| | Blocks the execution until this window is closed. More...
|
| |
| void | keyboard_accelerator (const accel_key &, const std::function< void()> &fn) |
| |
| | form_base (window owner, bool nested, const rectangle &, const appearance &) |
| |
| place & | get_place () |
| |
| void | div (std::string div_text) |
| |
| place::field_reference | operator[] (const char *field_name) |
| |
| void | collocate () noexcept |
| |
| | widget_object () |
| |
| | ~widget_object () |
| |
| event_type & | events () const |
| |
| bool | create (window parent_wd, bool visible) |
| |
| bool | create (window parent_wd, const rectangle &r={}, bool visible=true) |
| |
| widget_object & | borderless (bool enable) |
| |
| bool | borderless () const |
| |
| scheme_type & | scheme () const |
| |
| void | filter_event (const event_code evt_code, const bool bDisabled) |
| |
| void | filter_event (const std::vector< event_code > evt_codes, const bool bDisabled) |
| |
| void | filter_event (const event_filter_status &evt_all_states) |
| |
| bool | filter_event (const event_code evt_code) |
| |
| event_filter_status | filter_event () |
| |
| void | clear_filter () |
| |
| window | handle () const override |
| | Returns the handle of window, returns 0 if window is not created. More...
|
| |
| | widget ()=default |
| |
| virtual | ~widget ()=default |
| |
| 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 |
| |
The form widget represents a popup window.
Overall it is a root widget (
- See Also
- : Overview of widgets) which attaches the OS/Windowing system's native window. It is different from other window widgets in that its default constructor creates the window.
-
nana::appearance
- Examples:
- a_group_impl.cpp, animate-bmp.cpp, audio_player.cpp, background-effects.cpp, calculator.cpp, categ.cpp, clicked.cpp, decore.cpp, drag-button.cpp, draw.cpp, example.button.cpp, example_combox.cpp, example_listbox.cpp, example_menu.cpp, file_explorer.cpp, folder_tree_nana.cpp, folder_tree_std.cpp, framework_design_1.cpp, framework_design_2.cpp, framework_design_3.cpp, group.cpp, helloword.cpp, helloword_quit.cpp, helloworld_demo.cpp, inputbox.cpp, label_listener.cpp, lambda_event.cpp11.cpp, listbox_inline_widget.cpp, listbox_Resolver.cpp, loader_2.cpp, mbox.cpp, menu_debug.cpp, menu_popuper.cpp, modal_form.cpp, MontiHall.cpp, notepad.cpp, place_login.cpp, png.cpp, screen.cpp, stretch_image.cpp, threading.cpp, widget_show.cpp, widget_show2.cpp, window-dragger.cpp, and windows-subclassing.cpp.