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)
    @safe
    sizeLimit
    (
    size_t x
    ,
    size_t y
    )
  2. FloatSizeLimit sizeLimit(float x, float y)

Parameters

x size_t

Maximum width of the node in pixels.

y size_t

Maximum height of the node in pixels.

Return Value

Type: SizeLimit

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