---
name: "Gtk_Label"
section: "3"
platform: "linux"
package: "libgtkmm-dev"
version: "1.0.3-1.1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk_Label"
---

# Gtk\_Label(3)

## NAME - Gtk\_Label

Text string widget.

## HEADER REQUIRED

**#include \<gtk--/label.h&gt;\>**

## BASE CLASSES

[Gtk\_Misc(3)](/Gtk_Misc/3.md)

## DERIVED BY

[Gtk\_AccelLabel(3)](/Gtk_AccelLabel/3.md) [Gtk\_TipsQuery(3)](/Gtk_TipsQuery/3.md)

## DESCRIPTION

A simple setable widget for holding a string.

## PROPERTIES

- *label*

  Type: string\
   Get:  **get**(),**get\_text**()\
   Set:  **set**(),**set\_text**()\

-

   Labels text.\

- *label\_wc*

  Type: GdkWChar\*\

-

   Label in wide characters. (not tested)\

- *pattern*

  Type: string\

- *words*

  Type: GtkLabelWord\*\

- *max\_width*

  Type: guint:16\

- *jtype*

  Type: guint:2\
   Set:  **set\_justify**()\

-

   Specifies how label will behave with more than one line in it.  If you're looking for changing label alignment, check  Gtk\_Misc::**set\_alignment**().

-

  Possible values: {num GTK\_JUSTIFY\_LEFT, GTK\_JUSTIFY\_RIGHT, GTK\_JUSTIFY\_CENTER, GTK\_JUSTIFY\_FILL}\

- *wrap*

  Type: gboolean\

-

   .IP

## PUBLIC MEMBER INDEX

```
Gtk_Label(const _gtk_string &label = 0);
Gtk_Label(GtkLabel *castitem);
void  set(const string &str);
  Set the label text to match {
void  set_text(const string &str);
  Alias for {set()}
string  get() const;
  Return the current label text.
string  get_text() const;
  Return the current label text.
void  set_justify(GtkJustification jtype);
  Sets the justification for multiple lines.
void  set_pattern(const _gtk_string &pattern);
  (Gtk 1.1)
guint  parse_uline(const string &str);
  (Gtk 1.1)
void  set_line_wrap(bool wrap);
  (Gtk 1.1)
GtkLabel*  gtkobj();
const GtkLabel*  gtkobj() const;
static bool  isGtkLabel(Gtk_Object *checkcast);
```

## PROTECTED MEMBER INDEX

```
friend  CppClassType;
typedef GtkLabel  BaseObjectType;
typedef GtkLabelClass  BaseClassType;
virtual void * get_parent_class();
```

## PRIVATE MEMBER INDEX

```
static CppClassType  label_class;
GtkType  get_type();
```

## PUBLIC MEMBER DESCRIPTIONS

- void Gtk\_Label::**set** (*const string &str*);

  Set the label text to match *str*..\
   Text can not be NULL.\

## PROTECTED MEMBER DESCRIPTIONS

## PRIVATE MEMBER DESCRIPTIONS
