wex  v21.04.0
Public Member Functions | List of all members
wex::data::window Class Reference

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

#include <wex/window-data.h>

Public Member Functions

 window ()
 Default constructor.
 
const auto & button () const
 Returns button flags.
 
windowbutton (long button)
 Sets buttons flags. More...
 
const auto & id () const
 Returns window id.
 
windowid (wxWindowID id)
 Sets window id.
 
const auto & name () const
 Returns name.
 
windowname (const std::string &name)
 Sets window name.
 
auto parent () const
 Returns parent.
 
windowparent (wxWindow *parent)
 Sets parent.
 
const auto & pos () const
 Returns window pos.
 
windowpos (const wxPoint &point)
 Sets window pos.
 
const auto & size () const
 Returns window size.
 
windowsize (const wxSize &size)
 Sets window size.
 
const auto & style () const
 Returns window style.
 
windowstyle (long style)
 Sets window style. More...
 
const auto & title () const
 Returns window title.
 
windowtitle (const std::string &title)
 Sets window title.
 
const auto & wildcard () const
 Returns wildcard.
 
windowwildcard (const std::string &rhs)
 Sets wildcard. More...
 

Detailed Description

Offers window data to be used by windows or (file) dialogs.

Member Function Documentation

◆ button()

window& wex::data::window::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& wex::data::window::style ( long  style)

Sets window style.

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

◆ wildcard()

window& wex::data::window::wildcard ( const std::string &  rhs)

Sets wildcard.

if wildcard is default and file is initialized, the wildcard is taken from the file