wex v24.04.0
Public Member Functions | Protected Member Functions | List of all members
wex::dialog Class Reference

Offers a general dialog, with a separated button sizer at the bottom. More...

#include <wex/ui/dialog.h>

Inheritance diagram for wex::dialog:
Inheritance graph
[legend]

Public Member Functions

 dialog (const data::window &data=data::window())
 Default constructor.
 
const auto & data () const
 Returns the window data.
 

Protected Member Functions

wxSizerItem * add_user_sizer (wxWindow *window, const wxSizerFlags &flags=wxSizerFlags().Expand())
 Adds to the user sizer using the sizer flags.
 
wxSizerItem * add_user_sizer (wxSizer *sizer, const wxSizerFlags &flags=wxSizerFlags().Expand())
 Adds to the user sizer using the sizer flags.
 
void layout_sizers (bool add_separator_line=true)
 layouts the sizers.
 

Detailed Description

Offers a general dialog, with a separated button sizer at the bottom.

Derived dialogs can use the user sizer for laying out their controls.

Member Function Documentation

◆ layout_sizers()

void wex::dialog::layout_sizers ( bool add_separator_line = true)
protected

layouts the sizers.

Should be invoked after adding to sizers. If you specified button flags, they will be put at the bottom of the top sizer, and a separator line will be added as specified.