Class: Wx::ItemAttr
- Inherits:
-
Object
- Object
- Wx::ItemAttr
- Defined in:
- lib/wx/doc/gen/list_ctrl.rb
Overview
Represents the attributes (colour, font, …) of an item of a control with multiple items such as e.g.
Category: Data Structures
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Compare two item attributes for equality.
-
#get_background_colour ⇒ Wx::Colour, ...
(also: #background_colour)
Returns the currently set background colour.
-
#get_font ⇒ Wx::Font, Wx::FontInfo
(also: #font)
Returns the currently set font.
-
#get_text_colour ⇒ Wx::Colour, ...
(also: #text_colour)
Returns the currently set text colour.
-
#has_background_colour ⇒ Boolean
(also: #has_background_colour?)
Returns true if the currently set background colour is valid.
-
#has_colours ⇒ Boolean
(also: #has_colours?)
Returns true if either text or background colour is set.
-
#has_font ⇒ Boolean
(also: #has_font?)
Returns true if the currently set font is valid.
-
#has_text_colour ⇒ Boolean
(also: #has_text_colour?)
Returns true if the currently set text colour is valid.
-
#initialize(*args) ⇒ ItemAttr
constructor
A new instance of ItemAttr.
-
#is_default ⇒ Boolean
(also: #default?)
Returns true if this object has no custom attributes set.
-
#set_background_colour(colour) ⇒ void
(also: #background_colour=)
Sets a new background colour.
-
#set_font(font) ⇒ void
(also: #font=)
Sets a new font.
-
#set_text_colour(colour) ⇒ void
(also: #text_colour=)
Sets a new text colour.
Constructor Details
#initialize ⇒ Wx::ItemAttr #initialize(colText, colBack, font) ⇒ Wx::ItemAttr
Returns a new instance of ItemAttr.
1623 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1623 def initialize(*args) end |
Instance Method Details
#==(other) ⇒ Boolean
Compare two item attributes for equality.
1628 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1628 def ==(other) end |
#get_background_colour ⇒ Wx::Colour, ... Also known as: background_colour
Returns the currently set background colour.
1632 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1632 def get_background_colour; end |
#get_font ⇒ Wx::Font, Wx::FontInfo Also known as: font
Returns the currently set font.
1637 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1637 def get_font; end |
#get_text_colour ⇒ Wx::Colour, ... Also known as: text_colour
Returns the currently set text colour.
1642 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1642 def get_text_colour; end |
#has_background_colour ⇒ Boolean Also known as: has_background_colour?
Returns true if the currently set background colour is valid.
1647 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1647 def has_background_colour; end |
#has_colours ⇒ Boolean Also known as: has_colours?
Returns true if either text or background colour is set.
1656 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1656 def has_colours; end |
#has_font ⇒ Boolean Also known as: has_font?
Returns true if the currently set font is valid.
1661 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1661 def has_font; end |
#has_text_colour ⇒ Boolean Also known as: has_text_colour?
Returns true if the currently set text colour is valid.
1666 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1666 def has_text_colour; end |
#is_default ⇒ Boolean Also known as: default?
Returns true if this object has no custom attributes set.
1671 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1671 def is_default; end |
#set_background_colour(colour) ⇒ void Also known as: background_colour=
This method returns an undefined value.
Sets a new background colour.
1677 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1677 def set_background_colour(colour) end |
#set_font(font) ⇒ void Also known as: font=
This method returns an undefined value.
Sets a new font.
1683 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1683 def set_font(font) end |
#set_text_colour(colour) ⇒ void Also known as: text_colour=
This method returns an undefined value.
Sets a new text colour.
1689 |
# File 'lib/wx/doc/gen/list_ctrl.rb', line 1689 def set_text_colour(colour) end |