Version: 3.1.0
wxBusyInfoFlags Class Reference

#include <wx/busyinfo.h>

Detailed Description

Parameters for wxBusyInfo.

This class exists only in order to make passing attributes to wxBusyInfo constructor easier and the code doing it more readable.

All methods of this class return the reference to the object on which they are called, making it possible to chain them together, e.g. typically you would just create a temporary wxBusyInfoFlags object and then call the methods corresponding to the attributes you want to set, before finally passing the result to wxBusyInfo constructor, e.g.:

(
.Parent(window)
.Icon(icon)
.Title("Some text")
.Text("Some more text")
);
Since
3.1.0

Public Member Functions

 wxBusyInfoFlags ()
 Default constructor initializes all attributes to default values. More...
 
wxBusyInfoFlagsParent (wxWindow *parent)
 Sets the parent for wxBusyInfo. More...
 
wxBusyInfoFlagsIcon (const wxIcon &icon)
 Sets the icon to show in wxBusyInfo. More...
 
wxBusyInfoFlagsTitle (const wxString &title)
 Sets the title, shown prominently in wxBusyInfo window. More...
 
wxBusyInfoFlagsText (const wxString &text)
 Sets the more detailed text, shown under the title, if any. More...
 
wxBusyInfoFlagsLabel (const wxString &label)
 Same as Text() but doesn't interpret the string as containing markup. More...
 
wxBusyInfoFlagsForeground (const wxColour &foreground)
 Sets the foreground colour of the title and text strings. More...
 
wxBusyInfoFlagsBackground (const wxColour &background)
 Sets the background colour of wxBusyInfo window. More...
 
wxBusyInfoFlagsTransparency (wxByte alpha)
 Sets the transparency of wxBusyInfo window. More...
 

Constructor & Destructor Documentation

wxBusyInfoFlags::wxBusyInfoFlags ( )

Default constructor initializes all attributes to default values.

Call the other methods to really fill in the object.

Member Function Documentation

wxBusyInfoFlags& wxBusyInfoFlags::Background ( const wxColour background)

Sets the background colour of wxBusyInfo window.

wxBusyInfoFlags& wxBusyInfoFlags::Foreground ( const wxColour foreground)

Sets the foreground colour of the title and text strings.

wxBusyInfoFlags& wxBusyInfoFlags::Icon ( const wxIcon icon)

Sets the icon to show in wxBusyInfo.

wxBusyInfoFlags& wxBusyInfoFlags::Label ( const wxString label)

Same as Text() but doesn't interpret the string as containing markup.

This method should be used if the text shown in wxBusyInfo comes from external source and so may contain characters having special meaning in simple markup, e.g. '<'.

wxBusyInfoFlags& wxBusyInfoFlags::Parent ( wxWindow parent)

Sets the parent for wxBusyInfo.

wxBusyInfoFlags& wxBusyInfoFlags::Text ( const wxString text)

Sets the more detailed text, shown under the title, if any.

The text string may contain markup as described in wxControl::SetLabelMarkup().

wxBusyInfoFlags& wxBusyInfoFlags::Title ( const wxString title)

Sets the title, shown prominently in wxBusyInfo window.

The title string may contain markup as described in wxControl::SetLabelMarkup().

wxBusyInfoFlags& wxBusyInfoFlags::Transparency ( wxByte  alpha)

Sets the transparency of wxBusyInfo window.

Parameters
alphaValue in wxALPHA_TRANSPARENT (0) to wxALPHA_OPAQUE (255) range.
See also
wxTopLevelWindow::SetTransparent()