Class: Writexlsx::Format::FontState

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/format/font_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFontState

Returns a new instance of FontState.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/write_xlsx/format/font_state.rb', line 29

def initialize
  @index         = 0
  @name          = 'Calibri'
  @size          = 11
  @bold          = 0
  @italic        = 0
  @color         = 0x0
  @underline     = 0
  @strikeout     = 0
  @outline       = 0
  @shadow        = 0
  @script        = 0
  @family        = 2
  @charset       = 0
  @scheme        = 'minor'
  @condense      = 0
  @extend        = 0
  @theme         = 0
  @hyperlink     = 0
  @color_indexed = 0
end

Instance Attribute Details

#boldObject

Returns the value of attribute bold.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def bold
  @bold
end

#charsetObject

Returns the value of attribute charset.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def charset
  @charset
end

#colorObject

Returns the value of attribute color.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def color
  @color
end

#color_indexedObject

Returns the value of attribute color_indexed.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def color_indexed
  @color_indexed
end

#condenseObject

Returns the value of attribute condense.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def condense
  @condense
end

#extendObject

Returns the value of attribute extend.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def extend
  @extend
end

#familyObject

Returns the value of attribute family.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def family
  @family
end

Returns the value of attribute hyperlink.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def hyperlink
  @hyperlink
end

#indexObject

Returns the value of attribute index.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def index
  @index
end

#italicObject

Returns the value of attribute italic.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def italic
  @italic
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def name
  @name
end

#outlineObject

Returns the value of attribute outline.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def outline
  @outline
end

#schemeObject

Returns the value of attribute scheme.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def scheme
  @scheme
end

#scriptObject

Returns the value of attribute script.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def script
  @script
end

#shadowObject

Returns the value of attribute shadow.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def shadow
  @shadow
end

#sizeObject

Returns the value of attribute size.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def size
  @size
end

#strikeoutObject

Returns the value of attribute strikeout.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def strikeout
  @strikeout
end

#themeObject

Returns the value of attribute theme.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def theme
  @theme
end

#underlineObject

Returns the value of attribute underline.



7
8
9
# File 'lib/write_xlsx/format/font_state.rb', line 7

def underline
  @underline
end

Instance Method Details

#initialize_copy(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/write_xlsx/format/font_state.rb', line 51

def initialize_copy(other)
  @index         = other.index
  @name          = other.name
  @size          = other.size
  @bold          = other.bold
  @italic        = other.italic
  @color         = other.color
  @underline     = other.underline
  @strikeout     = other.strikeout
  @outline       = other.outline
  @shadow        = other.shadow
  @script        = other.script
  @family        = other.family
  @charset       = other.charset
  @scheme        = other.scheme
  @condense      = other.condense
  @extend        = other.extend
  @theme         = other.theme
  @hyperlink     = other.hyperlink
  @color_indexed = other.color_indexed
end