MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetCharPosition

Method GetCharPosition

Source/Engine/UI/GUI/Common/TextBox.cs:191–202  ·  view source on GitHub ↗

(int index, out float height)

Source from the content-addressed store, hash-verified

189
190 /// <inheritdoc />
191 public override Float2 GetCharPosition(int index, out float height)
192 {
193 var font = GetFont();
194 if (font == null)
195 {
196 height = Height;
197 return Float2.Zero;
198 }
199
200 height = font.Height / DpiScale;
201 return font.GetCharPosition(ConvertedText(), index, ref _layout);
202 }
203
204 /// <inheritdoc />
205 public override int HitTestText(Float2 location)

Callers 1

DrawSelfMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected