wex  v20.04.0
Public Member Functions | List of all members
wex::window_data Class Reference

Offers window data to be used by windows or dialogs. More...

#include <wex/window-data.h>

Public Member Functions

 window_data ()
 Default constructor.
 
const auto & button () const
 Returns button flags.
 
window_databutton (long button)
 Sets buttons flags. More...
 
const auto & id () const
 Returns window id.
 
window_dataid (wxWindowID id)
 Sets window id.
 
const auto & name () const
 Returns name.

 
window_dataname (const std::string &name)
 Sets window name.
 
auto parent () const
 Returns parent.
 
window_dataparent (wxWindow *parent)
 Sets parent.
 
const auto & pos () const
 Returns window pos.
 
window_datapos (const wxPoint &point)
 Sets window pos.
 
const auto & size () const
 Returns window size.
 
window_datasize (const wxSize &size)
 Sets window size.
 
const auto & style () const
 Returns window style.
 
window_datastyle (long style)
 Sets window style. More...
 
const auto & title () const
 Returns window title.
 
window_datatitle (const std::string &title)
 Sets window title.
 

Detailed Description

Offers window data to be used by windows or dialogs.

Member Function Documentation

◆ button()

window_data& wex::window_data::button ( long  button)

Sets buttons flags.

This is a bit list of the following flags:

  • wxOK
  • wxYES
  • wxAPPLY
  • wxSAVE
  • wxCLOSE
  • wxNO
  • wxCANCEL
  • wxHELP
  • wxNO_DEFAULT The default buttons are wxOK and wxCANCEL

◆ style()

window_data& wex::window_data::style ( long  style)

Sets window style.

The style bits available depend on the context. Therefore default style is DATA_NUMBER_NOT_SET,