[library views ilviews/graphics/attach.h] Declaration of the classes and methods used to handle graphic attachments.
This enum type defines how graphic objects are attached to the borders of their container view, and whether the objects can be resized. The attachments thus establish the behavior of the objects when the size of the container view is changed.
Enumerator |
---|
IlvNoAttach |
Indicates that the attachment does not affect the object's size and location.
|
IlvFixedAttach |
Indicates that the specified border or dimension remains fixed to some value no matter what size the view takes.
|
IlvElasticAttach |
Indicates that the specified border or dimension moves proportionally as the view changes its size.
|
IlvFixAndElasticAttach |
Indicates that the specified border or dimension moves proportionally as the view changes its size, with an additional offset specified.
|
Returns the attachment rule set on the specified border of the object.
- Parameters
-
graphic | The graphic object. |
position | A position specifying for which border of the object bounding box the attachment is required. See IlvSetAttachment for details. |
- See Also
IlvSetAttachment
, IlvGetAttachmentDistance
.
Returns the distance set on the attachment rule of the specified border of the object.
- Parameters
-
graphic | The graphic object. |
position | A position specifying for which border of the object bounding box the attachment is required. See IlvSetAttachment for details. |
- See Also
IlvSetAttachment
, IlvGetAttachment
.
Removes the attachment set on the specified border of the object.
- Parameters
-
graphic | The graphic object to detach. |
position | A position specifying which border of the object bounding box to detach. See IlvSetAttachment for details. |
- See Also
IlvSetAttachment
.
Sets the attachment rule for the specified object.
Attaches the border of the bounding box specified by position of graphic using the parameters attachment
and distance.
- Parameters
-
graphic | The graphic object to attach. |
position | A position specifying which border of the object bounding box to attach. Valid values are: IlvLeft , IlvTop , IlvRight or IlvBottom to indicate which border of the object needs to be attached to the view, or IlvVertical and IlvHorizontal to indicate the behavior of the object's bounding box. |
attachment | The type of attachment. |
distance | The distance used for fixed attachemnts. |
- See Also
IlvRemoveAttachment
, IlvGetAttachment
, IlvGetAttachmentDistance
.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.