Class: Wx::BusyInfoFlags
- Inherits:
-
Object
- Object
- Wx::BusyInfoFlags
- Defined in:
- lib/wx/doc/gen/busy_info.rb
Overview
This class is untracked and should not be derived from nor instances extended!
Parameters for BusyInfo.
This class exists only in order to make passing attributes to BusyInfo 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 BusyInfoFlags object and then call the methods corresponding to the attributes you want to set, before finally passing the result to BusyInfo constructor, e.g.:
Wx::BusyInfo.busy(
Wx::BusyInfoFlags.new
.parent(self)
.icon(Wx::ArtProvider.get_icon(Wx::ART_PRINT,Wx::ART_OTHER, [128, 128]))
.title("<b>Printing your document</b>")
.text("Please wait...")
.foreground(Wx::WHITE)
.background(Wx::BLACK)
.transparency(4*Wx::ALPHA_OPAQUE/5)) do |bi|
end
Instance Method Summary collapse
-
#background(background) ⇒ Wx::BusyInfoFlags
Sets the background colour of BusyInfo window.
-
#foreground(foreground) ⇒ Wx::BusyInfoFlags
Sets the foreground colour of the title and text strings.
-
#icon(icon) ⇒ Wx::BusyInfoFlags
Sets the icon to show in BusyInfo.
-
#initialize ⇒ Wx::BusyInfoFlags
constructor
Default constructor initializes all attributes to default values.
-
#label(label) ⇒ Wx::BusyInfoFlags
Same as #text but doesn’t interpret the string as containing markup.
-
#parent(parent) ⇒ Wx::BusyInfoFlags
Sets the parent for BusyInfo.
-
#text(text) ⇒ Wx::BusyInfoFlags
Sets the more detailed text, shown under the title, if any.
-
#title(title) ⇒ Wx::BusyInfoFlags
Sets the title, shown prominently in BusyInfo window.
-
#transparency(alpha) ⇒ Wx::BusyInfoFlags
Sets the transparency of BusyInfo window.
Constructor Details
#initialize ⇒ Wx::BusyInfoFlags
Default constructor initializes all attributes to default values.
Call the other methods to really fill in the object.
101 |
# File 'lib/wx/doc/gen/busy_info.rb', line 101 def initialize; end |
Instance Method Details
#background(background) ⇒ Wx::BusyInfoFlags
Sets the background colour of Wx::BusyInfo window.
142 |
# File 'lib/wx/doc/gen/busy_info.rb', line 142 def background(background) end |
#foreground(foreground) ⇒ Wx::BusyInfoFlags
Sets the foreground colour of the title and text strings.
137 |
# File 'lib/wx/doc/gen/busy_info.rb', line 137 def foreground(foreground) end |
#icon(icon) ⇒ Wx::BusyInfoFlags
Sets the icon to show in Wx::BusyInfo.
111 |
# File 'lib/wx/doc/gen/busy_info.rb', line 111 def icon(icon) end |
#label(label) ⇒ Wx::BusyInfoFlags
Same as #text but doesn’t interpret the string as containing markup.
This method should be used if the text shown in Wx::BusyInfo comes from external source and so may contain characters having special meaning in simple markup, e.g. ‘<’.
132 |
# File 'lib/wx/doc/gen/busy_info.rb', line 132 def label(label) end |
#parent(parent) ⇒ Wx::BusyInfoFlags
Sets the parent for Wx::BusyInfo.
106 |
# File 'lib/wx/doc/gen/busy_info.rb', line 106 def parent(parent) end |
#text(text) ⇒ Wx::BusyInfoFlags
Sets the more detailed text, shown under the title, if any.
The text string may contain markup as described in Control#set_label_markup.
125 |
# File 'lib/wx/doc/gen/busy_info.rb', line 125 def text(text) end |
#title(title) ⇒ Wx::BusyInfoFlags
Sets the title, shown prominently in Wx::BusyInfo window.
The title string may contain markup as described in Control#set_label_markup.
118 |
# File 'lib/wx/doc/gen/busy_info.rb', line 118 def title(title) end |
#transparency(alpha) ⇒ Wx::BusyInfoFlags
Sets the transparency of Wx::BusyInfo window.
150 |
# File 'lib/wx/doc/gen/busy_info.rb', line 150 def transparency(alpha) end |