Class: Fox::FXHiliteStyle

Inherits:
Object
  • Object
show all
Defined in:
rdoc-sources/FXText.rb,
lib/fox16/core.rb

Overview

Highlight style entry

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#activeBackColorObject

Active text background color Fox::FXColor



25
26
27
# File 'rdoc-sources/FXText.rb', line 25

def activeBackColor
  @activeBackColor
end

#hiliteBackColorObject

Highlight text background color Fox::FXColor



22
23
24
# File 'rdoc-sources/FXText.rb', line 22

def hiliteBackColor
  @hiliteBackColor
end

#hiliteForeColorObject

Highlight text foreground color Fox::FXColor



19
20
21
# File 'rdoc-sources/FXText.rb', line 19

def hiliteForeColor
  @hiliteForeColor
end

#normalBackColorObject

Normal text background color Fox::FXColor



10
11
12
# File 'rdoc-sources/FXText.rb', line 10

def normalBackColor
  @normalBackColor
end

#normalForeColorObject

Normal text foreground color Fox::FXColor



7
8
9
# File 'rdoc-sources/FXText.rb', line 7

def normalForeColor
  @normalForeColor
end

#selectBackColorObject

Selected text background color Fox::FXColor



16
17
18
# File 'rdoc-sources/FXText.rb', line 16

def selectBackColor
  @selectBackColor
end

#selectForeColorObject

Selected text foreground color Fox::FXColor



13
14
15
# File 'rdoc-sources/FXText.rb', line 13

def selectForeColor
  @selectForeColor
end

#styleObject

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