{
  "name": "Label",
  "component": "gui",
  "header": "nativeui/label.h",
  "type": "Class",
  "namespace": "nu",
  "inherit": {
    "name": "View",
    "id": "view"
  },
  "description": "Display text.",
  "class_methods": [
    {
      "signature": {
        "returnType": {
          "name": "Label",
          "id": "label"
        },
        "name": "create",
        "parameters": [
          {
            "type": {
              "name": "string"
            },
            "name": "text"
          }
        ],
        "shortStr": "create(text)",
        "str": "create(text)"
      },
      "description": "Create a new `Label` with `text`.",
      "id": "create-text"
    },
    {
      "signature": {
        "returnType": {
          "name": "Label",
          "id": "label"
        },
        "name": "createwithattributedtext",
        "parameters": [
          {
            "type": {
              "name": "AttributedText",
              "id": "attributedtext"
            },
            "name": "text"
          }
        ],
        "shortStr": "createwithattributedtext(text)",
        "str": "createwithattributedtext(text)"
      },
      "description": "Create a new `Label` with attributed `text`.",
      "id": "createwithattributedtext-text"
    }
  ],
  "methods": [
    {
      "signature": {
        "name": "settext",
        "parameters": [
          {
            "type": {
              "name": "string"
            },
            "name": "text"
          }
        ],
        "shortStr": "settext(text)",
        "str": "settext(text)"
      },
      "description": "Set the text to display.",
      "id": "settext-text"
    },
    {
      "signature": {
        "returnType": {
          "name": "string"
        },
        "name": "gettext",
        "parameters": [],
        "shortStr": "gettext()",
        "str": "gettext()"
      },
      "description": "Return the text displayed.",
      "id": "gettext"
    },
    {
      "signature": {
        "name": "setalign",
        "parameters": [
          {
            "type": {
              "name": "TextAlign",
              "id": "textalign"
            },
            "name": "align"
          }
        ],
        "shortStr": "setalign(align)",
        "str": "setalign(align)"
      },
      "description": "Set horizontal text alignment.",
      "id": "setalign-align"
    },
    {
      "signature": {
        "name": "setvalign",
        "parameters": [
          {
            "type": {
              "name": "TextAlign",
              "id": "textalign"
            },
            "name": "align"
          }
        ],
        "shortStr": "setvalign(align)",
        "str": "setvalign(align)"
      },
      "description": "Set vertical text alignment.",
      "id": "setvalign-align"
    },
    {
      "signature": {
        "name": "setattributedtext",
        "parameters": [
          {
            "type": {
              "name": "AttributedText",
              "id": "attributedtext"
            },
            "name": "text"
          }
        ],
        "shortStr": "setattributedtext(text)",
        "str": "setattributedtext(text)"
      },
      "description": "Set the attributed text to display.",
      "id": "setattributedtext-text"
    },
    {
      "signature": {
        "returnType": {
          "name": "AttributedText",
          "id": "attributedtext"
        },
        "name": "getattributedtext",
        "parameters": [],
        "shortStr": "getattributedtext()",
        "str": "getattributedtext()"
      },
      "description": "Return the attributed text displayed.",
      "id": "getattributedtext"
    }
  ],
  "module": "yue.gui",
  "id": "label"
}