Class: Glimmer::SWT::LayoutDataProxy

Inherits:
Object
  • Object
show all
Includes:
PropertyOwner
Defined in:
lib/glimmer/swt/layout_data_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PropertyOwner

#attribute_getter, #attribute_setter, #get_attribute, #set_attribute

Constructor Details

#initialize(parent, args) ⇒ LayoutDataProxy

Returns a new instance of LayoutDataProxy.



19
20
21
22
23
24
25
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 19

def initialize(parent, args)
  @parent = parent
  @args = args
  # TODO spread args correctly
  # TODO avoid using reapply
  reapply
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def args
  @args
end

#grab_excess_horizontal_spaceObject

Returns the value of attribute grab_excess_horizontal_space.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def grab_excess_horizontal_space
  @grab_excess_horizontal_space
end

#grab_excess_vertical_spaceObject

Returns the value of attribute grab_excess_vertical_space.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def grab_excess_vertical_space
  @grab_excess_vertical_space
end

#height_hintObject

Returns the value of attribute height_hint.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def height_hint
  @height_hint
end

#horizontal_alignmentObject

Returns the value of attribute horizontal_alignment.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def horizontal_alignment
  @horizontal_alignment
end

#horizontal_indentObject

Returns the value of attribute horizontal_indent.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def horizontal_indent
  @horizontal_indent
end

#horizontal_spanObject

Returns the value of attribute horizontal_span.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def horizontal_span
  @horizontal_span
end

#parentObject (readonly)

Returns the value of attribute parent.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def parent
  @parent
end

#vertical_alignmentObject

Returns the value of attribute vertical_alignment.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def vertical_alignment
  @vertical_alignment
end

#vertical_indentObject

Returns the value of attribute vertical_indent.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def vertical_indent
  @vertical_indent
end

#vertical_spanObject

Returns the value of attribute vertical_span.



7
8
9
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 7

def vertical_span
  @vertical_span
end

Instance Method Details

#reapplyObject



81
82
83
84
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 81

def reapply
#         @parent.css = <<~CSS
#         CSS
end