Class: ThinReports::Core::Shape::List::SectionInternal
Instance Attribute Summary collapse
#format, #parent, #states
Instance Method Summary
collapse
#copy, #initialize, #switch_parent!, #type_of?
Instance Attribute Details
#section_name ⇒ Symbol
14
15
16
|
# File 'lib/thinreports/core/shape/list/section_internal.rb', line 14
def section_name
@section_name
end
|
Instance Method Details
#move_top_to(ry) ⇒ Object
21
22
23
|
# File 'lib/thinreports/core/shape/list/section_internal.rb', line 21
def move_top_to(ry)
states[:relative_top] = ry
end
|
#relative_position ⇒ Array<Numeric>
26
27
28
29
|
# File 'lib/thinreports/core/shape/list/section_internal.rb', line 26
def relative_position
[relative_left,
relative_top + (states[:relative_top] || 0)]
end
|
16
17
18
|
# File 'lib/thinreports/core/shape/list/section_internal.rb', line 16
def style
@style ||= Style::Base.new(format)
end
|