AwnDialog

## AwnDialog AwnDialog |

## Synopsis

                        AwnDialogPrivate;
                        AwnDialog;
    GtkWidget*          awn_dialog_new                      (void);
    GtkWidget*          awn_dialog_new_for_widget           (GtkWidget *widget);
    GtkWidget*          awn_dialog_new_for_widget_with_applet
                                                            (GtkWidget *widget,
                                                             AwnApplet *applet);
    void                awn_dialog_set_padding              (AwnDialog *dialog,
                                                             gint padding);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkWindow
                                           +----AwnDialog

## Implemented Interfaces

AwnDialog implements AtkImplementorIface and GtkBuildable.

## Properties

      "anchor"                   GtkWidget*            : Write
      "anchor-applet"            AwnApplet*            : Write
      "anchored"                 gboolean              : Read / Write / Construct
      "border"                   DesktopAgnosticColor*  : Read / Write / Construct
      "dialog-bg"                DesktopAgnosticColor*  : Read / Write / Construct
      "effects-hilight"          gboolean              : Read / Write / Construct
      "hide-on-esc"              gboolean              : Read / Write / Construct
      "hide-on-unfocus"          gboolean              : Read / Write / Construct
      "hilight"                  DesktopAgnosticColor*  : Read / Write / Construct
      "position"                 GtkPositionType       : Read / Write / Construct
      "title-bg"                 DesktopAgnosticColor*  : Read / Write / Construct
      "window-offset"            gint                  : Read / Write / Construct
      "window-padding"           gint                  : Read / Write / Construct

## Description

## Details

### AwnDialogPrivate

    typedef struct _AwnDialogPrivate AwnDialogPrivate;

### AwnDialog

    typedef struct _AwnDialog AwnDialog;

### awn_dialog_new ()

    GtkWidget*          awn_dialog_new                      (void);

Creates a new toplevel window.

Returns : | a new dialog. Caller is responsible for freeing the memory when the dialog is no longer being used.

### awn_dialog_new_for_widget ()

    GtkWidget*          awn_dialog_new_for_widget           (GtkWidget *widget);

Creates a new toplevel window that is "attached" to the `widget`.

`widget` : | The widget to which to associate the dialog.
Returns : | a new dialog. Caller is responsible for freeing the memory when the dialog is no longer being used.

### awn_dialog_new_for_widget_with_applet ()

    GtkWidget*          awn_dialog_new_for_widget_with_applet
                                                            (GtkWidget *widget,
                                                             AwnApplet *applet);

Creates a new toplevel window that is "attached" to the `widget`.

`widget` : | The widget to which to associate the dialog.
`applet` : | AwnApplet associated with `widget`.
Returns : | a new dialog. Caller is responsible for freeing the memory when the dialog is no longer being used.

### awn_dialog_set_padding ()

    void                awn_dialog_set_padding              (AwnDialog *dialog,
                                                             gint padding);

`dialog` : |
`padding` : |

## Property Details

### The `"anchor"` property

      "anchor"                   GtkWidget*            : Write

Widget this window is attached to.

### The `"anchor-applet"` property

      "anchor-applet"            AwnApplet*            : Write

AwnApplet this window is attached to.

### The `"anchored"` property

      "anchored"                 gboolean              : Read / Write / Construct

Moves the window together with it's anchor widget.

Default value: TRUE

### The `"border"` property

      "border"                   DesktopAgnosticColor*  : Read / Write / Construct

Border color.

### The `"dialog-bg"` property

      "dialog-bg"                DesktopAgnosticColor*  : Read / Write / Construct

Dialog background color.

### The `"effects-hilight"` property

      "effects-hilight"          gboolean              : Read / Write / Construct

Sets the anchored widget active when dialog is focused and the anchor implements AwnOverlayable interface.

Default value: TRUE

### The `"hide-on-esc"` property

      "hide-on-esc"              gboolean              : Read / Write / Construct

Hides the window when escape key is pressed.

Default value: TRUE

### The `"hide-on-unfocus"` property

      "hide-on-unfocus"          gboolean              : Read / Write / Construct

Whether to hide the dialog when it's no longer active.

Default value: FALSE

### The `"hilight"` property

      "hilight"                  DesktopAgnosticColor*  : Read / Write / Construct

Internal border color.

### The `"position"` property

      "position"                 GtkPositionType       : Read / Write / Construct

The position of the window.

Default value: GTK_POS_BOTTOM

### The `"title-bg"` property

      "title-bg"                 DesktopAgnosticColor*  : Read / Write / Construct

Background color for dialog's title.

### The `"window-offset"` property

      "window-offset"            gint                  : Read / Write / Construct

The offset from window border.

Default value: 15

### The `"window-padding"` property

      "window-padding"           gint                  : Read / Write / Construct

The padding from window border.

Allowed values: >= 0

Default value: 15