## WebKitIRenderTheme WebKitIRenderTheme |

## Synopsis

                        WebKitIRenderTheme;
    enum                WebKitIRenderThemePlatformColor;
                        WebKitIRenderThemeScrollbarMetrics;
                        WebKitIRenderThemeWidgetMetrics;
                        WebKitIRenderThemeWidgetState;
    enum                WebKitIRenderThemeWidgetType;
                        cairo_rectangle_int_t;
    GType               webkit_irender_theme_get_type       (void);
    guint32             webkit_irender_theme_get_platform_color
                                                            (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemePlatformColor Param2);
    guint32             webkit_irender_theme_get_system_color
                                                            (WebKitIRenderTheme *Param1,
                                                             int Param2);
    gboolean            webkit_irender_theme_get_widget_metrics
                                                            (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemeWidgetMetrics *Param2);
    gboolean            webkit_irender_theme_get_scrollbar_metrics
                                                            (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemeScrollbarMetrics *Param2);
    gboolean            webkit_irender_theme_paint_widget   (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemeWidgetType Param2,
                                                             WebKitIRenderThemeWidgetState *Param3,
                                                             gint flags,
                                                             cairo_t *Param5,
                                                             cairo_rectangle_int_t *Param6);
    WebKitIRenderTheme * webkit_irender_theme_get_default   (void);
    void                webkit_irender_theme_set_default    (WebKitIRenderTheme *Param1);

## Object Hierarchy

      GInterface
       +----WebKitIRenderTheme

## Known Implementations

WebKitIRenderTheme is implemented by MxRenderTheme and WebKitDefaultRenderTheme.

## Description

## Details

### WebKitIRenderTheme

    typedef struct _WebKitIRenderTheme WebKitIRenderTheme;

### enum WebKitIRenderThemePlatformColor

    typedef enum {
        /* Text selection colors */
        platformColorActiveSelectionBackground,
        platformColorInactiveSelectionBackground,
        platformColorActiveSelectionForeground,
        platformColorInactiveSelectionForeground,

        /* List box selection colors */
        platformColorActiveListBoxSelectionBackground,
        platformColorActiveListBoxSelectionForeground,
        platformColorInactiveListBoxSelectionBackground,
        platformColorInactiveListBoxSelectionForeground,

        /* Highlighting colors for TextMatches */
        platformColorActiveTextSearchHighlightColor,
        platformColorInactiveTextSearchHighlightColor,

        platformColorFocusRingColor
    } WebKitIRenderThemePlatformColor;

Platform colors.

`platformColorActiveSelectionBackground` | Text selection colors
`platformColorInactiveSelectionBackground` | Text selection colors
`platformColorActiveSelectionForeground` | Text selection colors
`platformColorInactiveSelectionForeground` | Text selection colors
`platformColorActiveListBoxSelectionBackground` | List box selection colors
`platformColorActiveListBoxSelectionForeground` | List box selection colors
`platformColorInactiveListBoxSelectionBackground` | List box selection colors
`platformColorInactiveListBoxSelectionForeground` | List box selection colors
`platformColorActiveTextSearchHighlightColor` | Highlighting colors for TextMatches
`platformColorInactiveTextSearchHighlightColor` | Highlighting colors for TextMatches
`platformColorFocusRingColor` | update description

### WebKitIRenderThemeScrollbarMetrics

    typedef struct {
      gint slider_width;
      gint trough_border;
      gint stepper_size;
      gint stepper_spacing;
      gint min_slider_size;
      gboolean trough_under_steppers;
      gboolean has_secondary_forward_stepper;
      gboolean has_secondary_backward_stepper;
      gboolean has_buttons;
    } WebKitIRenderThemeScrollbarMetrics;

gint `slider_width`; | Description
gint `trough_border`; | Description
gint `stepper_size`; | Description
gint `stepper_spacing`; | Description
gint `min_slider_size`; | Description
gboolean `trough_under_steppers`; | Description
gboolean `has_secondary_forward_stepper`; | Description
gboolean `has_secondary_backward_stepper`; | Description
gboolean `has_buttons`; | Description

### WebKitIRenderThemeWidgetMetrics

    typedef struct {
        gfloat blinkInterval;
        /* Checkbox buttons */
        gint checkboxIndicatorSize;
        gint checkboxIndicatorSpacing;

        /* Radio buttons */
        gint radioIndicatorSize;
        gint radioIndicatorSpacing;

        /* Button inner borders */
        gint buttonInnerLeft;
        gint buttonInnerRight;
        gint buttonInnerTop;
        gint buttonInnerBottom;

        /* Focus metrics for a treeheadercell, button, checkbox, or radio button. */
        gboolean focusInterior;
        gint focusWidth;
        gint focusPad;

        /* Scale thumbs */
        gint scalethumbLenght;
        gint scalethumbHeigth;

        /* Dropdown arrow button */
        gint menulistButtonWidth;
        gint menulistButtonHeight;

        /* Size of a scroll arrow widget; */
        gint scrollarrowWidth;
        gint scrollarrowHeight;

        /* Toolbar button dropdown arrow */
        gint downarrowWidth;
        gint downarrowHeight;

        /* Toolbar separator width */
        gint toolbarSeparatorWidth;

        /* Expander size */
        gint expanderWidth;
        gint expanderHeight;

        /* Menu separator height; */
        gint menuSeparatorHeight;

        /* Splitter size */
        gint splitterHorizontalHeight;
        gint splitterVerticalWidth;

        /* Notebook tab thickness */
        gint notebookTabThickness;

        /* Images in menus? */
        gboolean menuImages;
    } WebKitIRenderThemeWidgetMetrics;

Description.

gfloat `blinkInterval`; | blink interval
gint `checkboxIndicatorSize`; | Checkbox buttons
gint `checkboxIndicatorSpacing`; | Checkbox buttons
gint `radioIndicatorSize`; | Radio buttons
gint `radioIndicatorSpacing`; | Radio buttons
gint `buttonInnerLeft`; | Button inner borders
gint `buttonInnerRight`; | Button inner borders
gint `buttonInnerTop`; | Button inner borders
gint `buttonInnerBottom`; | Button inner borders
gboolean `focusInterior`; | Focus metrics for a treeheadercell, button, checkbox, or radio button.
gint `focusWidth`; | Focus metrics for a treeheadercell, button, checkbox, or radio button.
gint `focusPad`; | Focus metrics for a treeheadercell, button, checkbox, or radio button.
gint `scalethumbLenght`; | Scale thumbs
gint `scalethumbHeigth`; | Scale thumbs
gint `menulistButtonWidth`; | Dropdown arrow button
gint `menulistButtonHeight`; | Dropdown arrow button
gint `scrollarrowWidth`; | Size of a scroll arrow widget
gint `scrollarrowHeight`; | Size of a scroll arrow widget
gint `downarrowWidth`; | Toolbar button dropdown arrow
gint `downarrowHeight`; | Toolbar button dropdown arrow
gint `toolbarSeparatorWidth`; | Toolbar separator width
gint `expanderWidth`; | Expander size
gint `expanderHeight`; | Expander size
gint `menuSeparatorHeight`; | Menu separator height
gint `splitterHorizontalHeight`; | Splitter size
gint `splitterVerticalWidth`; | Splitter size
gint `notebookTabThickness`; | Notebook tab thickness
gboolean `menuImages`; | Image in menus?

### WebKitIRenderThemeWidgetState

    typedef struct {
        guint8 active;
        guint8 focused;
        guint8 inHover;
        guint8 disabled;
        guint8 isDefault;
        guint8 canDefault;
        /* The depressed state is for buttons which remain active for a longer period:
         * activated toggle buttons or buttons showing a popup menu. */
        guint8 depressed;
        gint32 curpos; /* curpos and maxpos are used for scrollbars */
        gint32 maxpos;
    } WebKitIRenderThemeWidgetState;

The depressed state is for buttons which remain active for a longer period: activated toggle buttons or buttons showing a popup menu.

guint8 `active`; | update discription
guint8 `focused`; | update discription
guint8 `inHover`; | update discription
guint8 `disabled`; | update discription
guint8 `isDefault`; | update discription
guint8 `canDefault`; | update discription
guint8 `depressed`; | update discription
gint32 `curpos`; | curpos and maxpos are used for scrollbars
gint32 `maxpos`; | update discription

### enum WebKitIRenderThemeWidgetType

    typedef enum {
        /* Paints a button. */
        widgetButton,
        /* Paints a check button. flags is a boolean, 1=checked, 0=not checked. */
        widgetCheckButton,
        /* Paints a radio button. flags is a boolean, 1=checked, 0=not checked. */
        widgetRadioButton,
        /*
        Paints the button of a scrollbar. flags is a WebKitIRenderThemeArrowType
        giving the arrow direction.
        */
        widgetScrollbarButton,
        /* Paints the trough (track) of a scrollbar. */
        widgetScrollbarTrackHorizontal,
        widgetScrollbarTrackVertical,
        /* Paints the slider (thumb) of a scrollbar. */
        widgetScrollbarThumbHorizontal,
        widgetScrollbarThumbVertical,
        /* Paints the background of a scrolled window */
        widgetScrolledWindow,
        /* Paints a scale. */
        widgetScaleHorizontal,
        widgetScaleVertical,
        /* Paints a scale thumb. */
        widgetScaleThumbHorizontal,
        widgetScaleThumbVertical,
        /* Paints a spin button */
        widgetSpinButton,
        widgetSpinButtonUp,
        widgetSpinButtonDown,
        widgetSpinButtonEntry,
        /* Paints the decoration on search fields */
        widgetSearchFieldDecoration,
        /* Paints the results button in search fields */
        widgetSearchFieldResultsButton,
        /* Paints the button to clear the search field */
        widgetSearchFieldCancelButton,
        /* Paints the gripper of a handle box. */
        widgetGripper,
        /* Paints an entry. */
        widgetEntry,
        /* Paints the native caret (or in GTK-speak: insertion cursor) */
        widgetCaret,
        /* Paints a drop-down menu. */
        widgetDropDown,
        /* Paints a dropdown arrow (a button containing a down arrow). */
        widgetDropDownArrow,
        /* Paints an entry in an editable option menu */
        widgetDropDownEntry,
        /* Paints the container part of a check button. */
        widgetCheckButtonContainer,
        /* Paints the container part of a radio button. */
        widgetRadioButtonContainer,
        /* Paints the label of a check button (focus outline) */
        widgetCheckButtonLabel,
        /* Paints the label of a radio button (focus outline) */
        widgetRadioButtonLabel,
        /* Paints the background of a handle box. */
        widgetToolbar,
        /* Paints a toolbar separator */
        widgetToolbarSeparator,
        /* Paints a tooltip */
        widgetTooltip,
        /* Paints a frame (e.g. a status bar panel). */
        widgetFrame,
        /* Paints a resize grip for a window */
        widgetResizer,
        /* Paints a progress bar. */
        widgetProgressBar,
        /* Paints a progress chunk of a progress bar. */
        widgetProgressChunk,
        /* Paints a tab of a notebook. flags is a WebKitIRenderThemeTabFlags, defined above. */
        widgetTab,
        /* Paints the background and border of a notebook. */
        widgetTabPanels,
        /* Paints an arrow for a notebook. flags is a WebKitIRenderThemeArrowType. */
        widgetTabScrollArrow,
        /* Paints the background and border of a tree view */
        widgetTreeView,
        /* Paints treeheader cells */
        widgetTreeHeaderCell,
        /* Paints sort arrows in treeheader cells */
        widgetTreeHeaderSortArrow,
        /* Paints an expander for a tree view */
        widgetTreeViewExpander,
        /* Paints an expander */
        widgetExpander,
        /* Paints the background of the menu bar. */
        widgetMenuBar,
        /* Paints the background of menus, context menus. */
        widgetMenuPopup,
        /* Paints the arrow of menuitems that contain submenus */
        widgetMenuArroe,
        /* Paints an arrow that points down */
        widgetToolbarButtonArrow,
        /* Paints items of menubar and popups. */
        widgetMenuItem,
        widgetCheckMenuItem,
        widgetRadioMenuItem,
        widgetMenuSeparator,
        /* Paints a vertical panel separator */
        widgetSplitterHorizontal,
        /* Paints a horizontal panel separator */
        widgetSplitterVertical,
        /* Media-related */
        widgetMediaFullscreenButton,
        widgetMediaMuteButton,
        widgetMediaPlayButton,
        widgetMediaSeekBackButton,
        widgetMediaSeekForwardButton,
        widgetMediaSliderTrack,
        widgetMediaSliderThumb,
        /* Paints the background of a window, dialog or page. */
        widgetWindow
    } WebKitIRenderThemeWidgetType;

Update dscription.

`widgetButton` | Paints a button.
`widgetCheckButton` | Paints a check button. flags is a boolean, 1=checked, 0=not checked.
`widgetRadioButton` | Paints a radio button. flags is a boolean, 1=checked, 0=not checked.
`widgetScrollbarButton` | Paints the button of a scrollbar. flags is a WebKitIRenderThemeArrowType giving the arrow direction.
`widgetScrollbarTrackHorizontal` | Paints the trough (track) of a scrollbar.
`widgetScrollbarTrackVertical` | Paints the trough (track) of a scrollbar
`widgetScrollbarThumbHorizontal` | Paints the slider (thumb) of a scrollbar.
`widgetScrollbarThumbVertical` | Paints the slider (thumb) of a scrollbar.
`widgetScrolledWindow` | Paints the background of a scrolled window
`widgetScaleHorizontal` | Paints a scale.
`widgetScaleVertical` | Paints a scale.
`widgetScaleThumbHorizontal` | Paints a scale thumb.
`widgetScaleThumbVertical` | Paints a scale thumb.
`widgetSpinButton` | Paints a spin button
`widgetSpinButtonUp` | Paints a spin button
`widgetSpinButtonDown` | Paints a spin button
`widgetSpinButtonEntry` | Paints a spin button
`widgetSearchFieldDecoration` | Paints the decoration on search fields
`widgetSearchFieldResultsButton` | Paints the results button in search fields
`widgetSearchFieldCancelButton` | Paints the button to clear the search field
`widgetGripper` | Paints the gripper of a handle box.
`widgetEntry` | Paints an entry.
`widgetCaret` | Paints the native caret (or in GTK-speak: insertion cursor)
`widgetDropDown` | Paints a drop-down menu.
`widgetDropDownArrow` | Paints a dropdown arrow (a button containing a down arrow).
`widgetDropDownEntry` | Paints an entry in an editable option menu
`widgetCheckButtonContainer` | Paints the container part of a check button
`widgetRadioButtonContainer` | Paints the container part of a radio button.
`widgetCheckButtonLabel` | Paints the label of a check button (focus outline)
`widgetRadioButtonLabel` | Paints the label of a radio button (focus outline)
`widgetToolbar` | Paints the background of a handle box.
`widgetToolbarSeparator` | Paints a toolbar separator
`widgetTooltip` | Paints a tooltip
`widgetFrame` | Paints a frame (e.g. a status bar panel).
`widgetResizer` | Paints a resize grip for a window
`widgetProgressBar` | Paints a progress bar.
`widgetProgressChunk` | Paints a progress chunk of a progress bar.
`widgetTab` | Paints a tab of a notebook. flags is a WebKitIRenderThemeTabFlags, defined above.
`widgetTabPanels` | Paints the background and border of a notebook.
`widgetTabScrollArrow` | Paints an arrow for a notebook. flags is a WebKitIRenderThemeArrowType.
`widgetTreeView` | Paints the background and border of a tree view
`widgetTreeHeaderCell` | Paints treeheader cells
`widgetTreeHeaderSortArrow` | Paints sort arrows in treeheader cells
`widgetTreeViewExpander` | Paints an expander for a tree view
`widgetExpander` | Paints an expander
`widgetMenuBar` | Paints the background of the menu bar.
`widgetMenuPopup` | Paints the background of menus, context menus.
`widgetMenuArroe` | Paints the arrow of menuitems that contain submenus
`widgetToolbarButtonArrow` | Paints an arrow that points down
`widgetMenuItem` | Paints items of menubar and popups.
`widgetCheckMenuItem` | Paints items of menubar and popups.
`widgetRadioMenuItem` | Paints items of menubar and popups.
`widgetMenuSeparator` | Paints items of menubar and popups.
`widgetSplitterHorizontal` | Paints a vertical panel separator
`widgetSplitterVertical` | Paints a horizontal panel separator
`widgetMediaFullscreenButton` | Media-related
`widgetMediaMuteButton` | Media-related
`widgetMediaPlayButton` | Media-related
`widgetMediaSeekBackButton` | Media-related
`widgetMediaSeekForwardButton` | Media-related
`widgetMediaSliderTrack` | Media-related
`widgetMediaSliderThumb` | Media-related
`widgetWindow` | Paints the background of a window, dialog or page.

### cairo_rectangle_int_t

    typedef struct {
        int x, y;
        int width, height;
    } cairo_rectangle_int_t;

int `x`; | x
int `y`; | y
int `width`; | width
int `height`; | height

### webkit_irender_theme_get_type ()

    GType               webkit_irender_theme_get_type       (void);

### webkit_irender_theme_get_platform_color ()

    guint32             webkit_irender_theme_get_platform_color
                                                            (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemePlatformColor Param2);

### webkit_irender_theme_get_system_color ()

    guint32             webkit_irender_theme_get_system_color
                                                            (WebKitIRenderTheme *Param1,
                                                             int Param2);

### webkit_irender_theme_get_widget_metrics ()

    gboolean            webkit_irender_theme_get_widget_metrics
                                                            (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemeWidgetMetrics *Param2);

### webkit_irender_theme_get_scrollbar_metrics ()

    gboolean            webkit_irender_theme_get_scrollbar_metrics
                                                            (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemeScrollbarMetrics *Param2);

### webkit_irender_theme_paint_widget ()

    gboolean            webkit_irender_theme_paint_widget   (WebKitIRenderTheme *Param1,
                                                             WebKitIRenderThemeWidgetType Param2,
                                                             WebKitIRenderThemeWidgetState *Param3,
                                                             gint flags,
                                                             cairo_t *Param5,
                                                             cairo_rectangle_int_t *Param6);

### webkit_irender_theme_get_default ()

    WebKitIRenderTheme * webkit_irender_theme_get_default   (void);

### webkit_irender_theme_set_default ()

    void                webkit_irender_theme_set_default    (WebKitIRenderTheme *Param1);