Class: Glimmer::SWT::LayoutDataProxy
- Inherits:
-
Object
- Object
- Glimmer::SWT::LayoutDataProxy
- Includes:
- PropertyOwner
- Defined in:
- lib/glimmer/swt/layout_data_proxy.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#grab_excess_horizontal_space ⇒ Object
Returns the value of attribute grab_excess_horizontal_space.
-
#grab_excess_vertical_space ⇒ Object
Returns the value of attribute grab_excess_vertical_space.
-
#height_hint ⇒ Object
Returns the value of attribute height_hint.
-
#horizontal_alignment ⇒ Object
Returns the value of attribute horizontal_alignment.
-
#horizontal_indent ⇒ Object
Returns the value of attribute horizontal_indent.
-
#horizontal_span ⇒ Object
Returns the value of attribute horizontal_span.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#vertical_alignment ⇒ Object
Returns the value of attribute vertical_alignment.
-
#vertical_indent ⇒ Object
Returns the value of attribute vertical_indent.
-
#vertical_span ⇒ Object
Returns the value of attribute vertical_span.
Instance Method Summary collapse
-
#initialize(parent, args) ⇒ LayoutDataProxy
constructor
A new instance of LayoutDataProxy.
- #reapply ⇒ Object
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
#args ⇒ Object (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_space ⇒ Object
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_space ⇒ Object
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_hint ⇒ Object
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_alignment ⇒ Object
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_indent ⇒ Object
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_span ⇒ Object
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 |
#parent ⇒ Object (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_alignment ⇒ Object
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_indent ⇒ Object
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_span ⇒ Object
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
#reapply ⇒ Object
81 82 83 84 |
# File 'lib/glimmer/swt/layout_data_proxy.rb', line 81 def reapply # @parent.css = <<~CSS # CSS end |