## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Style

- Goto spec source

# Description

    package Gtk.Style is

This package contains various functions to draw widget parts on the screen.

Whenever possible, you should use these functions instead of directly the ones from Gdk.Drawable, since this package will properly take into account the user's theme and color choice.

Consider also using directly the function Gtk.Widget.Modify_Font, Gtk.Widget.Modify_Background,... rather than use the lower level Gtk_Style object.

See Gtk.RC to learn how styles can be defined in external configuration files by the end-user of your application.

Binding from C File version 2.8.17

# Classes

### Gtk_Style_Record

- Goto declaration in source

    type Gtk_Style_Record is new Glib.Object.GObject_Record with null record;

#### Ancestors:

Glib.Object.GObject_Record

#### Primitive operations:

Apply_Default_Background

- To API doc
- To spec

Draw_Shadow

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Paint_Arrow

- To API doc
- To spec

Paint_Box

- To API doc
- To spec

Paint_Box_Gap

- To API doc
- To spec

Paint_Check

- To API doc
- To spec

Paint_Diamond

- To API doc
- To spec

Paint_Expander

- To API doc
- To spec

Paint_Extension

- To API doc
- To spec

Paint_Flat_Box

- To API doc
- To spec

Paint_Focus

- To API doc
- To spec

Paint_Hline

- To API doc
- To spec

Paint_Layout

- To API doc
- To spec

Paint_Option

- To API doc
- To spec

Paint_Polygon

- To API doc
- To spec

Paint_Resize_Grip

- To API doc
- To spec

Paint_Shadow

- To API doc
- To spec

Paint_Shadow_Gap

- To API doc
- To spec

Paint_Slider

- To API doc
- To spec

Paint_Tab

- To API doc
- To spec

Paint_Vline

- To API doc
- To spec

# Types

### Gtk_Style

- Goto declaration in source

    type Gtk_Style is access all Gtk_Style_Record'Class;

### Gtk_Rc_Property_Parser

- Goto declaration in source

    type Gtk_Rc_Property_Parser is access function
         (Pspec     : Glib.Param_Spec;
          Rc_String : Interfaces.C.Strings.chars_ptr;
          Value     : access Glib.Values.GValue) return Gboolean;

### Gtk_Border_Record

- Goto declaration in source

    type Gtk_Border_Record is record
          Left   : Gint;
          Right  : Gint;
          Top    : Gint;
          Bottom : Gint;
       end record;

### Gtk_Border

- Goto declaration in source

    type Gtk_Border is access all Gtk_Border_Record;

# Constants & Global variables

### Null_Style

- Goto declaration in source

(Gtk_Style)

    Null_Style : constant Gtk_Style := null;

### Signal_Realize

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Realize   : constant Glib.Signal_Name := "realize";

### Signal_Unrealize

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Unrealize : constant Glib.Signal_Name := "unrealize";

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Style: out Gtk_Style);

### Initialize

- Goto spec in source

    procedure Initialize (Style: access Gtk_Style_Record'Class);

Creates or initializes a new style

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Gtk.Gtk_Type;

Return the internal value associated with a Gtk_Style.

### Copy

- Goto spec in source

    function Copy (Source: Gtk_Style) return Gtk_Style;

Copy a Gtk_Style

### Attach

- Goto spec in source

    function Attach (Style: Gtk_Style;Window: Gdk.Window.Gdk_Window) return Gtk_Style;

### Detach

- Goto spec in source

    procedure Detach (Style: Gtk_Style);

Attaches a style to a window; this process allocates the colors and creates the GC's for the style - it specializes it to a particular visual and colormap. The process may involve the creation of a new style if the style has already been attached to a window with a different style and colormap. It returns either Style or a newly allocated style. If a new one is created, the parameter will be Unref once, and the new one Ref once.

### Set_Background

- Goto spec in source

    procedure Set_Background (Style: Gtk_Style;Window: Gdk.Window.Gdk_Window;State_Type: Gtk_State_Type);

Set the background color of Window to the background color specified by Style.

### Apply_Default_Background

- Goto spec in source

    procedure Apply_Default_Background (Style: access Gtk_Style_Record;Window: Gdk.Window.Gdk_Window;Set_Bg: Boolean;State_Type: Gtk_State_Type;Area: Gdk.Rectangle.Gdk_Rectangle;X: Gint;Y: Gint;Width: Gint;Height: Gint);

Applies the default background from style to the given area in Window

### Set_Background

- Goto spec in source

    procedure Set_Background (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Color: Gdk.Color.Gdk_Color);

### Set_Bg

- Goto spec in source

    procedure Set_Bg (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Color: Gdk.Color.Gdk_Color) renames Set_Background;

### Get_Background

- Goto spec in source

    function Get_Background (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.Color.Gdk_Color;

### Get_Bg

- Goto spec in source

    function Get_Bg (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_Color renames Get_Background;

Set or get the background color that this style uses in the given state

### Set_Background_GC

- Goto spec in source

    procedure Set_Background_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC);

### Set_Background

- Goto spec in source

    procedure Set_Background (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk_GC) renames Set_Background_GC;

### Set_Bg

- Goto spec in source

    procedure Set_Bg (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Background_GC;

### Set_Bg_GC

- Goto spec in source

    procedure Set_Bg_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Background_GC;

### Get_Background_GC

- Goto spec in source

    function Get_Background_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.GC.Gdk_GC;

### Get_Bg

- Goto spec in source

    function Get_Bg (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Background_GC;

### Get_Background

- Goto spec in source

    function Get_Background (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Background_GC;

### Get_Bg_GC

- Goto spec in source

    function Get_Bg_GC (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Background_GC;

Set or get the graphic context that the style is using for the background

### Set_Foreground

- Goto spec in source

    procedure Set_Foreground (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Color: Gdk.Color.Gdk_Color);

### Set_Fg

- Goto spec in source

    procedure Set_Fg (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Color: Gdk.Color.Gdk_Color) renames Set_Foreground;

### Get_Foreground

- Goto spec in source

    function Get_Foreground (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.Color.Gdk_Color;

### Get_Fg

- Goto spec in source

    function Get_Fg (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_Color renames Get_Foreground;

Set or get the foreground color that the style is using

### Set_Foreground_GC

- Goto spec in source

    procedure Set_Foreground_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC);

### Set_Fg_GC

- Goto spec in source

    procedure Set_Fg_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Foreground_GC;

### Set_Foreground

- Goto spec in source

    procedure Set_Foreground (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Foreground_GC;

### Set_Fg

- Goto spec in source

    procedure Set_Fg (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Foreground_GC;

### Get_Foreground_GC

- Goto spec in source

    function Get_Foreground_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.GC.Gdk_GC;

### Get_Foreground

- Goto spec in source

    function Get_Foreground (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Foreground_GC;

### Get_Fg

- Goto spec in source

    function Get_Fg (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Foreground_GC;

### Get_Fg_GC

- Goto spec in source

    function Get_Fg_GC (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Foreground_GC;

Set or get the graphic context used by this style for the foreground

### Set_Light

- Goto spec in source

    procedure Set_Light (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Color: Gdk.Color.Gdk_Color);

### Get_Light

- Goto spec in source

    function Get_Light (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.Color.Gdk_Color;

### Set_Light_GC

- Goto spec in source

    procedure Set_Light_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC);

### Get_Light_GC

- Goto spec in source

    function Get_Light_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.GC.Gdk_GC;

### Set_Light

- Goto spec in source

    procedure Set_Light (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Light_GC;

### Get_Light

- Goto spec in source

    function Get_Light (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Light_GC;

Set or get the lighter color or graphic context that this style is using. This color is used to draw the shadows around rectangles for instance

### Set_Dark

- Goto spec in source

    procedure Set_Dark (Style: Gtk_Style;State_Type: Gtk_State_Type;Color: Gdk.Color.Gdk_Color);

### Set_Dark_GC

- Goto spec in source

    procedure Set_Dark_GC (Style: Gtk_Style;State_Type: Gtk_State_Type;GC: Gdk.GC.Gdk_GC);

### Set_Dark

- Goto spec in source

    procedure Set_Dark (Style: Gtk_Style;State_Type: Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Dark_GC;

### Get_Dark

- Goto spec in source

    function Get_Dark (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk.Color.Gdk_Color;

### Get_Dark_GC

- Goto spec in source

    function Get_Dark_GC (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk.GC.Gdk_GC;

### Get_Dark

- Goto spec in source

    function Get_Dark (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Dark_GC;

Set or get the darker color or graphic context that this style is using. This color is used to draw the shadows around rectangles for instance.

### Set_Middle

- Goto spec in source

    procedure Set_Middle (Style: Gtk_Style;State_Type: Gtk_State_Type;Color: Gdk.Color.Gdk_Color);

### Set_Mid

- Goto spec in source

    procedure Set_Mid (Style: Gtk_Style;State_Type: Gtk_State_Type;Color: Gdk.Color.Gdk_Color) renames Set_Middle;

### Get_Middle

- Goto spec in source

    function Get_Middle (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk.Color.Gdk_Color;

### Get_Mid

- Goto spec in source

    function Get_Mid (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_Color renames Get_Middle;

### Set_Middle_GC

- Goto spec in source

    procedure Set_Middle_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC);

### Get_Middle_GC

- Goto spec in source

    function Get_Middle_GC (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC;

### Set_Middle

- Goto spec in source

    procedure Set_Middle (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk_GC) renames Set_Middle_GC;

### Get_Middle

- Goto spec in source

    function Get_Middle (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Middle_GC;

### Set_Mid_GC

- Goto spec in source

    procedure Set_Mid_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk_GC) renames Set_Middle_GC;

### Get_Mid_GC

- Goto spec in source

    function Get_Mid_GC (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Middle_GC;

### Set_Mid

- Goto spec in source

    procedure Set_Mid (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Middle_GC;

### Get_Mid

- Goto spec in source

    function Get_Mid (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Middle_GC;

Set or get the middle color. This color should be between the light and dark colors set above.

### Set_Text

- Goto spec in source

    procedure Set_Text (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Color: Gdk.Color.Gdk_Color);

### Get_Text

- Goto spec in source

    function Get_Text (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.Color.Gdk_Color;

### Set_Text_GC

- Goto spec in source

    procedure Set_Text_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC);

### Get_Text_GC

- Goto spec in source

    function Get_Text_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.GC.Gdk_GC;

### Set_Text

- Goto spec in source

    procedure Set_Text (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Text_GC;

### Get_Text

- Goto spec in source

    function Get_Text (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Text_GC;

Set or get the color to use when drawing text.

### Set_Base

- Goto spec in source

    procedure Set_Base (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Color: Gdk.Color.Gdk_Color);

### Get_Base

- Goto spec in source

    function Get_Base (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.Color.Gdk_Color;

### Set_Base_GC

- Goto spec in source

    procedure Set_Base_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC);

### Get_Base_GC

- Goto spec in source

    function Get_Base_GC (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.GC.Gdk_GC;

### Set_Base

- Goto spec in source

    procedure Set_Base (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;GC: Gdk.GC.Gdk_GC) renames Set_Base_GC;

### Get_Base

- Goto spec in source

    function Get_Base (Style: Gtk_Style;State_Type: Gtk_State_Type) return Gdk_GC renames Get_Base_GC;

Set or get the base color

### Set_Black

- Goto spec in source

    procedure Set_Black (Style: Gtk_Style;Color: Gdk.Color.Gdk_Color);

### Get_Black

- Goto spec in source

    function Get_Black (Style: Gtk_Style) return Gdk.Color.Gdk_Color;

### Set_Black_GC

- Goto spec in source

    procedure Set_Black_GC (Style: Gtk_Style;GC: Gdk.GC.Gdk_GC);

### Get_Black_GC

- Goto spec in source

    function Get_Black_GC (Style: Gtk_Style) return Gdk.GC.Gdk_GC;

### Set_Black

- Goto spec in source

    procedure Set_Black (Style: Gtk_Style;GC: Gdk.GC.Gdk_GC) renames Set_Black_GC;

### Get_Black

- Goto spec in source

    function Get_Black (Style: Gtk_Style) return Gdk.GC.Gdk_GC renames Get_Black_GC;

Set or get the "black" color. It isn't necessarily black, although most themes will want to use black here.

### Set_White

- Goto spec in source

    procedure Set_White (Style: Gtk_Style;Color: Gdk.Color.Gdk_Color);

### Get_White

- Goto spec in source

    function Get_White (Style: Gtk_Style) return Gdk.Color.Gdk_Color;

### Set_White_GC

- Goto spec in source

    procedure Set_White_GC (Style: Gtk_Style;GC: Gdk.GC.Gdk_GC);

### Get_White_GC

- Goto spec in source

    function Get_White_GC (Style: Gtk_Style) return Gdk.GC.Gdk_GC;

### Set_White

- Goto spec in source

    procedure Set_White (Style: Gtk_Style;GC: Gdk.GC.Gdk_GC) renames Set_White_GC;

### Get_White

- Goto spec in source

    function Get_White (Style: Gtk_Style) return Gdk.GC.Gdk_GC renames Get_White_GC;

Set or get the "white" color. It isn't necessarily white, although most themes will want to use white here.

### Set_Font_Description

- Goto spec in source

    procedure Set_Font_Description (Style: Gtk_Style;Desc: Pango.Font.Pango_Font_Description);

### Get_Font_Description

- Goto spec in source

    function Get_Font_Description (Style: Gtk_Style) return Pango.Font.Pango_Font_Description;

Set or get the font to use for this style

### Get_Font

- Goto spec in source

    function Get_Font (Style: Gtk_Style) return Gdk.Font.Gdk_Font;

<doc_ignore>

### Set_Bg_Pixmap

- Goto spec in source

    procedure Set_Bg_Pixmap (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type;Pixmap: Gdk.Pixmap.Gdk_Pixmap);

### Get_Bg_Pixmap

- Goto spec in source

    function Get_Bg_Pixmap (Style: Gtk_Style;State_Type: Enums.Gtk_State_Type) return Gdk.Pixmap.Gdk_Pixmap;

Set or get the pixmap to use for background

### X_Thickness

- Goto spec in source

    function X_Thickness (Style: Gtk_Style) return Gint;

Width of the vertical scrollbars and ranges when Style is applied. In fact, this thickness is used for a lot of widgets whose width does not depend on their content, such as rulers,...

### Y_Thickness

- Goto spec in source

    function Y_Thickness (Style: Gtk_Style) return Gint;

Height of the horizontal scrollbars and ranges when Style is applied.

### Draw_Insertion_Cursor

- Goto spec in source

    procedure Draw_Insertion_Cursor (Widget: access Glib.Object.GObject_Record'Class;Drawable: Gdk_Drawable;Area: Gdk.Rectangle.Gdk_Rectangle;Location: Gdk.Rectangle.Gdk_Rectangle;Is_Primary: Boolean;Direction: Gtk_Text_Direction;Draw_Arrow: Boolean);

Draws a text caret on Drawable at Location. This is not a style function but merely a convenience function for drawing the standard cursor shape. Is_Primary indicates whether the cursor should be the primary cursor color. Direction is the text direction. Draw_Arrow should be true to draw a directional arrow on the cursor. Should be False unless the cursor is split.

### Paint_Handle

- Goto spec in source

    procedure Paint_Handle (Style: Gtk_Style;Window: Gdk.Gdk_Window;State_Type: Gtk.Enums.Gtk_State_Type;Shadow_Type: Gtk.Enums.Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "paned";X, Y, Width, Height: Gint;Orientation: Gtk.Enums.Gtk_Orientation);

Paint the handles as is done in the Gtk_Paned widget (ie a series of small dots in Window, that indicate that Window can be manipulated and resized. If Detail is "paned", only a few dots are painted in the middle of window (aligned either horizontally or vertically depending on Orientation). Any other value for Detail draws points on the whole length of Window. (X, Y, Width, Height) is the area in which the dots should be painted. For the whole window, use (0, 0, -1, -1). Only the area that intersect Area is drawn.

### Paint_Arrow

- Goto spec in source

    procedure Paint_Arrow (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";Arrow_Type: Gtk_Arrow_Type;Fill: Boolean;X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws an arrow in the given rectangle on Window using the given parameters. Arrow_Type determines the direction of the arrow. The default theme engine only recognazied "menu_scroll_arrow_up" for Detail.

### Paint_Box

- Goto spec in source

    procedure Paint_Box (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a box on Window with the given parameters. The default theme engine recognizes the following for Detail: "spinbutton_up", "spinbutton_down", "paned", "optionmenu"

### Paint_Box_Gap

- Goto spec in source

    procedure Paint_Box_Gap (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint;Gap_Side: Gtk_Position_Type;Gap_X: Gint;Gap_Width: Gint);

Draws a box in Window using the given style and state and shadow type, leaving a gap in one side.

### Paint_Check

- Goto spec in source

    procedure Paint_Check (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a check button indicator in the given rectangle on Window with the given parameters. The default theme handles the following values for detail: "cellcheck", "check"

### Paint_Diamond

- Goto spec in source

    procedure Paint_Diamond (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a diamond in the given rectangle on Window using the given parameters.

### Paint_Expander

- Goto spec in source

    procedure Paint_Expander (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Expander_Style: Gtk_Expander_Style);

Draws an expander as used in Gtk_Tree_View. X and Y specify the center the expander. The size of the expander is determined by the "expander-size" style property of Widget. (If widget is not specified or doesn't have an "expander-size" property, an unspecified default size will be used, since the caller doesn't have sufficient information to position the expander, this is likely not useful.) The expander is expander_size pixels tall in the collapsed position and expander_size pixels wide in the expanded position.

### Paint_Extension

- Goto spec in source

    procedure Paint_Extension (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint;Gap_Side: Gtk_Position_Type);

Draws an extension, i.e. a notebook tab.

### Paint_Flat_Box

- Goto spec in source

    procedure Paint_Flat_Box (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a flat box on Window with the given parameters.

### Paint_Focus

- Goto spec in source

    procedure Paint_Focus (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a focus indicator around the given rectangle on Window using the given style.

### Paint_Hline

- Goto spec in source

    procedure Paint_Hline (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X1: Gint;X2: Gint;Y: Gint);

Draws a horizontal line from (X1, Y) to (X2, Y) in Window using the given style and state.

### Paint_Layout

- Goto spec in source

    procedure Paint_Layout (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Use_Text: Boolean;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Layout: Pango.Layout.Pango_Layout);

Draws a layout on Window using the given parameters.

### Paint_Option

- Goto spec in source

    procedure Paint_Option (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a radio button indicator in the given rectangle on Window with the given parameters.

### Paint_Polygon

- Goto spec in source

    procedure Paint_Polygon (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";Points: Gdk.Types.Gdk_Points_Array;Fill: Boolean);

Draws a polygon on Window with the given parameters.

### Paint_Resize_Grip

- Goto spec in source

    procedure Paint_Resize_Grip (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";Edge: Gdk.Window.Gdk_Window_Edge;X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a resize grip in the given rectangle on Window using the given parameters.

### Paint_Shadow

- Goto spec in source

    procedure Paint_Shadow (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws a shadow around the given rectangle in Window using the given style and state and shadow type.

### Paint_Shadow_Gap

- Goto spec in source

    procedure Paint_Shadow_Gap (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint;Gap_Side: Gtk_Position_Type;Gap_X: Gint;Gap_Width: Gint);

Draws a shadow around the given rectangle in Window using the given style and state and shadow type, leaving a gap in one side.

### Paint_Slider

- Goto spec in source

    procedure Paint_Slider (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint;Orientation: Gtk_Orientation);

Draws a slider in the given rectangle on Window using the given style and orientation.

### Paint_Tab

- Goto spec in source

    procedure Paint_Tab (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on Window using the given parameters.

### Paint_Vline

- Goto spec in source

    procedure Paint_Vline (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Area: Gdk.Rectangle.Gdk_Rectangle := Gdk.Rectangle.Full_Area;Widget: access Glib.Object.GObject_Record'Class;Detail: String := "";Y1: Gint;Y2: Gint;X: Gint);

Draws a vertical line from (X, Y1) to (X, Y2) in Window using the given style and state.

### Draw_Polygon

- Goto spec in source

    procedure Draw_Polygon (Style: Gtk_Style;Window: Gdk.Window.Gdk_Window;State_Type: Enums.Gtk_State_Type;Shadow_Type: Enums.Gtk_Shadow_Type;Points: Gdk.Types.Gdk_Points_Array;Fill: Boolean);

Draw_Polygon Draws a polygon in Window

### Draw_Arrow

- Goto spec in source

    procedure Draw_Arrow (Style: Gtk_Style;Window: Gdk.Window.Gdk_Window;State_Type: Enums.Gtk_State_Type;Shadow_Type: Enums.Gtk_Shadow_Type;Arrow_Type: Enums.Gtk_Arrow_Type;Fill: Boolean;X, Y: Gint;Width: Gint;Height: Gint);

Draw_Arrow Draws an arrow in Window, within the given rectangle

### Draw_Shadow

- Goto spec in source

    procedure Draw_Shadow (Style: access Gtk_Style_Record;Window: Gdk_Window;State_Type: Gtk_State_Type;Shadow_Type: Gtk_Shadow_Type;X: Gint;Y: Gint;Width: Gint;Height: Gint);

Draw_Shadow Draws a shadow around the given rectangle in @window using the given style and state and shadow type.

### Draw_String

- Goto spec in source

    procedure Draw_String (Style: Gtk_Style;Window: Gdk.Window.Gdk_Window;State_Type: Enums.Gtk_State_Type;X, Y: Gint;Str: UTF8_String);

Draw_String Draws a text on Window

### Border_Copy

- Goto spec in source

    function Border_Copy (Border: access Gtk_Border_Record) return Gtk_Border;

Copies a Gtk_Border structure.

### Border_Free

- Goto spec in source

    procedure Border_Free (Border: access Gtk_Border_Record);

Frees a Gtk_Border structure.

### Border_Get_Type

- Goto spec in source

    function Border_Get_Type return GType;