[macruby-changes] [347] MacRuby/trunk/lib/hotcocoa/layout_view.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 9 15:21:53 PDT 2008


Revision: 347
          http://trac.macosforge.org/projects/ruby/changeset/347
Author:   rich at infoether.com
Date:     2008-07-09 15:21:52 -0700 (Wed, 09 Jul 2008)
Log Message:
-----------
move comment

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/layout_view.rb

Modified: MacRuby/trunk/lib/hotcocoa/layout_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/layout_view.rb	2008-07-09 22:15:16 UTC (rev 346)
+++ MacRuby/trunk/lib/hotcocoa/layout_view.rb	2008-07-09 22:21:52 UTC (rev 347)
@@ -4,6 +4,39 @@
   attr_accessor :view
   attr_reader :left_padding, :right_padding, :top_padding, :bottom_padding, :padding, :other
   
+  # options can be
+  #
+  #  :start -> bool
+  #    Whether the view is packed at the start or the end of the packing view.
+  #    Default value is true.
+  #
+  #  :expand -> bool
+  #    Whether the view's first dimension (width for horizontal and height for vertical)
+  #    should be expanded to the maximum possible size, and should be variable according
+  #    to the packing view frame.
+  #    Default value is false.
+  #
+  #  :padding         -> float
+  #  :left_padding    -> float
+  #  :right_padding   -> float
+  #  :top_padding     -> float
+  #  :bottom_padding  -> float
+  #    Controls the padding area around the view. :padding controls all areas, while
+  #    :left_padding for example only controls the left side. If :padding is set, other
+  #    padding flags are ignored.
+  #    Default value is 0.0 for all flags.
+  #
+  #  :other -> mode
+  #    Controls the view's second dimension (height for horizontal and width for vertical).
+  #    Modes can be:
+  #      :align_head
+  #        Will be aligned to the head (start) of the packing area.
+  #      :align_center
+  #        Will be centered inside the packing area.
+  #      :align_tail
+  #        Will be aligned to the tail (end) of the packing area.
+  #      :fill
+  #        Will be filled to the maximum size.
   def initialize(options={})
     @start = options[:start].nil? ? true : options[:start]
     @expand = options[:expand].nil? ? false : options[:expand]
@@ -140,40 +173,6 @@
     relayout!
   end
   
-  # options can be
-  #
-  #  :start -> bool
-  #    Whether the view is packed at the start or the end of the packing view.
-  #    Default value is true.
-  #
-  #  :expand -> bool
-  #    Whether the view's first dimension (width for horizontal and height for vertical)
-  #    should be expanded to the maximum possible size, and should be variable according
-  #    to the packing view frame.
-  #    Default value is false.
-  #
-  #  :padding         -> float
-  #  :left_padding    -> float
-  #  :right_padding   -> float
-  #  :top_padding     -> float
-  #  :bottom_padding  -> float
-  #    Controls the padding area around the view. :padding controls all areas, while
-  #    :left_padding for example only controls the left side. If :padding is set, other
-  #    padding flags are ignored.
-  #    Default value is 0.0 for all flags.
-  #
-  #  :other -> mode
-  #    Controls the view's second dimension (height for horizontal and width for vertical).
-  #    Modes can be:
-  #      :align_head
-  #        Will be aligned to the head (start) of the packing area.
-  #      :align_center
-  #        Will be centered inside the packing area.
-  #      :align_tail
-  #        Will be aligned to the tail (end) of the packing area.
-  #      :fill
-  #        Will be filled to the maximum size.
-
   def views_updated!
     relayout!
   end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080709/9318cf7a/attachment.html 


More information about the macruby-changes mailing list