/// <summary> /// Adds a text area to the GUI. /// </summary> /// <param name="bounds">The bounds of the Text Area</param> /// <param name="OnTextChanged">The event fired when the text is changed.</param> /// <param name="font">The font of the text.</param> /// <param name="key">The name of the text area.</param> public static GuiComposer AddTextArea(this GuiComposer composer, ElementBounds bounds, Action <string> OnTextChanged, CairoFont font = null, string key = null) { if (font == null) { font = CairoFont.SmallTextInput(); } if (!composer.Composed) { composer.AddInteractiveElement(new GuiElementTextArea(composer.Api, bounds, OnTextChanged, font), key); } return(composer); }