wex v24.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/factory/window.h>

Public Member Functions

 window ()
 Default constructor.
 
windowallow_move_path_extension (const std::string &rhs)
 Sets move path extension.
 
const auto & allow_move_path_extension () const
 Returns the extension for which it is allowed to move path extension in a file dialog.
 
const auto & button () const
 Returns button flags.
 
windowbutton (long button)
 Sets buttons flags.
 
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.
 
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.
 

Detailed Description

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

Member Function Documentation

◆ allow_move_path_extension()

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

Sets move path extension.

This is used in file_dialog, to move a matching path extension to front. Default extensions are not moved.

◆ 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