Version: 3.2.5
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")
);
wxBusyInfoFlags & Icon(const wxIcon &icon)
Sets the icon to show in wxBusyInfo.
wxBusyInfoFlags()
Default constructor initializes all attributes to default values.
wxBusyInfoFlags & Background(const wxColour &background)
Sets the background colour of wxBusyInfo window.
wxBusyInfoFlags & Title(const wxString &title)
Sets the title, shown prominently in wxBusyInfo window.
wxBusyInfoFlags & Text(const wxString &text)
Sets the more detailed text, shown under the title, if any.
wxBusyInfoFlags & Foreground(const wxColour &foreground)
Sets the foreground colour of the title and text strings.
wxBusyInfoFlags & Parent(wxWindow *parent)
Sets the parent for wxBusyInfo.
This class makes it easy to tell your user that the program is temporarily busy.
Definition: busyinfo.h:86
A colour is an object representing a combination of Red, Green, and Blue (RGB) intensity values and a...
Definition: colour.h:69
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::wxBusyInfoFlags ( )

Default constructor initializes all attributes to default values.

Call the other methods to really fill in the object.

Member Function Documentation

◆ Background()

wxBusyInfoFlags& wxBusyInfoFlags::Background ( const wxColour background)

Sets the background colour of wxBusyInfo window.

◆ Foreground()

wxBusyInfoFlags& wxBusyInfoFlags::Foreground ( const wxColour foreground)

Sets the foreground colour of the title and text strings.

◆ Icon()

wxBusyInfoFlags& wxBusyInfoFlags::Icon ( const wxIcon icon)

Sets the icon to show in wxBusyInfo.

◆ Label()

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. '<'.

◆ Parent()

wxBusyInfoFlags& wxBusyInfoFlags::Parent ( wxWindow parent)

Sets the parent for wxBusyInfo.

◆ Text()

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().

◆ Title()

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().

◆ Transparency()

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()