Class: Layout::Group
Overview
A group is a special type of Entity that does not belong to a Layer and contains other Entitys as children. A Group's children may include other Groups, allowing for a hierarchical tree structure of Entitys. A Group must contain at least one child and will be automatically collapsed if an operation is performed that results in the Group being empty.
Constant Summary #
- Layout::Group::RESIZE_BEHAVIOR_NONE
- Layout::Group::RESIZE_BEHAVIOR_BOUNDS
- Layout::Group::RESIZE_BEHAVIOR_BOUNDS_AND_FONTS
Instance Method Summary # collapse
- #entities ⇒ Layout::Entities
-
#initialize(entities) ⇒ Layout::Group
constructor
The #initialize method creates a new Group.
-
#remove_scale_factor(resize_behavior) ⇒ Object
The #remove_scale_factor method removes the scale factor from the Group.
-
#scale_factor ⇒ Float?
The #scale_factor method returns the the scale factor associated with the Group.
-
#scale_precision ⇒ Float
The #scale_precision method returns the precision used for the scale of the Group.
-
#scale_precision=(precision) ⇒ Object
The #scale_precision= method sets the precision for the scale of the Group.
-
#scale_units ⇒ Integer
The #scale_units method returns the units format used in the scale for the Group.
-
#scale_units=(units_format) ⇒ Object
The #scale_units= method sets the the units format for the scale of the Group.
-
#set_scale_factor(scale_factor, units_format, resize_behavior) ⇒ Object
The #set_scale_factor method sets the the scale factor for the Group.
- #ungroup ⇒ Boolean
Methods inherited from Entity
#==, #bounds, #document, #drawing_bounds, #group, #layer_instance, #locked=, #locked?, #move_to_group, #move_to_layer, #on_shared_layer?, #page, #style, #style=, #transform!, #transformation, #untransformed_bounds, #untransformed_bounds=
Constructor Details
↑ #initialize(entities) ⇒ Layout::Group
The #initialize method creates a new Layout::Group.
Instance Method Details
↑ #entities ⇒ Layout::Entities
The #entities method returns the Entities that belong to the Layout::Group.
↑ #remove_scale_factor(resize_behavior) ⇒ Object
The #remove_scale_factor method removes the scale factor from the Layout::Group.
The resize behavior can be one of the following values:
Layout::Group::RESIZE_BEHAVIOR_NONELayout::Group::RESIZE_BEHAVIOR_BOUNDSLayout::Group::RESIZE_BEHAVIOR_BOUNDS_AND_FONTS
↑ #scale_factor ⇒ Float?
The #scale_factor method returns the the scale factor associated with the Layout::Group.
↑ #scale_precision ⇒ Float
The #scale_precision method returns the precision used for the scale of the Layout::Group.
↑ #scale_precision=(precision) ⇒ Object
LayOut only allows for a finite set of precision values for each units setting, so it will set the precision to the closest valid setting for the specified units. See the 鈥淯nits鈥� section of LayOut's 鈥淒ocument Setup鈥� dialog for a reference of the available precisions for each units setting.
The #scale_precision= method sets the precision for the scale of the Layout::Group.
↑ #scale_units ⇒ Integer
The #scale_units method returns the units format used in the scale for the Layout::Group.
The units format can be any of the following values:
- Layout::Document::FRACTIONAL_INCHES
- Layout::Document::DECIMAL_INCHES
- Layout::Document::DECIMAL_FEET
- Layout::Document::DECIMAL_MILLIMETERS
- Layout::Document::DECIMAL_CENTIMETERS
- Layout::Document::DECIMAL_METERS
- Layout::Document::DECIMAL_POINTS
- Layout::Document::DECIMAL_INCHES
↑ #scale_units=(units_format) ⇒ Object
The #scale_units= method sets the the units format for the scale of the Layout::Group.
The units format can be any of the following values:
- Layout::Document::FRACTIONAL_INCHES
- Layout::Document::DECIMAL_INCHES
- Layout::Document::DECIMAL_FEET
- Layout::Document::DECIMAL_MILLIMETERS
- Layout::Document::DECIMAL_CENTIMETERS
- Layout::Document::DECIMAL_METERS
- Layout::Document::DECIMAL_POINTS
- Layout::Document::DECIMAL_INCHES
↑ #set_scale_factor(scale_factor, units_format, resize_behavior) ⇒ Object
The #set_scale_factor method sets the the scale factor for the Layout::Group.
The units format can be any of the following values:
- Layout::Document::FRACTIONAL_INCHES
- Layout::Document::DECIMAL_INCHES
- Layout::Document::DECIMAL_FEET
- Layout::Document::DECIMAL_MILLIMETERS
- Layout::Document::DECIMAL_CENTIMETERS
- Layout::Document::DECIMAL_METERS
- Layout::Document::DECIMAL_POINTS
- Layout::Document::DECIMAL_INCHES
-
The resize behavior can be one of the following values:
Layout::Group::RESIZE_BEHAVIOR_NONELayout::Group::RESIZE_BEHAVIOR_BOUNDSLayout::Group::RESIZE_BEHAVIOR_BOUNDS_AND_FONTS
↑ #ungroup ⇒ Boolean
The #ungroup method removes all Entitys from the Layout::Group and deletes the Layout::Group.