---
name: "GWindow"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/GWindow"
---

# GWindow(3o)

Windows

## NAME

GWindow - Windows

## Module

Module   GWindow

## Documentation

Module **GWindow**\
  :  **sig end**

Windows

**=== Windows ===**

**===** **GtkWindow** **===**

*class window\_skel :* **\[\> Gtk.window \] Gtk.obj -\> object end**

*class window :* **\[\> Gtk.window \] Gtk.obj -\> object end**

Toplevel widget which can contain other widgets

*val window* :  **?kind:Gtk.Tags.window\_type -\>** **?title:string -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?resizable:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:Gdk.Tags.window\_type\_hint -\>** **?position:Gtk.Tags.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\> ?height:int -\> ?show:bool -\> unit -\> window**

*val toplevel* :  **#GObj.widget -\> window option**

return the toplevel window of this widget, if existing

**===** **GtkDialog** **===**

*class 'a dialog\_signals :* **\[\> Gtk.dialog \] Gtk.obj -\> decode:(int -\> 'a) -\> object end**

*class \[\> \`DELETE\_EVENT \] dialog\_skel :* **\[\> Gtk.dialog \] Gtk.obj -\> object end**

*class \[\> \`DELETE\_EVENT \] dialog\_ext :* **\[\> Gtk.dialog \] Gtk.obj -\> object end**

Create popup windows

*class \[\> \`DELETE\_EVENT \] dialog :* **\[\> Gtk.dialog \] Gtk.obj -\> object end**

Create popup windows

*val dialog* :  **?no\_separator:bool -\>** **?parent:#window\_skel -\>** **?destroy\_with\_parent:bool -\>** **?title:string -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?resizable:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:Gdk.Tags.window\_type\_hint -\>** **?position:Gtk.Tags.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\>** **?height:int -\> ?show:bool -\> unit -\> \[\> \`DELETE\_EVENT \] dialog**

*type any\_response* =  **\[ \`ACCEPT** **\| \`APPLY** **\| \`CANCEL** **\| \`CLOSE** **\| \`DELETE\_EVENT** **\| \`HELP** **\| \`NO** **\| \`NONE** **\| \`OK** **\| \`OTHER of int** **\| \`REJECT** **\| \`YES \]**

Variation for safe typing

*class dialog\_any :* **\[\> Gtk.dialog \] Gtk.obj -\> \[any\_response\] dialog**

**===** **GtkMessageDialog** **===**

*type* **'a** *buttons*

*module Buttons :* **sig end**

*class type \[\> \`DELETE\_EVENT \] message\_dialog =* **object end**

Convenient message window

*val message\_dialog* :  **?message:string -\>** **?use\_markup:bool -\>** **message\_type:Gtk.Tags.message\_type -\>** **buttons:(\[\> \`DELETE\_EVENT \] as 'a) buttons -\>** **?parent:#window\_skel -\>** **?destroy\_with\_parent:bool -\>** **?title:string -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?resizable:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:Gdk.Tags.window\_type\_hint -\>** **?position:Gtk.Tags.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\> ?height:int -\> ?show:bool -\> unit -\> 'a message\_dialog**

**===** **GtkAboutDialog** **===**

*class about\_dialog :* **\[\> Gtk.about\_dialog \] Gtk.obj -\> object end**

**Since** GTK 2.6

*val about\_dialog* :  **?authors:string list -\>** **?comments:string -\>** **?copyright:string -\>** **?license:string -\>** **?logo:GdkPixbuf.pixbuf -\>** **?logo\_icon\_name:string -\>** **?name:string -\>** **?translator\_credits:string -\>** **?version:string -\>** **?website:string -\>** **?website\_label:string -\>** **?parent:#window\_skel -\>** **?destroy\_with\_parent:bool -\>** **?title:string -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?resizable:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:GdkEnums.window\_type\_hint -\>** **?position:GtkEnums.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\> ?height:int -\> ?show:bool -\> unit -\> about\_dialog**

Display information about an application.  A default handler is already connected to the  **response** signal. It simply hides the dialog. You could use it like this:  **let about\_dialog = ref (fun () -\> raise Not\_found)** **let show\_dialog () =** **try !about\_dialog ()** **with Not\_found -\>** **let dialog = GWindow.about\_dialog ~name:"..." (\* etc. \*) () in** **about\_dialog := dialog#present ;** **dialog#show ()**

**Since** GTK 2.6

**===** **File Chooser Dialog** **===**

*class 'a file\_chooser\_dialog\_signals :* **\[\> \`bin \| \`container \| \`dialog \| \`filechooser \| \`gtk \| \`widget \| \`window \]** **Gtk.obj -\> decode:(int -\> 'a) -\> object end**

**Since** GTK 2.4

*class \[\> \`DELETE\_EVENT \] file\_chooser\_dialog :* **\[\> \`bin \| \`container \| \`dialog \| \`filechooser \| \`gtk \| \`widget \| \`window \]** **Gtk.obj -\> object end**

**Since** GTK 2.4

*val file\_chooser\_dialog* :  **action:GtkEnums.file\_chooser\_action -\>** **?backend:string -\>** **?parent:#window\_skel -\>** **?destroy\_with\_parent:bool -\>** **?title:string -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?resizable:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:Gdk.Tags.window\_type\_hint -\>** **?position:Gtk.Tags.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\>** **?height:int -\>** **?show:bool -\> unit -\> \[\> \`DELETE\_EVENT \] file\_chooser\_dialog**

**Since** GTK 2.4

**===** **Selection Dialogs** **===**

*class color\_selection\_dialog :* **Gtk.color\_selection\_dialog Gtk.obj -\> object end**

*val color\_selection\_dialog* :  **?title:string -\>** **?parent:#window\_skel -\>** **?destroy\_with\_parent:bool -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:Gdk.Tags.window\_type\_hint -\>** **?position:Gtk.Tags.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\>** **?height:int -\> ?show:bool -\> unit -\> color\_selection\_dialog**

*class file\_selection :* **Gtk.file\_selection Gtk.obj -\> object end**

*val file\_selection* :  **?title:string -\>** **?show\_fileops:bool -\>** **?filename:string -\>** **?select\_multiple:bool -\>** **?parent:#window\_skel -\>** **?destroy\_with\_parent:bool -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?resizable:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:Gdk.Tags.window\_type\_hint -\>** **?position:Gtk.Tags.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\> ?height:int -\> ?show:bool -\> unit -\> file\_selection**

*class font\_selection\_dialog :* **Gtk.font\_selection\_dialog Gtk.obj -\> object end**

*val font\_selection\_dialog* :  **?title:string -\>** **?parent:#window\_skel -\>** **?destroy\_with\_parent:bool -\>** **?allow\_grow:bool -\>** **?allow\_shrink:bool -\>** **?icon:GdkPixbuf.pixbuf -\>** **?modal:bool -\>** **?resizable:bool -\>** **?screen:Gdk.screen -\>** **?type\_hint:Gdk.Tags.window\_type\_hint -\>** **?position:Gtk.Tags.window\_position -\>** **?wm\_name:string -\>** **?wm\_class:string -\>** **?border\_width:int -\>** **?width:int -\>** **?height:int -\> ?show:bool -\> unit -\> font\_selection\_dialog**

**===** **GtkPlug** **===**

*class plug\_signals :* **\[\> Gtk.plug \] Gtk.obj -\> object end**

*class plug :* **Gtk.plug Gtk.obj -\> object end**

Toplevel for embedding into other processes

*val plug* :  **window:Gdk.xid -\>** **?border\_width:int -\>** **?width:int -\> ?height:int -\> ?show:bool -\> unit -\> plug**

**===** **GtkSocket** **===**

*class socket\_signals :* **\[\> Gtk.socket \] Gtk.obj -\> object end**

*class socket :* **Gtk.socket Gtk.obj -\> object end**

Container for widgets from other processes

*val socket* :  **?border\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> socket**
