The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
gui2::window Class Reference

base class of top level items, the only item which needs to store the final canvases to draw on More...

#include <window.hpp>

Inheritance diagram for gui2::window:
Inheritance graph

Classes

class  invalidate_layout_blocker
 Helper class to block invalidate_layout. More...
 
struct  linked_size
 Helper struct to force widgets the have the same size. More...
 

Public Types

enum  retval { NONE = 0, OK = -1, CANCEL = -2, AUTO_CLOSE = -3 }
 Default return values. More...
 
enum  status { NEW, SHOWING, REQUEST_CLOSE, CLOSED }
 The status of the window. More...
 
enum  show_mode { none, modal, modeless, tooltip }
 
- Public Types inherited from gui2::widget
enum  visibility { visibility::visible, visibility::hidden, visibility::invisible }
 Visibility settings done by the user. More...
 
enum  redraw_action { redraw_action::full, redraw_action::partly, redraw_action::none }
 Visibility set by the engine. More...
 
- Public Types inherited from gui2::event::dispatcher
enum  event_queue_type { pre = 1, child = 2, post = 4 }
 
enum  queue_position {
  front_pre_child, back_pre_child, front_child, back_child,
  front_post_child, back_post_child
}
 The position where to add a new callback in the signal handler. More...
 
enum  mouse_behavior { all, hit, none }
 The behavior of the mouse events. More...
 

Public Member Functions

 window (const builder_window::window_resolution *definition)
 < Needs to be initialized in show. More...
 
 ~window ()
 
int show (const bool restore=true, const unsigned auto_close_timeout=0)
 Shows the window. More...
 
void show_tooltip ()
 Shows the window as a tooltip. More...
 
void show_non_modal ()
 Shows the window non modal. More...
 
void draw ()
 Draws the window. More...
 
void undraw ()
 Undraws the window. More...
 
void add_to_dirty_list (const std::vector< widget * > &call_stack)
 Adds an item to the dirty_list_. More...
 
void close ()
 Requests to close the window. More...
 
bool invalidate_layout_blocked () const
 Is invalidate_layout blocked, see invalidate_layout_blocker. More...
 
void invalidate_layout ()
 Updates the size of the window. More...
 
virtual widgetfind_at (const point &coordinate, const bool must_be_active) override
 See widget::find_at. More...
 
virtual const widgetfind_at (const point &coordinate, const bool must_be_active) const override
 See widget::find_at. More...
 
dialogs::modal_dialogdialog ()
 Inherited from widget. More...
 
widgetfind (const std::string &id, const bool must_be_active) override
 See widget::find. More...
 
const widgetfind (const std::string &id, const bool must_be_active) const override
 See widget::find. More...
 
bool does_click_dismiss () const
 Does the window close easily? More...
 
void set_enter_disabled (const bool enter_disabled)
 Disable the enter key. More...
 
void set_escape_disabled (const bool escape_disabled)
 Disable the escape key. More...
 
void init_linked_size_group (const std::string &id, const bool fixed_width, const bool fixed_height)
 Initializes a linked size group. More...
 
bool has_linked_size_group (const std::string &id)
 Is the linked size group defined for this window? More...
 
void add_linked_widget (const std::string &id, widget *widget)
 Adds a widget to a linked size group. More...
 
void remove_linked_widget (const std::string &id, const widget *widget)
 Removes a widget from a linked size group. More...
 
CVideovideo ()
 
void set_retval (const int retval, const bool close_window=true)
 Sets there return value of the window. More...
 
int get_retval ()
 
void set_owner (dialogs::modal_dialog *owner)
 
void set_click_dismiss (const bool click_dismiss)
 
bool get_need_layout () const
 
void set_variable (const std::string &key, const wfl::variant &value)
 
point get_linked_size (const std::string &linked_group_id) const
 
void set_exit_hook (std::function< bool(window &)> func)
 Sets the window's exit hook. More...
 
void set_exit_hook_ok_only (std::function< bool(window &)> func)
 
void set_callback_next_draw (std::function< void()> func)
 Sets a callback that will be called after the window is drawn next time. More...
 
const event::distributorget_distributor () const
 Gets a reference to the window's distributor to allow some state peeking. More...
 
show_mode mode () const
 Returns the dialog mode for this window. More...
 
void mouse_capture (const bool capture=true)
 
void keyboard_capture (widget *widget)
 
void add_to_keyboard_chain (widget *widget)
 Adds the widget to the keyboard chain. More...
 
void remove_from_keyboard_chain (widget *widget)
 Remove the widget from the keyboard chain. More...
 
void add_to_tab_order (widget *widget, int at=-1)
 Add the widget to the tabbing order. More...
 
- Public Member Functions inherited from gui2::panel
 panel (const implementation::builder_styled_widget &builder, const std::string &control_type="")
 Constructor. More...
 
virtual SDL_Rect get_client_rect () const override
 See container_base::get_client_rect. More...
 
virtual bool get_active () const override
 See styled_widget::get_active. More...
 
virtual unsigned get_state () const override
 See styled_widget::get_state. More...
 
- Public Member Functions inherited from gui2::container_base
 container_base (const implementation::builder_styled_widget &builder, const std::string &control_type)
 
virtual void layout_initialize (const bool full_initialization) override
 See widget::layout_initialize. More...
 
void reduce_width (const unsigned maximum_width)
 Tries to reduce the width of a container. More...
 
virtual void request_reduce_width (const unsigned maximum_width) override
 See widget::request_reduce_width. More...
 
virtual void demand_reduce_width (const unsigned maximum_width) override
 See widget::demand_reduce_width. More...
 
void reduce_height (const unsigned maximum_height)
 Tries to reduce the height of a container. More...
 
virtual void request_reduce_height (const unsigned maximum_height) override
 See widget::request_reduce_height. More...
 
virtual void demand_reduce_height (const unsigned maximum_height) override
 See widget::demand_reduce_height. More...
 
virtual bool can_wrap () const override
 See widget::can_wrap. More...
 
virtual void place (const point &origin, const point &size) override
 See widget::place. More...
 
virtual bool has_widget (const widget &widget) const override
 See widget::has_widget. More...
 
virtual void set_origin (const point &origin) override
 See widget::set_origin. More...
 
virtual void set_visible_rectangle (const SDL_Rect &rectangle) override
 See widget::set_visible_rectangle. More...
 
virtual void impl_draw_children (surface &frame_buffer, int x_offset, int y_offset) override
 See widget::impl_draw_children. More...
 
virtual void set_active (const bool active) override
 See styled_widget::set_active. More...
 
bool disable_click_dismiss () const override
 See widget::disable_click_dismiss. More...
 
virtual iteration::walker_basecreate_walker () override
 See widget::create_walker. More...
 
void init_grid (const std::shared_ptr< builder_grid > &grid_builder)
 Initializes and builds the grid. More...
 
grid::iterator begin ()
 
grid::iterator end ()
 
unsigned add_row (const unsigned count=1)
 
void set_rows (const unsigned rows)
 
unsigned int get_rows () const
 
void set_cols (const unsigned cols)
 
unsigned int get_cols () const
 
void set_rows_cols (const unsigned rows, const unsigned cols)
 
void set_child (widget *widget, const unsigned row, const unsigned col, const unsigned flags, const unsigned border_size)
 
void set_row_grow_factor (const unsigned row, const unsigned factor)
 
void set_column_grow_factor (const unsigned column, const unsigned factor)
 
const gridget_grid () const
 
gridget_grid ()
 
- Public Member Functions inherited from gui2::styled_widget
 styled_widget (const implementation::builder_styled_widget &builder, const std::string &control_type)
 Constructor. More...
 
virtual void set_members (const string_map &data)
 Sets the members of the styled_widget. More...
 
bool disable_click_dismiss () const override
 See widget::disable_click_dismiss. More...
 
point get_config_minimum_size () const
 Gets the minimum size as defined in the config. More...
 
point get_config_default_size () const
 Gets the default size as defined in the config. More...
 
point get_config_maximum_size () const
 Gets the best size as defined in the config. More...
 
virtual unsigned get_characters_per_line () const
 Returns the number of characters per line. More...
 
virtual bool get_link_aware () const
 Returns whether the label should be link_aware, in in rendering and in searching for links with get_link. More...
 
virtual color_t get_link_color () const
 Returns the color string to be used with links. More...
 
bool get_use_tooltip_on_label_overflow () const
 
void set_use_tooltip_on_label_overflow (const bool use_tooltip=true)
 
const t_stringget_label () const
 
virtual void set_label (const t_string &label)
 
virtual void set_use_markup (bool use_markup)
 
bool get_use_markup () const
 
const t_stringtooltip () const
 
void set_tooltip (const t_string &tooltip)
 
const t_stringhelp_message () const
 
void set_help_message (const t_string &help_message)
 
std::vector< canvas > & get_canvases ()
 
canvasget_canvas (const unsigned index)
 
virtual void set_text_alignment (const PangoAlignment text_alignment)
 
PangoAlignment get_text_alignment () const
 
void set_text_ellipse_mode (const PangoEllipsizeMode ellipse_mode)
 
PangoEllipsizeMode get_text_ellipse_mode () const
 Get the text's ellipsize mode. More...
 
- Public Member Functions inherited from gui2::widget
 widget (const widget &)=delete
 
widgetoperator= (const widget &)=delete
 
 widget ()
 
 widget (const builder_widget &builder)
 Constructor. More...
 
virtual ~widget () override
 
void set_id (const std::string &id)
 
const std::string & id () const
 
windowget_window ()
 Get the parent window. More...
 
const windowget_window () const
 The constant version of get_window. More...
 
gridget_parent_grid ()
 Get the parent grid. More...
 
dialogs::modal_dialogdialog ()
 Returns the top-level dialog. More...
 
void set_parent (widget *parent)
 
widgetparent ()
 
point get_best_size () const
 Gets the best size for the widget. More...
 
virtual bool can_mouse_focus () const
 Whether the mouse move/click event go 'through' this widget. More...
 
virtual void set_size (const point &size)
 Sets the size of the widget. More...
 
virtual void move (const int x_offset, const int y_offset)
 Moves a widget. More...
 
virtual void set_horizontal_alignment (const std::string &alignment)
 Sets the horizontal alignment of the widget within its parent grid. More...
 
virtual void set_vertical_alignment (const std::string &alignment)
 Sets the horizontal alignment of the widget within its parent grid. More...
 
point get_origin () const
 Returns the screen origin of the widget. More...
 
point get_size () const
 Returns the size of the widget. More...
 
SDL_Rect get_rectangle () const
 Gets the bounding rectangle of the widget on the screen. More...
 
int get_x () const
 
int get_y () const
 
unsigned get_width () const
 
unsigned get_height () const
 
void set_linked_group (const std::string &linked_group)
 
SDL_Rect calculate_blitting_rectangle (const int x_offset, const int y_offset)
 Calculates the blitting rectangle of the widget. More...
 
SDL_Rect calculate_clipping_rectangle (const int x_offset, const int y_offset)
 Calculates the clipping rectangle of the widget. More...
 
void draw_background (surface &frame_buffer, int x_offset, int y_offset)
 Draws the background of a widget. More...
 
void draw_children (surface &frame_buffer, int x_offset, int y_offset)
 Draws the children of a widget. More...
 
void draw_foreground (surface &frame_buffer, int x_offset, int y_offset)
 Draws the foreground of the widget. More...
 
void populate_dirty_list (window &caller, std::vector< widget * > &call_stack)
 Adds a widget to the dirty list if it is dirty. More...
 
SDL_Rect get_dirty_rectangle () const
 Gets the dirty rectangle of the widget. More...
 
void set_is_dirty (const bool is_dirty)
 
bool get_is_dirty () const
 
void set_visible (const visibility visible)
 
visibility get_visible () const
 
redraw_action get_drawing_action () const
 
void set_debug_border_mode (const unsigned debug_border_mode)
 
void set_debug_border_color (const color_t debug_border_color)
 
- Public Member Functions inherited from gui2::event_executor
 event_executor ()
 
virtual ~event_executor ()
 
void set_wants_mouse_hover (const bool hover=true)
 
bool wants_mouse_hover () const
 
void set_wants_mouse_left_double_click (const bool click=true)
 
bool wants_mouse_left_double_click () const
 
void set_wants_mouse_middle_double_click (const bool click=true)
 
bool wants_mouse_middle_double_click () const
 
event_executorset_wants_mouse_right_double_click (const bool click=true)
 
bool wants_mouse_right_double_click () const
 
- Public Member Functions inherited from gui2::event::dispatcher
 dispatcher ()
 
virtual ~dispatcher ()
 
void connect ()
 Connects the dispatcher to the event handler. More...
 
bool has_event (const ui_event event, const event_queue_type event_type)
 
bool fire (const ui_event event, widget &target)
 Fires an event which has no extra parameters. More...
 
bool fire (const ui_event event, widget &target, const point &coordinate)
 Fires an event which takes a coordinate parameter. More...
 
bool fire (const ui_event event, widget &target, const SDL_Keycode key, const SDL_Keymod modifier, const utf8::string &unicode)
 Fires an event which takes keyboard parameters. More...
 
bool fire (const ui_event event, widget &target, const point &pos, const point &distance)
 Fires an event which takes touch parameters. More...
 
bool fire (const ui_event event, widget &target, void *)
 Fires an event which takes notification parameters. More...
 
bool fire (const ui_event event, widget &target, message &msg)
 Fires an event which takes message parameters. More...
 
bool fire (const ui_event event, widget &target, const SDL_Event &sdlevent)
 Fires an event that's a raw SDL event. More...
 
bool fire (const ui_event event, widget &target, const std::string &text, int32_t start, int32_t len)
 Fires an event which takes text input parameters. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event, E >::value > 
connect_signal (const signal_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_event. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event, E >::value > 
disconnect_signal (const signal_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_event. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_mouse, E >::value > 
connect_signal (const signal_mouse_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_event_mouse. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_mouse, E >::value > 
disconnect_signal (const signal_mouse_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_event_mouse. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_keyboard, E >
::value > 
connect_signal (const signal_keyboard_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_event_keyboard. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_keyboard, E >
::value > 
disconnect_signal (const signal_keyboard_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_event_keyboard. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_touch, E >::value > 
connect_signal (const signal_touch_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_event_touch. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_touch, E >::value > 
disconnect_signal (const signal_touch_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_event_touch. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_notification, E >
::value > 
connect_signal (const signal_notification_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_event_notification. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_notification, E >
::value > 
disconnect_signal (const signal_notification_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_event_notification. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_message, E >
::value > 
connect_signal (const signal_message_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_event_message. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_message, E >
::value > 
disconnect_signal (const signal_message_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_event_message. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_raw_event, E >
::value > 
connect_signal (const signal_raw_event_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_raw_event. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_raw_event, E >
::value > 
disconnect_signal (const signal_raw_event_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_raw_event. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_text_input, E >
::value > 
connect_signal (const signal_text_input_function &signal, const queue_position position=back_child)
 Connect a signal for callback in set_text_input. More...
 
template<ui_event E>
utils::enable_if_t< has_key
< set_event_text_input, E >
::value > 
disconnect_signal (const signal_text_input_function &signal, const queue_position position=back_child)
 Disconnect a signal for callback in set_text_input. More...
 
void capture_mouse ()
 Captures the mouse. More...
 
void release_mouse ()
 Releases the mouse capture. More...
 
void set_mouse_behavior (const mouse_behavior mouse_behavior)
 
mouse_behavior get_mouse_behavior () const
 
void set_want_keyboard_input (const bool want_keyboard_input)
 
bool get_want_keyboard_input () const
 
void register_hotkey (const hotkey::HOTKEY_COMMAND id, const hotkey_function &function)
 Registers a hotkey. More...
 
bool execute_hotkey (const hotkey::HOTKEY_COMMAND id)
 Executes a hotkey. More...
 
- Public Member Functions inherited from cursor::setter
 setter (CURSOR_TYPE type)
 
 ~setter ()
 

Static Public Member Functions

static void update_screen_size ()
 Update the size of the screen variables in settings. More...
 
static windowwindow_instance (const unsigned handle)
 Returns the instance of a window. More...
 
static retval get_retval_by_id (const std::string &id)
 Gets the retval for the default buttons. More...
 

Private Member Functions

void layout ()
 Layouts the window. More...
 
void layout_linked_widgets ()
 Layouts the linked widgets. More...
 
bool click_dismiss (const int mouse_button_mask)
 Handles a mouse click event for dismissing the dialog. More...
 
virtual const std::string & get_control_type () const override
 Inherited from styled_widget, implemented by REGISTER_WIDGET. More...
 
void redraw_windows_on_top () const
 Schedules windows on top of us (if any) to redraw. More...
 
void finalize (const std::shared_ptr< builder_grid > &content_grid)
 Finishes the initialization of the grid. More...
 
void generate_dot_file (const std::string &, const unsigned)
 
void signal_handler_sdl_video_resize (const event::ui_event event, bool &handled, const point &new_size)
 
void signal_handler_click_dismiss (const event::ui_event event, bool &handled, bool &halt, const int mouse_button_mask)
 The handler for the click dismiss mouse 'event'. More...
 
void signal_handler_sdl_key_down (const event::ui_event event, bool &handled, const SDL_Keycode key, const SDL_Keymod mod, bool handle_tab)
 
void signal_handler_message_show_tooltip (const event::ui_event event, bool &handled, event::message &message)
 
void signal_handler_message_show_helptip (const event::ui_event event, bool &handled, event::message &message)
 
void signal_handler_request_placement (const event::ui_event event, bool &handled)
 
void signal_handler_close_window ()
 

Private Attributes

CVideovideo_
 Needed so we can change what's drawn on the screen. More...
 
status status_
 The status of the window. More...
 
show_mode show_mode_
 The mode in which the window is shown. More...
 
int retval_
 
dialogs::modal_dialogowner_
 The dialog that owns the window. More...
 
bool need_layout_
 When set the form needs a full layout redraw cycle. More...
 
wfl::map_formula_callable variables_
 The variables of the canvas. More...
 
bool invalidate_layout_blocked_
 Is invalidate_layout blocked, see invalidate_layout_blocker. More...
 
bool suspend_drawing_
 Avoid drawing the window. More...
 
bool restore_
 Whether the window should undraw the window using restorer_. More...
 
bool is_toplevel_
 Whether the window has other windows behind it. More...
 
surface restorer_
 When the window closes this surface is used to undraw the window. More...
 
const bool automatic_placement_
 Do we wish to place the widget automatically? More...
 
const unsigned horizontal_placement_
 Sets the horizontal placement. More...
 
const unsigned vertical_placement_
 Sets the vertical placement. More...
 
unsigned maximum_width_
 The maximum width if automatic_placement_ is true. More...
 
unsigned maximum_height_
 The maximum height if automatic_placement_ is true. More...
 
typed_formula< unsigned > x_
 The formula to calculate the x value of the dialog. More...
 
typed_formula< unsigned > y_
 The formula to calculate the y value of the dialog. More...
 
typed_formula< unsigned > w_
 The formula to calculate the width of the dialog. More...
 
typed_formula< unsigned > h_
 The formula to calculate the height of the dialog. More...
 
typed_formula< bool > reevaluate_best_size_
 The formula to determine whether the size is good. More...
 
wfl::function_symbol_table functions_
 The formula definitions available for the calculation formulas. More...
 
builder_window::window_resolution::tooltip_info tooltip_
 The settings for the tooltip. More...
 
builder_window::window_resolution::tooltip_info helptip_
 The settings for the helptip. More...
 
bool click_dismiss_
 Do we want to have easy close behavior? More...
 
bool enter_disabled_
 Disable the enter key see our setter for more info. More...
 
bool escape_disabled_
 Disable the escape key see our setter for more info. More...
 
std::map< std::string,
linked_size
linked_size_
 List of the widgets, whose size are linked together. More...
 
std::vector< widget * > tab_order
 List of widgets in the tabbing order. More...
 
int mouse_button_state_
 The state of the mouse button. More...
 
std::vector< std::vector
< widget * > > 
dirty_list_
 The list with dirty items in the window. More...
 
unsigned int consecutive_changed_frames_ = 0u
 In how many consecutive frames the window has changed. More...
 
std::unique_ptr
< event::distributor
event_distributor_
 
std::function< bool(window &)> exit_hook_
 
std::function< void()> callback_next_draw_
 

Friends

class debug_layout_graph
 
struct window_implementation
 
class invalidate_layout_blocker
 
class pane
 
windowbuild (const builder_window::window_resolution *)
 Builds a window. More...
 

Additional Inherited Members

- Protected Member Functions inherited from gui2::container_base
virtual point calculate_best_size () const override
 See widget::calculate_best_size. More...
 
virtual void layout_children () override
 See widget::layout_children. More...
 
virtual void child_populate_dirty_list (window &caller, const std::vector< widget * > &call_stack) override
 See widget::child_populate_dirty_list. More...
 
- Protected Member Functions inherited from gui2::styled_widget
resolution_definition_ptr config ()
 
resolution_definition_const_ptr config () const
 
template<typename T >
std::shared_ptr< const
typename T::resolution > 
cast_config_to () const
 Casts the current resolution definition config to the respective type of a derived widget. More...
 
void set_config (resolution_definition_ptr config)
 
virtual void update_canvas ()
 Updates the canvas(ses). More...
 
int get_text_maximum_width () const
 Returns the maximum width available for the text. More...
 
int get_text_maximum_height () const
 Returns the maximum height available for the text. More...
 
std::string get_label_token (const point &position, const char *delimiters=" \n\r\t") const
 Exposes font::pango_text::get_token, for the text label of this styled_widget. More...
 
std::string get_label_link (const point &position) const
 
- Protected Member Functions inherited from gui2::widget
void set_layout_size (const point &size)
 
const pointlayout_size () const
 
void clear_layout_size ()
 Throws away layout_size_. More...
 

Detailed Description

base class of top level items, the only item which needs to store the final canvases to draw on

Definition at line 62 of file window.hpp.

Member Enumeration Documentation

Default return values.

These values are named return values and most are assigned to a widget automatically when using a certain id for that widget. The automatic return values are always a negative number.

Note this might be moved somewhere else since it will force people to include the button, while it should be and implementation detail for most callers.

Enumerator
NONE 

Dialog is closed with no return value, should be rare but eg a message popup can do it.

OK 

Dialog is closed with ok button.

CANCEL 

Dialog is closed with the cancel button.

AUTO_CLOSE 

The dialog is closed automatically since it's timeout has been triggered.

Definition at line 105 of file window.hpp.

Enumerator
none 
modal 
modeless 
tooltip 

Definition at line 472 of file window.hpp.

The status of the window.

Enumerator
NEW 

The window is new and not yet shown.

SHOWING 

The window is being shown.

REQUEST_CLOSE 

The window has been requested to be closed but still needs to evaluate the request.

CLOSED 

The window has been closed.

Definition at line 205 of file window.hpp.

Constructor & Destructor Documentation

gui2::window::window ( const builder_window::window_resolution definition)
explicit

< Needs to be initialized in show.

Definition at line 276 of file window.cpp.

References gui2::builder_window::window_resolution::definition.

gui2::window::~window ( )

Member Function Documentation

void gui2::window::add_linked_widget ( const std::string &  id,
widget widget 
)

Adds a widget to a linked size group.

The group needs to exist, which is done by calling init_linked_size_group. A widget may only be member of one group.

Todo:
Untested if a new widget is added after showing the widgets.
Parameters
idThe id of the group.
widgetThe widget to add to the group.

Definition at line 869 of file window.cpp.

References ERR_GUI, gui2::event::find(), has_linked_size_group(), gui2::widget::id(), and linked_size_.

Referenced by gui2::widget::layout_initialize().

void gui2::window::add_to_dirty_list ( const std::vector< widget * > &  call_stack)
inline

Adds an item to the dirty_list_.

Parameters
call_stackThe list of widgets traversed to get to the dirty widget.

Definition at line 199 of file window.hpp.

References dirty_list_.

Referenced by gui2::widget::populate_dirty_list().

void gui2::window::add_to_keyboard_chain ( widget widget)

Adds the widget to the keyboard chain.

Todo:
rename to keyboard_add_to_chain.
Parameters
widgetThe widget to add to the chain. The widget should be valid widget, which hasn't been added to the chain yet.

Definition at line 1294 of file window.cpp.

References event_distributor_.

Referenced by gui2::addon_list::add_list_to_keyboard_chain(), and gui2::build().

void gui2::window::add_to_tab_order ( widget widget,
int  at = -1 
)

Add the widget to the tabbing order.

Parameters
widgetThe widget to be added to the tabbing order
atA hint for where to place the widget in the tabbing order

Definition at line 1306 of file window.cpp.

References schema_validation::at(), event_distributor_, gui2::event::find(), keyboard_capture(), tab_order, and gui2::widget::widget().

Referenced by gui2::dialogs::editor_edit_side::pre_show(), gui2::dialogs::editor_edit_scenario::pre_show(), gui2::dialogs::custom_tod::pre_show(), and gui2::dialogs::editor_edit_label::pre_show().

bool gui2::window::click_dismiss ( const int  mouse_button_mask)
private

Handles a mouse click event for dismissing the dialog.

Parameters
mouse_button_maskThe SDL_BUTTON mask for the button used to dismiss the click. If the caller is from the keyboard code the value should be 0.
Returns
Whether the event should be considered as handled.

Definition at line 1131 of file window.cpp.

References does_click_dismiss(), mouse_button_state_, OK, and set_retval().

Referenced by set_click_dismiss(), signal_handler_click_dismiss(), and signal_handler_sdl_key_down().

void gui2::window::close ( )
inline
dialogs::modal_dialog* gui2::window::dialog ( )
inline

Inherited from widget.

Definition at line 270 of file window.hpp.

References owner_.

Referenced by gui2::widget::dialog().

bool gui2::window::does_click_dismiss ( ) const
inline

Does the window close easily?

The behavior can change at run-time, but that might cause oddities with the easy close button (when one is needed).

Returns
Whether or not the window closes easily.

Definition at line 312 of file window.hpp.

References click_dismiss_, and gui2::container_base::disable_click_dismiss().

Referenced by click_dismiss().

void gui2::window::draw ( )

Draws the window.

This routine draws the window if needed, it's called from the event handler. This is done by a drawing event. When a window is shown it manages an SDL timer which fires a drawing event every X milliseconds, that event calls this routine. Don't call it manually.

Definition at line 630 of file window.cpp.

References wfl::call_stack, callback_next_draw_, consecutive_changed_frames_, dirty_list_, font::draw_floating_labels(), gui2::widget::get_rectangle(), get_surface_portion(), CVideo::getSurface(), gui2::widget::id_, is_toplevel_, layout(), gui2::container_base::layout_children(), need_layout_, gui2::new_widgets, gui2::widget::none, gui2::widget::populate_dirty_list(), redraw_windows_on_top(), restore_, restorer_, CVideo::screen_area(), sdl_blit(), suspend_drawing_, video(), video_, and gui2::widget::visible.

Referenced by show().

void gui2::window::finalize ( const std::shared_ptr< builder_grid > &  content_grid)
private

Finishes the initialization of the grid.

Parameters
content_gridThe new contents for the content grid.

Definition at line 1195 of file window.cpp.

References gui2::container_base::get_grid().

Referenced by gui2::build().

widget * gui2::window::find ( const std::string &  id,
const bool  must_be_active 
)
overridevirtual
const widget * gui2::window::find ( const std::string &  id,
const bool  must_be_active 
) const
overridevirtual

See widget::find.

Reimplemented from gui2::container_base.

Definition at line 848 of file window.cpp.

References gui2::container_base::find().

widget * gui2::window::find_at ( const point coordinate,
const bool  must_be_active 
)
overridevirtual

See widget::find_at.

Reimplemented from gui2::container_base.

Definition at line 832 of file window.cpp.

References gui2::container_base::find_at().

const widget * gui2::window::find_at ( const point coordinate,
const bool  must_be_active 
) const
overridevirtual

See widget::find_at.

Reimplemented from gui2::container_base.

Definition at line 837 of file window.cpp.

References gui2::container_base::find_at().

void gui2::window::generate_dot_file ( const std::string &  ,
const unsigned   
)
inlineprivate

Definition at line 713 of file window.hpp.

Referenced by layout(), show(), show_non_modal(), and show_tooltip().

virtual const std::string& gui2::window::get_control_type ( ) const
overrideprivatevirtual

Inherited from styled_widget, implemented by REGISTER_WIDGET.

Reimplemented from gui2::panel.

const event::distributor& gui2::window::get_distributor ( ) const
inline

Gets a reference to the window's distributor to allow some state peeking.

Definition at line 722 of file window.hpp.

References event_distributor_.

point gui2::window::get_linked_size ( const std::string &  linked_group_id) const
inline

Definition at line 434 of file window.hpp.

References linked_size_.

Referenced by gui2::widget::get_best_size().

bool gui2::window::get_need_layout ( ) const
inline

Definition at line 424 of file window.hpp.

References need_layout_.

Referenced by gui2::scrollbar_container::content_resize_request().

int gui2::window::get_retval ( )
inline
window::retval gui2::window::get_retval_by_id ( const std::string &  id)
static

Gets the retval for the default buttons.

Definition at line 461 of file window.cpp.

References CANCEL, NONE, and OK.

Referenced by gui2::implementation::get_retval().

bool gui2::window::has_linked_size_group ( const std::string &  id)

Is the linked size group defined for this window?

Parameters
idThe id of the group.
Returns
True if defined, false otherwise.

Definition at line 864 of file window.cpp.

References linked_size_.

Referenced by add_linked_widget(), gui2::build(), init_linked_size_group(), and remove_linked_widget().

void gui2::window::init_linked_size_group ( const std::string &  id,
const bool  fixed_width,
const bool  fixed_height 
)

Initializes a linked size group.

Note at least one of fixed_width or fixed_height must be true.

Parameters
idThe id of the group.
fixed_widthDoes the group have a fixed width?
fixed_heightDoes the group have a fixed height?

Definition at line 854 of file window.cpp.

References has_linked_size_group(), gui2::widget::id(), and linked_size_.

Referenced by gui2::build(), and gui2::container_base::inject_linked_groups().

void gui2::window::invalidate_layout ( )

Updates the size of the window.

If the window has automatic placement set this function recalculates the window. To be used after creation and after modification or items which can have different sizes eg listboxes.

Definition at line 826 of file window.cpp.

References invalidate_layout_blocked_, and need_layout_.

Referenced by gui2::scrollbar_container::content_resize_height(), gui2::scrollbar_container::content_resize_width(), gui2::scrollbar_base::recalculate(), gui2::listbox::set_row_shown(), gui2::widget::set_visible(), show(), show_non_modal(), gui2::dialogs::mp_lobby::show_preferences_button_callback(), show_tooltip(), signal_handler_request_placement(), and signal_handler_sdl_video_resize().

bool gui2::window::invalidate_layout_blocked ( ) const
inline

Is invalidate_layout blocked, see invalidate_layout_blocker.

Definition at line 247 of file window.hpp.

References invalidate_layout_blocked_.

void gui2::window::keyboard_capture ( widget widget)
void gui2::window::layout ( )
private
void gui2::window::layout_linked_widgets ( )
private
show_mode gui2::window::mode ( ) const
inline

Returns the dialog mode for this window.

Definition at line 728 of file window.hpp.

References show_mode_.

void gui2::window::mouse_capture ( const bool  capture = true)
void gui2::window::redraw_windows_on_top ( ) const
private

Schedules windows on top of us (if any) to redraw.

Definition at line 1184 of file window.cpp.

References gui2::event::find(), gui2::event::get_all_dispatchers(), next, and gui2::widget::set_is_dirty().

Referenced by draw().

void gui2::window::remove_from_keyboard_chain ( widget widget)

Remove the widget from the keyboard chain.

Todo:
rename to keyboard_remove_from_chain.
Parameters
widgetThe widget to be removed from the chain.

Definition at line 1300 of file window.cpp.

References event_distributor_.

void gui2::window::remove_linked_widget ( const std::string &  id,
const widget widget 
)

Removes a widget from a linked size group.

The group needs to exist, which is done by calling init_linked_size_group. If the widget is no member of the group the function does nothing.

Parameters
idThe id of the group.
widgetThe widget to remove from the group.

Definition at line 883 of file window.cpp.

References gui2::event::find(), has_linked_size_group(), gui2::widget::id(), and linked_size_.

Referenced by gui2::widget::~widget().

void gui2::window::set_callback_next_draw ( std::function< void()>  func)
inline

Sets a callback that will be called after the window is drawn next time.

The callback is automatically removed after calling it once. Useful if you need to do something after the window is drawn for the first time and it's timing-sensitive (i.e. pre_show is too early).

Definition at line 467 of file window.hpp.

References callback_next_draw_.

Referenced by gui2::dialogs::end_credits::pre_show(), and gui2::dialogs::lua_interpreter::view::update_contents().

void gui2::window::set_click_dismiss ( const bool  click_dismiss)
inline

Definition at line 419 of file window.hpp.

References click_dismiss(), and click_dismiss_.

Referenced by gui2::build(), and gui2::dialogs::title_screen::pre_show().

void gui2::window::set_enter_disabled ( const bool  enter_disabled)
inline

Disable the enter key.

This is added to block dialogs from being closed automatically.

Todo:
this function should be merged with the hotkey support once that has been added.

Definition at line 325 of file window.hpp.

References enter_disabled_.

Referenced by gui2::dialogs::outro::pre_show(), gui2::dialogs::mp_staging::pre_show(), gui2::dialogs::mp_join_game::pre_show(), gui2::dialogs::story_viewer::pre_show(), and gui2::dialogs::title_screen::pre_show().

void gui2::window::set_escape_disabled ( const bool  escape_disabled)
inline

Disable the escape key.

This is added to block dialogs from being closed automatically.

Todo:
this function should be merged with the hotkey support once that has been added.

Definition at line 338 of file window.hpp.

References escape_disabled_.

Referenced by gui2::dialogs::faction_select::pre_show(), gui2::dialogs::addon_manager::pre_show(), and gui2::dialogs::title_screen::pre_show().

void gui2::window::set_exit_hook ( std::function< bool(window &)>  func)
inline

Sets the window's exit hook.

A window will only close if this function returns true.

Parameters
funcA function taking a window reference and returing a boolean result.

Definition at line 451 of file window.hpp.

References exit_hook_.

void gui2::window::set_exit_hook_ok_only ( std::function< bool(window &)>  func)
inline

Definition at line 456 of file window.hpp.

References exit_hook_, OK, and w.

void gui2::window::set_owner ( dialogs::modal_dialog owner)
inline

Definition at line 414 of file window.hpp.

References owner_.

void gui2::window::set_retval ( const int  retval,
const bool  close_window = true 
)
inline
void gui2::window::set_variable ( const std::string &  key,
const wfl::variant value 
)
inline
int gui2::window::show ( const bool  restore = true,
const unsigned  auto_close_timeout = 0 
)

Shows the window.

Todo:
Clean up the show functions.

the show functions are a bit messy and can use a proper cleanup.

Parameters
restoreRestore the screenarea the window was on after closing it?
auto_close_timeoutThe time in ms after which the window will automatically close, if 0 it doesn't close.
Note
the timeout is a minimum time and there's no guarantee about how fast it closes after the minimum.
Returns
The close code of the window, predefined values are listed in retval.
Todo:
Clean up the code duplication.

In the future the restoring shouldn't be needed so the duplication doesn't hurt too much but keep this todo as a reminder.

Definition at line 521 of file window.cpp.

References CLOSE_WINDOW_EVENT, CLOSED, draw(), event_distributor_, exit_hook_, generate_dot_file(), hotkey::get_id(), gui2::widget::get_rectangle(), CVideo::getSurface(), invalidate_layout(), gui2::log_gui_draw, log_scope2, LOG_SCOPE_HEADER, modal, mouse_button_state_, NEW, events::pump(), gui2::dialogs::tip::remove(), REQUEST_CLOSE, restore_, restorer_, retval_, sdl_blit(), show_mode_, SHOWING, status_, suspend_drawing_, font::undraw_floating_labels(), and video_.

void gui2::window::show_non_modal ( )

Shows the window non modal.

A tooltip can be interacted with unlike the tooltip.

Todo:
implement auto_close_timeout.

auto_close_timeout The time in ms after which the window will automatically close, if 0 it doesn't close.

Note
the timeout is a minimum time and there's no guarantee about how fast it closes after the minimum.

Definition at line 496 of file window.cpp.

References generate_dot_file(), gui2::event::dispatcher::hit, invalidate_layout(), gui2::log_gui_draw, log_scope2, modeless, NEW, events::pump(), gui2::event::dispatcher::set_mouse_behavior(), show_mode_, status_, and suspend_drawing_.

void gui2::window::show_tooltip ( )

Shows the window as a tooltip.

A tooltip can't be interacted with and is just shown.

Todo:
implement auto_close_timeout.

auto_close_timeout The time in ms after which the window will automatically close, if 0 it doesn't close.

Note
the timeout is a minimum time and there's no guarantee about how fast it closes after the minimum.

Definition at line 474 of file window.cpp.

References generate_dot_file(), invalidate_layout(), gui2::log_gui_draw, log_scope2, NEW, gui2::event::dispatcher::none, gui2::event::dispatcher::set_mouse_behavior(), gui2::event::dispatcher::set_want_keyboard_input(), show_mode_, status_, suspend_drawing_, and gui2::styled_widget::tooltip().

void gui2::window::signal_handler_click_dismiss ( const event::ui_event  event,
bool &  handled,
bool &  halt,
const int  mouse_button_mask 
)
private

The handler for the click dismiss mouse 'event'.

Parameters
eventSee event::dispatcher::fire.
handledSee event::dispatcher::fire.
haltSee event::dispatcher::fire.
mouse_button_maskForwared to click_dismiss.

Definition at line 1337 of file window.cpp.

References click_dismiss(), DBG_GUI_E, and LOG_HEADER.

void gui2::window::signal_handler_close_window ( )
private

Definition at line 1451 of file window.cpp.

References AUTO_CLOSE, and set_retval().

void gui2::window::signal_handler_message_show_helptip ( const event::ui_event  event,
bool &  handled,
event::message message 
)
private
void gui2::window::signal_handler_message_show_tooltip ( const event::ui_event  event,
bool &  handled,
event::message message 
)
private
void gui2::window::signal_handler_request_placement ( const event::ui_event  event,
bool &  handled 
)
private

Definition at line 1441 of file window.cpp.

References DBG_GUI_E, invalidate_layout(), and LOG_HEADER.

void gui2::window::signal_handler_sdl_key_down ( const event::ui_event  event,
bool &  handled,
const SDL_Keycode  key,
const SDL_Keymod  mod,
bool  handle_tab 
)
private
void gui2::window::signal_handler_sdl_video_resize ( const event::ui_event  event,
bool &  handled,
const point new_size 
)
private
void gui2::window::undraw ( )
void gui2::window::update_screen_size ( )
static

Update the size of the screen variables in settings.

Before a window gets build the screen sizes need to be updated. This function does that. It's only done when no other window is active, if another window is active it already updates the sizes with it's resize event.

Definition at line 430 of file window.cpp.

References gui2::settings::gamemap_height, gui2::settings::gamemap_width, gui2::settings::gamemap_x_offset, CVideo::get_singleton(), display::get_singleton(), display::map_outside_area(), CVideo::screen_area(), gui2::settings::screen_height, and gui2::settings::screen_width.

Referenced by gui2::get_window_builder(), and gui2::load_settings().

CVideo& gui2::window::video ( )
inline
window * gui2::window::window_instance ( const unsigned  handle)
static

Returns the instance of a window.

Parameters
handleThe instance id of the window.
Returns
The window or nullptr.

Definition at line 425 of file window.cpp.

References gui2::widget::get_window().

Referenced by gui2::event::sdl_event_handler::close_window().

Friends And Related Function Documentation

window* build ( const builder_window::window_resolution )
friend

Builds a window.

Definition at line 53 of file window_builder.cpp.

friend class debug_layout_graph
friend

Definition at line 64 of file window.hpp.

friend class invalidate_layout_blocker
friend

Definition at line 67 of file window.hpp.

friend class pane
friend

Definition at line 68 of file window.hpp.

friend struct window_implementation
friend

Definition at line 66 of file window.hpp.

Member Data Documentation

const bool gui2::window::automatic_placement_
private

Do we wish to place the widget automatically?

Definition at line 526 of file window.hpp.

Referenced by layout().

std::function<void()> gui2::window::callback_next_draw_
private

Definition at line 804 of file window.hpp.

Referenced by draw(), and set_callback_next_draw().

bool gui2::window::click_dismiss_
private

Do we want to have easy close behavior?

Easy closing means that whenever a mouse click is done the dialog will be closed. The widgets in the window may override this behavior by registering themselves as blockers. This is tested by the function disable_click_dismiss().

The handling of easy close is done in the window, in order to do so a window either needs a click_dismiss or an ok button. Both will be hidden when not needed and when needed first the ok is tried and then the click_dismiss button. this allows adding a click_dismiss button to the window definition and use the ok from the window instance.

Todo:
After testing the click dismiss feature it should be documented in the wiki.

Definition at line 591 of file window.hpp.

Referenced by does_click_dismiss(), layout(), and set_click_dismiss().

unsigned int gui2::window::consecutive_changed_frames_ = 0u
private

In how many consecutive frames the window has changed.

This is used to detect the situation where the title screen changes in every frame, forcing all other windows to redraw everything all the time.

Definition at line 692 of file window.hpp.

Referenced by draw().

std::vector<std::vector<widget*> > gui2::window::dirty_list_
private

The list with dirty items in the window.

When drawing only the widgets that are dirty are updated. The draw() function has more information about the dirty_list_.

Definition at line 685 of file window.hpp.

Referenced by add_to_dirty_list(), and draw().

bool gui2::window::enter_disabled_
private

Disable the enter key see our setter for more info.

Definition at line 594 of file window.hpp.

Referenced by set_enter_disabled(), and signal_handler_sdl_key_down().

bool gui2::window::escape_disabled_
private

Disable the escape key see our setter for more info.

Definition at line 597 of file window.hpp.

Referenced by set_escape_disabled(), and signal_handler_sdl_key_down().

std::unique_ptr<event::distributor> gui2::window::event_distributor_
private
std::function<bool(window&)> gui2::window::exit_hook_
private

Definition at line 803 of file window.hpp.

Referenced by set_exit_hook(), set_exit_hook_ok_only(), and show().

wfl::function_symbol_table gui2::window::functions_
private

The formula definitions available for the calculation formulas.

Definition at line 566 of file window.hpp.

Referenced by layout().

typed_formula<unsigned> gui2::window::h_
private

The formula to calculate the height of the dialog.

Definition at line 560 of file window.hpp.

Referenced by layout().

builder_window::window_resolution::tooltip_info gui2::window::helptip_
private

The settings for the helptip.

Definition at line 572 of file window.hpp.

Referenced by signal_handler_message_show_helptip().

const unsigned gui2::window::horizontal_placement_
private

Sets the horizontal placement.

Only used if automatic_placement_ is true. The value should be a grid placement flag.

Definition at line 534 of file window.hpp.

Referenced by layout().

bool gui2::window::invalidate_layout_blocked_
private
bool gui2::window::is_toplevel_
private

Whether the window has other windows behind it.

Definition at line 520 of file window.hpp.

Referenced by draw().

std::map<std::string, linked_size> gui2::window::linked_size_
private

List of the widgets, whose size are linked together.

Definition at line 624 of file window.hpp.

Referenced by add_linked_widget(), get_linked_size(), has_linked_size_group(), init_linked_size_group(), layout_linked_widgets(), and remove_linked_widget().

unsigned gui2::window::maximum_height_
private

The maximum height if automatic_placement_ is true.

Definition at line 548 of file window.hpp.

Referenced by layout().

unsigned gui2::window::maximum_width_
private

The maximum width if automatic_placement_ is true.

Definition at line 545 of file window.hpp.

Referenced by layout().

int gui2::window::mouse_button_state_
private

The state of the mouse button.

When click dismissing a dialog in the past the DOWN event was used. This lead to a bug [1]. The obvious change was to switch to the UP event, this lead to another bug; the dialog was directly dismissed. Since the game map code uses the UP and DOWN event to select a unit there is no simple solution.

Upon entry this value stores the mouse button state at entry. When a button is DOWN and goes UP that button does not trigger a dismissal of the dialog, instead that button's down state is removed from this variable. Therefore the next UP event does dismiss the dialog.

[1] https://gna.org/bugs/index.php?18970

Definition at line 674 of file window.hpp.

Referenced by click_dismiss(), and show().

bool gui2::window::need_layout_
private

When set the form needs a full layout redraw cycle.

This happens when either a widget changes it's size or visibility or the window is resized.

Definition at line 505 of file window.hpp.

Referenced by draw(), get_need_layout(), invalidate_layout(), and layout().

dialogs::modal_dialog* gui2::window::owner_
private

The dialog that owns the window.

Definition at line 497 of file window.hpp.

Referenced by dialog(), and set_owner().

typed_formula<bool> gui2::window::reevaluate_best_size_
private

The formula to determine whether the size is good.

Definition at line 563 of file window.hpp.

Referenced by layout().

bool gui2::window::restore_
private

Whether the window should undraw the window using restorer_.

Definition at line 517 of file window.hpp.

Referenced by draw(), show(), and undraw().

surface gui2::window::restorer_
private

When the window closes this surface is used to undraw the window.

Definition at line 523 of file window.hpp.

Referenced by draw(), show(), and undraw().

int gui2::window::retval_
private

Definition at line 494 of file window.hpp.

Referenced by get_retval(), set_retval(), and show().

show_mode gui2::window::show_mode_
private

The mode in which the window is shown.

This is used to determine whether or not to remove the tip.

Definition at line 491 of file window.hpp.

Referenced by mode(), show(), show_non_modal(), show_tooltip(), and ~window().

status gui2::window::status_
private

The status of the window.

Definition at line 484 of file window.hpp.

Referenced by close(), show(), show_non_modal(), and show_tooltip().

bool gui2::window::suspend_drawing_
private

Avoid drawing the window.

Definition at line 514 of file window.hpp.

Referenced by draw(), show(), show_non_modal(), and show_tooltip().

std::vector<widget*> gui2::window::tab_order
private

List of widgets in the tabbing order.

Definition at line 627 of file window.hpp.

Referenced by add_to_tab_order(), and signal_handler_sdl_key_down().

builder_window::window_resolution::tooltip_info gui2::window::tooltip_
private

The settings for the tooltip.

Definition at line 569 of file window.hpp.

Referenced by signal_handler_message_show_tooltip().

wfl::map_formula_callable gui2::window::variables_
private

The variables of the canvas.

Definition at line 508 of file window.hpp.

Referenced by layout(), and set_variable().

const unsigned gui2::window::vertical_placement_
private

Sets the vertical placement.

Only used if automatic_placement_ is true. The value should be a grid placement flag.

Definition at line 542 of file window.hpp.

Referenced by layout().

CVideo& gui2::window::video_
private

Needed so we can change what's drawn on the screen.

Definition at line 481 of file window.hpp.

Referenced by draw(), show(), undraw(), and video().

typed_formula<unsigned> gui2::window::w_
private

The formula to calculate the width of the dialog.

Definition at line 557 of file window.hpp.

Referenced by layout().

typed_formula<unsigned> gui2::window::x_
private

The formula to calculate the x value of the dialog.

Definition at line 551 of file window.hpp.

Referenced by layout().

typed_formula<unsigned> gui2::window::y_
private

The formula to calculate the y value of the dialog.

Definition at line 554 of file window.hpp.

Referenced by layout().


The documentation for this class was generated from the following files: