Kinemium Docs

UIScaleDetector

A modifier class that detects scale changes on a GUI element.

Properties

PropertyTypeDefault
Namestring"UIScaleDetector"
isResizingbooleanfalse
activeHandleanynil
MinSizeVector2Vector2.new(40, 40)
RespectScreenBoundsbooleantrue
newSizeCallbackanynil
_startMouseVector3Vector3.new(0, 0, 0)
_startAbsPosVector2Vector2.new(0, 0)
_startAbsSzVector2Vector2.new(0, 0)

Functions


makeRect

Arguments

x, y, width, height

Returns

This function returns nothing.

mouseInRect

Arguments

rect

Returns

This function returns nothing.

getParentMetrics

Arguments

parent, window

Returns

This function returns nothing.

getHandleRect

Arguments

key, absPos, absSize

Returns

This function returns nothing.

propTable.render

Arguments

lib, object, dt, structs, renderer

Returns

This function returns nothing.

API

instance:makeRect(x, y, width, height)
instance:mouseInRect(rect)
instance:getParentMetrics(parent, window)
instance:getHandleRect(key, absPos, absSize)
instance:render(lib, object, dt, structs, renderer)

On this page