sizeLimitX

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

  1. SizeLimit sizeLimitX(size_t x)
  2. FloatSizeLimit sizeLimitX(float x)
    @safe
    sizeLimitX
    (
    float x
    )

Parameters

x float

Maximum width 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