AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.ALIGN_V_TOP

Variable  -  Const

Type

const int

Description

Align text to the top when printing with RB.Print, or measuring with RB.PrintMeasure.

This flag can be logically OR'ed with other alignment flags.

Example

void Render()
{
    // Draw text aligned to the top-left corner of the screen
    RB.Print(
        new Rect2i(00RB.DisplaySize),
        Color.white,
        RB.ALIGN_H_LEFT | RB.ALIGN_V_TOP,
        "Hello there!");
}

See Also

RB.Print
RB.PrintMeasure

See Docs

Features - Text Alignment