Class: Fox::FXHiliteStyle
- Inherits:
-
Object
- Object
- Fox::FXHiliteStyle
- Defined in:
- rdoc-sources/FXText.rb,
lib/fox16/core.rb
Overview
Highlight style entry
Instance Attribute Summary collapse
-
#activeBackColor ⇒ Object
Active text background color FXColor.
-
#hiliteBackColor ⇒ Object
Highlight text background color FXColor.
-
#hiliteForeColor ⇒ Object
Highlight text foreground color FXColor.
-
#normalBackColor ⇒ Object
Normal text background color FXColor.
-
#normalForeColor ⇒ Object
Normal text foreground color FXColor.
-
#selectBackColor ⇒ Object
Selected text background color FXColor.
-
#selectForeColor ⇒ Object
Selected text foreground color FXColor.
-
#style ⇒ Object
Highlight text style [Integer].
Class Method Summary collapse
-
.from_text(textw) ⇒ Object
Construct a new FXHiliteStyle instance, with fields initialized from an FXText instance.
Instance Attribute Details
#activeBackColor ⇒ Object
Active text background color Fox::FXColor
25 26 27 |
# File 'rdoc-sources/FXText.rb', line 25 def activeBackColor @activeBackColor end |
#hiliteBackColor ⇒ Object
Highlight text background color Fox::FXColor
22 23 24 |
# File 'rdoc-sources/FXText.rb', line 22 def hiliteBackColor @hiliteBackColor end |
#hiliteForeColor ⇒ Object
Highlight text foreground color Fox::FXColor
19 20 21 |
# File 'rdoc-sources/FXText.rb', line 19 def hiliteForeColor @hiliteForeColor end |
#normalBackColor ⇒ Object
Normal text background color Fox::FXColor
10 11 12 |
# File 'rdoc-sources/FXText.rb', line 10 def normalBackColor @normalBackColor end |
#normalForeColor ⇒ Object
Normal text foreground color Fox::FXColor
7 8 9 |
# File 'rdoc-sources/FXText.rb', line 7 def normalForeColor @normalForeColor end |
#selectBackColor ⇒ Object
Selected text background color Fox::FXColor
16 17 18 |
# File 'rdoc-sources/FXText.rb', line 16 def selectBackColor @selectBackColor end |
#selectForeColor ⇒ Object
Selected text foreground color Fox::FXColor
13 14 15 |
# File 'rdoc-sources/FXText.rb', line 13 def selectForeColor @selectForeColor end |
#style ⇒ Object
Highlight text style [Integer]
28 29 30 |
# File 'rdoc-sources/FXText.rb', line 28 def style @style end |
Class Method Details
.from_text(textw) ⇒ Object
Construct a new FXHiliteStyle instance, with fields initialized from an FXText instance.
191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/fox16/core.rb', line 191 def FXHiliteStyle.from_text(textw) hs = new hs.activeBackColor = textw.activeBackColor hs.hiliteBackColor = textw.hiliteBackColor hs.hiliteForeColor = textw.hiliteTextColor hs.normalBackColor = textw.backColor hs.normalForeColor = textw.textColor hs.selectBackColor = textw.selBackColor hs.selectForeColor = textw.selTextColor hs.style = 0 hs end |