Skip to content

UITextInput.SetFocused Method

Definition

Namespace: Brine2D.UI

Overloads
SetFocused\(bool, IInputContext\) Called by UICanvas when input is focused or unfocused.
SetFocused\(bool, IInputContext, Nullable<float>\) Called by UICanvas when the field is focused by a mouse click. clickX is the screen X of the click; the cursor is placed at the nearest character boundary on the next Render call.

UITextInput.SetFocused\(bool, IInputContext\) Method

Called by UICanvas when input is focused or unfocused.

C#
internal void SetFocused(bool focused, Brine2D.Input.IInputContext input);

Parameters

focused System.Boolean

input IInputContext

UITextInput.SetFocused\(bool, IInputContext, Nullable\<float\>\) Method

Called by UICanvas when the field is focused by a mouse click. clickX is the screen X of the click; the cursor is placed at the nearest character boundary on the next Render call.

C#
internal void SetFocused(bool focused, Brine2D.Input.IInputContext input, System.Nullable<float> clickX);

Parameters

focused System.Boolean

input IInputContext

clickX System.Nullable<System.Single>