sizeLimit

The sizeLimit node property sets the maximum amount of space a SizeLock node can use. sizeLimit can only be used with SizeLock.

  1. SizeLimit sizeLimit(size_t x, size_t y)
  2. FloatSizeLimit sizeLimit(float x, float y)
    @safe
    sizeLimit
    (
    float x
    ,
    float y
    )

Parameters

x float

Maximum width of the node in pixels.

y float

Maximum height of the node in pixels.

Return Value

A configured node parameter struct, which can be passed into the sizeLock node builder. This will be a SizeBounds struct if the input parameters are float (preferred), or SizeLimit if they are size_t like uint or ulong.

Meta