Skip to content

Kaplay.Anchor

Modules

Comp

Types

anchor
type anchor =
| @as("topleft") TopLeft
| @as("top") Top
| @as("topright") TopRight
| @as("left") Left
| @as("center") Center
| @as("right") Right
| @as("botleft") BottomLeft
| @as("bot") Bottom
| @as("botright") BottomRight

Values

addAnchorComponent
let addAnchor: (Kaplay.Context.t, anchor) => Kaplay.Types.comp
Return type
addAnchorBottomLeftComponent
let addAnchorBottomLeft: Kaplay.Context.t => Kaplay.Types.comp
Parameters
Return type
addAnchorCenterComponent
let addAnchorCenter: Kaplay.Context.t => Kaplay.Types.comp
Parameters
Return type
addAnchorFromVec2Component
let addAnchorFromVec2: (Kaplay.Context.t, Kaplay.Vec2.t) => Kaplay.Types.comp