{
  "name": "Label",
  "component": "gui",
  "header": "nativeui/label.h",
  "type": "refcounted",
  "namespace": "nu",
  "inherit": {
    "name": "View",
    "id": "view"
  },
  "description": "Display text.",
  "constructors": [
    {
      "signature": {
        "name": "Label",
        "parameters": [
          {
            "type": {
              "name": "const std::string&"
            },
            "name": "text"
          }
        ],
        "shortStr": "Label(text)",
        "str": "Label(const std::string& text)"
      },
      "description": "Create a new `Label` with `text`.",
      "id": "label-text"
    },
    {
      "signature": {
        "name": "Label",
        "parameters": [
          {
            "type": {
              "name": "scoped_refptr<AttributedText>",
              "id": "attributedtext"
            },
            "name": "text"
          }
        ],
        "shortStr": "Label(text)",
        "str": "Label(scoped_refptr<AttributedText> text)"
      },
      "description": "Create a new `Label` with attributed `text`.",
      "id": "label-text"
    }
  ],
  "class_properties": [
    {
      "description": "The class name of this view.",
      "id": "kclassname",
      "type": {
        "name": "const char*"
      },
      "name": "kClassName"
    }
  ],
  "methods": [
    {
      "signature": {
        "name": "SetText",
        "parameters": [
          {
            "type": {
              "name": "const std::string&"
            },
            "name": "text"
          }
        ],
        "shortStr": "SetText(text)",
        "str": "void SetText(const std::string& text)"
      },
      "description": "Set the text to display.",
      "id": "settext-text"
    },
    {
      "signature": {
        "returnType": {
          "name": "std::string"
        },
        "name": "GetText",
        "parameters": [],
        "shortStr": "GetText()",
        "str": "std::string GetText() const"
      },
      "description": "Return the text displayed.",
      "id": "gettext"
    },
    {
      "signature": {
        "name": "SetAlign",
        "parameters": [
          {
            "type": {
              "name": "TextAlign",
              "id": "textalign"
            },
            "name": "align"
          }
        ],
        "shortStr": "SetAlign(align)",
        "str": "void SetAlign(TextAlign align)"
      },
      "description": "Set horizontal text alignment.",
      "id": "setalign-align"
    },
    {
      "signature": {
        "name": "SetVAlign",
        "parameters": [
          {
            "type": {
              "name": "TextAlign",
              "id": "textalign"
            },
            "name": "align"
          }
        ],
        "shortStr": "SetVAlign(align)",
        "str": "void SetVAlign(TextAlign align)"
      },
      "description": "Set vertical text alignment.",
      "id": "setvalign-align"
    },
    {
      "signature": {
        "name": "SetAttributedText",
        "parameters": [
          {
            "type": {
              "name": "scoped_refptr<AttributedText>",
              "id": "attributedtext"
            },
            "name": "text"
          }
        ],
        "shortStr": "SetAttributedText(text)",
        "str": "void SetAttributedText(scoped_refptr<AttributedText> text)"
      },
      "description": "Set the attributed text to display.",
      "id": "setattributedtext-text"
    },
    {
      "signature": {
        "returnType": {
          "name": "AttributedText*",
          "id": "attributedtext"
        },
        "name": "GetAttributedText",
        "parameters": [],
        "shortStr": "GetAttributedText()",
        "str": "AttributedText* GetAttributedText() const"
      },
      "description": "Return the attributed text displayed.",
      "id": "getattributedtext"
    }
  ],
  "id": "label"
}