---
name: "Gtk_Window"
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_Window"
---

# Gtk\_Window(3)

## NAME - Gtk\_Window

## HEADER REQUIRED

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

## BASE CLASSES

[Gtk\_Bin(3)](/Gtk_Bin/3.md)

## DERIVED BY

[Gtk\_ColorSelectionDialog(3)](/Gtk_ColorSelectionDialog/3.md) [Gtk\_Dialog(3)](/Gtk_Dialog/3.md) [Gtk\_FileSelection(3)](/Gtk_FileSelection/3.md) [Gtk\_FontSelectionDialog(3)](/Gtk_FontSelectionDialog/3.md) [Gtk\_Plug(3)](/Gtk_Plug/3.md)

## PROPERTIES

- *title*

  Type: \_gtk\_string\
   Set:  **set\_title**()\

-

   Title displayed by window manager for this window. 0 is means this window has no title.

-

  Windows with a *type* of {num GTK\_WINDOW\_POPUP} may not display  a title even if set.\

- *wmclass\_name*

  Type: \_gtk\_string\
   Set:  **set\_wmclass**()\

-

   Property used for X window manager.\

- *wmclass\_class*

  Type: \_gtk\_string\
   Set:  **set\_wmclass**()\

-

   Property used for X window manager.\

- *type*

  Type: GtkWindowType\

-

   This flags determine what kind of decorations and behavior this window gets. This information is given to the window manager

  and it determines how to show the window on the screen. See {page GtkWindowType}

-

  Possible values for GtkWindowType argument are: {num GTK\_WINDOW\_TOPLEVEL}, {num GTK\_WINDOW\_DIALOG}, {num GTK\_WINDOW\_POPUP} \

- *focus\_widget*

  Type: Gtk\_Widget\*\

- *default\_widget*

  Type: Gtk\_Widget\*\

- *transient\_parent*

  Type: Gtk\_Window\*\

- *resize\_count*

  Type: gushort\

- *allow\_shrink*

  Type: guint:1\
   Set:  **set\_policy**()\

-

   Indicates if shrinking this window is allowed.\

- *allow\_grow*

  Type: guint:1\
   Set:  **set\_policy**()\

-

   Indicates if expanding this window is allowed.\

- *auto\_shrink*

  Type: guint:1\
   Set:  **set\_policy**()\

- *handling\_resize*

  Type: guint:1\

- *position*

  Type: guint:2\

-

   Determine where the window will be displayed when it is finally drawn to the screen. Currently the following positions and  the effect they have on window placement can be specified.   See {page GtkWindowPosition}

-

  Possible states are: {num GTK\_WIN\_POS\_NONE}, {num GTK\_WIN\_POS\_CENTER}, {num GTK\_WIN\_POS\_MOUSE}\

- *use\_uposition*

  Type: guint:1\

-

   The following flag is initially TRUE when a window is mapped. and will be set to FALSE after it is first positioned. It is also temporarily reset when the window's size changes.

-

  When TRUE, we move the window to the position the app set.

- *modal*

  Type: guint:1\
   Set:  **set\_modal**()\

-

   A modal window is one that must be responded to before  the user is allowed to return to the application.  Use modal windows sparingly.

## PUBLIC MEMBER INDEX

```
Gtk_Window(GtkWindowType type=GTK_WINDOW_TOPLEVEL);
  Create a window.
Gtk_Window(GtkWindow *castitem);
void  set_title(const _gtk_string &title);
  Set the window {title}.
void  set_wmclass(const _gtk_string &wmclass_name, const _gtk_string &wmclass_class);
  Set the window manager names.
void  set_policy(gint allow_shrink, gint allow_grow, gint auto_shrink);
  Set the window resizing policy.
void  add_accel_group(const Gtk_AccelGroup &accel_group);
  (Gtk 1.1)
void  remove_accel_group(const Gtk_AccelGroup &accel_group);
  (Gtk 1.1)
void  set_modal(bool modal);
  (Gtk 1.1)
void  set_default_size(gint width, gint height);
  (Gtk 1.1)
void  set_geometry_hints(const Gtk_Widget &geometry_widget, GdkGeometry *geometry, GdkWindowHints geom_mask);
  (Gtk 1.1)
void  set_transient_for(const Gtk_Window &parent);
  (Gtk 1.1)
void  set_position(GtkWindowPosition position);
  Set the window position.
gint  activate_focus();
gint  activate_default();
signal void  set_focus_c(GtkWidget*);
signal void  set_focus(Gtk_Widget*);
GtkWindow*  gtkobj();
const GtkWindow*  gtkobj() const;
static bool  isGtkWindow(Gtk_Object *checkcast);
```

## PROTECTED MEMBER INDEX

```
friend  CppClassType;
typedef GtkWindow  BaseObjectType;
typedef GtkWindowClass  BaseClassType;
virtual void * get_parent_class();
virtual void  set_focus_c_impl(GtkWidget* p1);
```

## PRIVATE MEMBER INDEX

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

## PUBLIC MEMBER DESCRIPTIONS

- Gtk\_Window::**Gtk\_Window** (*GtkWindowType type=GTK\_WINDOW\_TOPLEVEL*);

  Create a window..\
   This creates a window with an optional *type*. \

- void Gtk\_Window::**set\_wmclass** (*const \_gtk\_string &wmclass\_name, const \_gtk\_string &wmclass\_class*);

  Set the window manager names..\
   See *wmclass\_name* and *wmclass\_class*.\

- void Gtk\_Window::**set\_policy** (*gint allow\_shrink, gint allow\_grow, gint auto\_shrink*);

  Set the window resizing policy..\
   See *allow\_shrink*,*allow\_grow*, and *auto\_shrink*\

## PROTECTED MEMBER DESCRIPTIONS

## PRIVATE MEMBER DESCRIPTIONS
