Click or drag to resize

CLAYOUT Class

Layout class for generic relative layout calculation The relative layout algorithm allows a logical organization of layout rectangles. You can set constraints with English-like semantics. For example: "Set the left side of rectangle 1 equal to the right side of rectangle 2 plus 10 pixels." "Set the bottom of rectangle 1 to 25 percent of the height of rectangle 2." "Move node 1 such that its bottom is equal to the top of rectangle 2 minus 10 pixels." The last constraint set would enjoy priority over any others as it would be the last one that would influence the rectangle calculations. See the notes for iSetConstraint for more details.
Inheritance Hierarchy

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public class CLAYOUT : CHANDLE

public class CLAYOUT : CHANDLE

The CLAYOUT type exposes the following members.

Methods
  NameDescription
Public methodCalculateRects
Calculate new positions based on initial conditions and constraints
Public methodClearAll
Remove all children and constraints from layout
Public methodClearConstraints
Remove all constraints from layout
Public methodStatic memberCreate
Creates a layout calculation object
Protected methodDispose
Releases the unmanaged resources used by the CLAYOUT and optionally releases the managed resources
(Overrides CHANDLEDispose(Boolean).)
Public methodGetRectangle
Gets the current bounds for a rectangle or the parent layout
Public methodGetRectName(Int32, String)
Gets an optional name the current info for a rectangle or the parent layout
Public methodGetRectName(Int32, String, Int32)
Gets an optional name the current info for a rectangle or the parent layout
Public methodiAddConstraint
Add a constraint between any two rectangles or to one with absolute positioning
Public methodiAddRectangle
Adds a rectangle as one of the layout's children (Higer.
Public methodiNumRectangles
Returns the number of children in the list.
Public methodSetRectangle
Sets the current bounds for a rectangle previously added to the layout
Public methodSetRectangleName
Sets an optional name the current info for a rectangle or the parent layout
Top
See Also