{
  "name": "Entry",
  "component": "gui",
  "header": "nativeui/entry.h",
  "type": "Class",
  "namespace": "nu",
  "inherit": {
    "name": "View",
    "id": "view"
  },
  "description": "Single-line text input view.",
  "class_methods": [
    {
      "signature": {
        "returnType": {
          "name": "Entry",
          "id": "entry"
        },
        "name": "create",
        "parameters": [],
        "shortStr": "create()",
        "str": "create()"
      },
      "description": "Create a normal `Entry`.",
      "id": "create"
    },
    {
      "signature": {
        "returnType": {
          "name": "Entry",
          "id": "entry"
        },
        "name": "createtype",
        "parameters": [
          {
            "type": {
              "name": "Entry::Type",
              "id": "entry_type"
            },
            "name": "type"
          }
        ],
        "shortStr": "createtype(type)",
        "str": "createtype(type)"
      },
      "description": "Create an `Entry` with `type`.",
      "id": "createtype-type"
    }
  ],
  "methods": [
    {
      "signature": {
        "name": "settext",
        "parameters": [
          {
            "type": {
              "name": "string"
            },
            "name": "text"
          }
        ],
        "shortStr": "settext(text)",
        "str": "settext(text)"
      },
      "description": "Change the text in the view.",
      "id": "settext-text"
    },
    {
      "signature": {
        "returnType": {
          "name": "string"
        },
        "name": "gettext",
        "parameters": [],
        "shortStr": "gettext()",
        "str": "gettext()"
      },
      "description": "Return currently displayed text.",
      "id": "gettext"
    }
  ],
  "events": [
    {
      "signature": {
        "name": "ontextchange",
        "parameters": [
          {
            "type": {
              "name": "Entry",
              "id": "entry"
            },
            "name": "self"
          }
        ],
        "shortStr": "ontextchange(self)",
        "str": "ontextchange(self)"
      },
      "description": "Emitted when user has changed text.",
      "id": "ontextchange-self"
    },
    {
      "signature": {
        "name": "onactivate",
        "parameters": [
          {
            "type": {
              "name": "Entry",
              "id": "entry"
            },
            "name": "self"
          }
        ],
        "shortStr": "onactivate(self)",
        "str": "onactivate(self)"
      },
      "description": "Emitted when user has pressed <kbd>Enter</kbd> in the view.",
      "id": "onactivate-self"
    }
  ],
  "module": "yue.gui",
  "id": "entry"
}