src/private/textField

Types

UiTextField = object of RootObj
  currentText*: TextGraphic
  exampleText*: TextGraphic
  background*: Graphic
  buttonBackend*: UiButton
  pos*: Vector2

Procs

proc newUiTextField(exampleText: TextGraphic = TextGraphic();
                    background: Graphic = Graphic();
                    buttonBackend: UiButton = UiButton();
                    pos: Vector2 = Vector2()): UiTextField {....raises: [],
    tags: [].}

Methods

method setCurrentText(uiTextField: var UiTextField; currentText: string;
                      renderer: Renderer) {.base, ...raises: [], tags: [].}