---
name: "Gtk_Entry"
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_Entry"
---

# Gtk\_Entry(3)

## NAME - Gtk\_Entry

## HEADER REQUIRED

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

## BASE CLASSES

[Gtk\_Editable(3)](/Gtk_Editable/3.md)

## DERIVED BY

[Gtk\_SpinButton(3)](/Gtk_SpinButton/3.md)

## PROPERTIES

- *text\_area*

  Type: GdkWindow\*\

- *backing\_pixmap*

  Type: GdkPixmap\*\

- *cursor*

  Type: GdkCursor\*\

- *text*

  Type: GdkWChar\*\

- *text\_size*

  Type: guint16\

-

   allocated size \

- *text\_length*

  Type: guint16\

-

   length in use \

- *text\_max\_length*

  Type: guint16\

- *scroll\_offset*

  Type: gint\

- *visible*

  Type: guint:1\

- *timer*

  Type: guint32\

- *button*

  Type: guint\

- *char\_offset*

  Type: gint\*\

-

   The x-offset of each character (including the last insertion position) \* only valid when the widget is realized \

- *text\_mb*

  Type: string\

-

   Same as 'text', but in multibyte \

- *text\_mb\_dirty*

  Type: guint:1\

-

   If true, 'text' and 'text\_mb' are not coherent \

- *use\_wchar*

  Type: guint:1\

-

   If true, we use the encoding of wchar\_t as the encoding of 'text'. \* Otherwise we use the encoding of multi-byte characters instead.

## PUBLIC MEMBER INDEX

```
Gtk_Entry();
Gtk_Entry(guint max);
Gtk_Entry(GtkEntry *castitem);
void  set_text(const string &text);
string  get_text() const;
unsigned int  get_text_length() const;
void  append_text(const string &text);
void  prepend_text(const string &text);
void  select_region(gint start, gint end);
void  set_position(gint position);
void  set_visibility(bool visible);
void  set_max_length(guint16 max);
GtkEntry*  gtkobj();
const GtkEntry*  gtkobj() const;
static bool  isGtkEntry(Gtk_Object *checkcast);
```

## PROTECTED MEMBER INDEX

```
friend  CppClassType;
typedef GtkEntry  BaseObjectType;
typedef GtkEntryClass  BaseClassType;
virtual void * get_parent_class();
```

## PRIVATE MEMBER INDEX

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

## PUBLIC MEMBER DESCRIPTIONS

## PROTECTED MEMBER DESCRIPTIONS

## PRIVATE MEMBER DESCRIPTIONS
