Widget.place

Geometry method for placing this widget inside its parent using relative positioning. In this case the position and size is specified as a floating-point number between 0.0 and 1.0 relative to the height of the parent. 0.5 means the widget will be half as high as the parent and 1.0 means the widget will have the same height as the parent, and so on.

  1. auto place(int xPos, int yPos, int width, int height, string anchor, string borderMode)
  2. auto place(double relativeXPos, double relativeYPos, double relativeWidth, double relativeHeight, string anchor, string borderMode)
    class Widget

Parameters

relativeXPos double

The relative horizontal position of the widget inside its parent.

relativeYPos double

The relative vertical position of the widget inside its parent.

relativeWidth double

The relative width of the widget.

relativeHeight double

The relative height of the widget.

anchor string

The anchor position of the widget inside its parent.

borderMode string

How the widget interacts with the parent's border.

Return Value

Type: auto

This widget to aid method chaining.

See Also

Meta