mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
c53988803d
--HG-- rename : widget/gtk2/Makefile.in => widget/gtk/Makefile.in rename : widget/gtk2/WidgetTraceEvent.cpp => widget/gtk/WidgetTraceEvent.cpp rename : widget/gtk2/compat/gdk/gdkdnd.h => widget/gtk/compat/gdk/gdkdnd.h rename : widget/gtk2/compat/gdk/gdkkeysyms.h => widget/gtk/compat/gdk/gdkkeysyms.h rename : widget/gtk2/compat/gdk/gdkvisual.h => widget/gtk/compat/gdk/gdkvisual.h rename : widget/gtk2/compat/gdk/gdkwindow.h => widget/gtk/compat/gdk/gdkwindow.h rename : widget/gtk2/compat/gdk/gdkx.h => widget/gtk/compat/gdk/gdkx.h rename : widget/gtk2/compat/glib/gmem.h => widget/gtk/compat/glib/gmem.h rename : widget/gtk2/compat/gtk/gtkcolorseldialog.h => widget/gtk/compat/gtk/gtkcolorseldialog.h rename : widget/gtk2/compat/gtk/gtkdialog.h => widget/gtk/compat/gtk/gtkdialog.h rename : widget/gtk2/compat/gtk/gtkplug.h => widget/gtk/compat/gtk/gtkplug.h rename : widget/gtk2/compat/gtk/gtkselection.h => widget/gtk/compat/gtk/gtkselection.h rename : widget/gtk2/compat/gtk/gtkwidget.h => widget/gtk/compat/gtk/gtkwidget.h rename : widget/gtk2/compat/gtk/gtkwindow.h => widget/gtk/compat/gtk/gtkwindow.h rename : widget/gtk2/crashtests/673390-1.html => widget/gtk/crashtests/673390-1.html rename : widget/gtk2/crashtests/crashtests.list => widget/gtk/crashtests/crashtests.list rename : widget/gtk2/gtk2drawing.c => widget/gtk/gtk2drawing.c rename : widget/gtk2/gtk3drawing.c => widget/gtk/gtk3drawing.c rename : widget/gtk2/gtkdrawing.h => widget/gtk/gtkdrawing.h rename : widget/gtk2/maiRedundantObjectFactory.c => widget/gtk/maiRedundantObjectFactory.c rename : widget/gtk2/maiRedundantObjectFactory.h => widget/gtk/maiRedundantObjectFactory.h rename : widget/gtk2/moz.build => widget/gtk/moz.build rename : widget/gtk2/mozcontainer.c => widget/gtk/mozcontainer.c rename : widget/gtk2/mozcontainer.h => widget/gtk/mozcontainer.h rename : widget/gtk2/nsAppShell.cpp => widget/gtk/nsAppShell.cpp rename : widget/gtk2/nsAppShell.h => widget/gtk/nsAppShell.h rename : widget/gtk2/nsBidiKeyboard.cpp => widget/gtk/nsBidiKeyboard.cpp rename : widget/gtk2/nsBidiKeyboard.h => widget/gtk/nsBidiKeyboard.h rename : widget/gtk2/nsCUPSShim.cpp => widget/gtk/nsCUPSShim.cpp rename : widget/gtk2/nsCUPSShim.h => widget/gtk/nsCUPSShim.h rename : widget/gtk2/nsClipboard.cpp => widget/gtk/nsClipboard.cpp rename : widget/gtk2/nsClipboard.h => widget/gtk/nsClipboard.h rename : widget/gtk2/nsColorPicker.cpp => widget/gtk/nsColorPicker.cpp rename : widget/gtk2/nsColorPicker.h => widget/gtk/nsColorPicker.h rename : widget/gtk2/nsDeviceContextSpecG.cpp => widget/gtk/nsDeviceContextSpecG.cpp rename : widget/gtk2/nsDeviceContextSpecG.h => widget/gtk/nsDeviceContextSpecG.h rename : widget/gtk2/nsDragService.cpp => widget/gtk/nsDragService.cpp rename : widget/gtk2/nsDragService.h => widget/gtk/nsDragService.h rename : widget/gtk2/nsFilePicker.cpp => widget/gtk/nsFilePicker.cpp rename : widget/gtk2/nsFilePicker.h => widget/gtk/nsFilePicker.h rename : widget/gtk2/nsGTKToolkit.h => widget/gtk/nsGTKToolkit.h rename : widget/gtk2/nsGtkCursors.h => widget/gtk/nsGtkCursors.h rename : widget/gtk2/nsGtkIMModule.cpp => widget/gtk/nsGtkIMModule.cpp rename : widget/gtk2/nsGtkIMModule.h => widget/gtk/nsGtkIMModule.h rename : widget/gtk2/nsGtkKeyUtils.cpp => widget/gtk/nsGtkKeyUtils.cpp rename : widget/gtk2/nsGtkKeyUtils.h => widget/gtk/nsGtkKeyUtils.h rename : widget/gtk2/nsGtkUtils.h => widget/gtk/nsGtkUtils.h rename : widget/gtk2/nsIImageToPixbuf.h => widget/gtk/nsIImageToPixbuf.h rename : widget/gtk2/nsIdleServiceGTK.cpp => widget/gtk/nsIdleServiceGTK.cpp rename : widget/gtk2/nsIdleServiceGTK.h => widget/gtk/nsIdleServiceGTK.h rename : widget/gtk2/nsImageToPixbuf.cpp => widget/gtk/nsImageToPixbuf.cpp rename : widget/gtk2/nsImageToPixbuf.h => widget/gtk/nsImageToPixbuf.h rename : widget/gtk2/nsLookAndFeel.cpp => widget/gtk/nsLookAndFeel.cpp rename : widget/gtk2/nsLookAndFeel.h => widget/gtk/nsLookAndFeel.h rename : widget/gtk2/nsNativeKeyBindings.cpp => widget/gtk/nsNativeKeyBindings.cpp rename : widget/gtk2/nsNativeKeyBindings.h => widget/gtk/nsNativeKeyBindings.h rename : widget/gtk2/nsNativeThemeGTK.cpp => widget/gtk/nsNativeThemeGTK.cpp rename : widget/gtk2/nsNativeThemeGTK.h => widget/gtk/nsNativeThemeGTK.h rename : widget/gtk2/nsPSPrinters.cpp => widget/gtk/nsPSPrinters.cpp rename : widget/gtk2/nsPSPrinters.h => widget/gtk/nsPSPrinters.h rename : widget/gtk2/nsPaperPS.cpp => widget/gtk/nsPaperPS.cpp rename : widget/gtk2/nsPaperPS.h => widget/gtk/nsPaperPS.h rename : widget/gtk2/nsPrintDialogGTK.cpp => widget/gtk/nsPrintDialogGTK.cpp rename : widget/gtk2/nsPrintDialogGTK.h => widget/gtk/nsPrintDialogGTK.h rename : widget/gtk2/nsPrintOptionsGTK.cpp => widget/gtk/nsPrintOptionsGTK.cpp rename : widget/gtk2/nsPrintOptionsGTK.h => widget/gtk/nsPrintOptionsGTK.h rename : widget/gtk2/nsPrintSettingsGTK.cpp => widget/gtk/nsPrintSettingsGTK.cpp rename : widget/gtk2/nsPrintSettingsGTK.h => widget/gtk/nsPrintSettingsGTK.h rename : widget/gtk2/nsScreenGtk.cpp => widget/gtk/nsScreenGtk.cpp rename : widget/gtk2/nsScreenGtk.h => widget/gtk/nsScreenGtk.h rename : widget/gtk2/nsScreenManagerGtk.cpp => widget/gtk/nsScreenManagerGtk.cpp rename : widget/gtk2/nsScreenManagerGtk.h => widget/gtk/nsScreenManagerGtk.h rename : widget/gtk2/nsSound.cpp => widget/gtk/nsSound.cpp rename : widget/gtk2/nsSound.h => widget/gtk/nsSound.h rename : widget/gtk2/nsToolkit.cpp => widget/gtk/nsToolkit.cpp rename : widget/gtk2/nsWidgetFactory.cpp => widget/gtk/nsWidgetFactory.cpp rename : widget/gtk2/nsWindow.cpp => widget/gtk/nsWindow.cpp rename : widget/gtk2/nsWindow.h => widget/gtk/nsWindow.h
448 lines
15 KiB
C
448 lines
15 KiB
C
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/**
|
|
* gtkdrawing.h: GTK widget rendering utilities
|
|
*
|
|
* gtkdrawing provides an API for rendering GTK widgets in the
|
|
* current theme to a pixmap or window, without requiring an actual
|
|
* widget instantiation, similar to the Macintosh Appearance Manager
|
|
* or Windows XP's DrawThemeBackground() API.
|
|
*/
|
|
|
|
#ifndef _GTK_DRAWING_H_
|
|
#define _GTK_DRAWING_H_
|
|
|
|
#include <gdk/gdk.h>
|
|
#include <gtk/gtk.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/*** type definitions ***/
|
|
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;
|
|
} GtkWidgetState;
|
|
|
|
typedef struct {
|
|
gint slider_width;
|
|
gint trough_border;
|
|
gint stepper_size;
|
|
gint stepper_spacing;
|
|
gint min_slider_size;
|
|
} MozGtkScrollbarMetrics;
|
|
|
|
typedef enum {
|
|
MOZ_GTK_STEPPER_DOWN = 1 << 0,
|
|
MOZ_GTK_STEPPER_BOTTOM = 1 << 1,
|
|
MOZ_GTK_STEPPER_VERTICAL = 1 << 2
|
|
} GtkScrollbarButtonFlags;
|
|
|
|
/** flags for tab state **/
|
|
typedef enum {
|
|
/* first eight bits are used to pass a margin */
|
|
MOZ_GTK_TAB_MARGIN_MASK = 0xFF,
|
|
/* bottom tabs */
|
|
MOZ_GTK_TAB_BOTTOM = 1 << 8,
|
|
/* the first tab in the group */
|
|
MOZ_GTK_TAB_FIRST = 1 << 9,
|
|
/* the selected tab */
|
|
MOZ_GTK_TAB_SELECTED = 1 << 10
|
|
} GtkTabFlags;
|
|
|
|
/** flags for menuitems **/
|
|
typedef enum {
|
|
/* menuitem is part of the menubar */
|
|
MOZ_TOPLEVEL_MENU_ITEM = 1 << 0
|
|
} GtkMenuItemFlags;
|
|
|
|
/* function type for moz_gtk_enable_style_props */
|
|
typedef gint (*style_prop_t)(GtkStyle*, const gchar*, gint);
|
|
|
|
/*** result/error codes ***/
|
|
#define MOZ_GTK_SUCCESS 0
|
|
#define MOZ_GTK_UNKNOWN_WIDGET -1
|
|
#define MOZ_GTK_UNSAFE_THEME -2
|
|
|
|
/*** checkbox/radio flags ***/
|
|
#define MOZ_GTK_WIDGET_CHECKED 1
|
|
#define MOZ_GTK_WIDGET_INCONSISTENT (1 << 1)
|
|
|
|
/*** widget type constants ***/
|
|
typedef enum {
|
|
/* Paints a GtkButton. flags is a GtkReliefStyle. */
|
|
MOZ_GTK_BUTTON,
|
|
/* Paints a GtkCheckButton. flags is a boolean, 1=checked, 0=not checked. */
|
|
MOZ_GTK_CHECKBUTTON,
|
|
/* Paints a GtkRadioButton. flags is a boolean, 1=checked, 0=not checked. */
|
|
MOZ_GTK_RADIOBUTTON,
|
|
/**
|
|
* Paints the button of a GtkScrollbar. flags is a GtkArrowType giving
|
|
* the arrow direction.
|
|
*/
|
|
MOZ_GTK_SCROLLBAR_BUTTON,
|
|
/* Paints the trough (track) of a GtkScrollbar. */
|
|
MOZ_GTK_SCROLLBAR_TRACK_HORIZONTAL,
|
|
MOZ_GTK_SCROLLBAR_TRACK_VERTICAL,
|
|
/* Paints the slider (thumb) of a GtkScrollbar. */
|
|
MOZ_GTK_SCROLLBAR_THUMB_HORIZONTAL,
|
|
MOZ_GTK_SCROLLBAR_THUMB_VERTICAL,
|
|
/* Paints a GtkScale. */
|
|
MOZ_GTK_SCALE_HORIZONTAL,
|
|
MOZ_GTK_SCALE_VERTICAL,
|
|
/* Paints a GtkScale thumb. */
|
|
MOZ_GTK_SCALE_THUMB_HORIZONTAL,
|
|
MOZ_GTK_SCALE_THUMB_VERTICAL,
|
|
/* Paints a GtkSpinButton */
|
|
MOZ_GTK_SPINBUTTON,
|
|
MOZ_GTK_SPINBUTTON_UP,
|
|
MOZ_GTK_SPINBUTTON_DOWN,
|
|
MOZ_GTK_SPINBUTTON_ENTRY,
|
|
/* Paints the gripper of a GtkHandleBox. */
|
|
MOZ_GTK_GRIPPER,
|
|
/* Paints a GtkEntry. */
|
|
MOZ_GTK_ENTRY,
|
|
/* Paints a GtkOptionMenu. */
|
|
MOZ_GTK_DROPDOWN,
|
|
/* Paints a dropdown arrow (a GtkButton containing a down GtkArrow). */
|
|
MOZ_GTK_DROPDOWN_ARROW,
|
|
/* Paints an entry in an editable option menu */
|
|
MOZ_GTK_DROPDOWN_ENTRY,
|
|
/* Paints the container part of a GtkCheckButton. */
|
|
MOZ_GTK_CHECKBUTTON_CONTAINER,
|
|
/* Paints the container part of a GtkRadioButton. */
|
|
MOZ_GTK_RADIOBUTTON_CONTAINER,
|
|
/* Paints the label of a GtkCheckButton (focus outline) */
|
|
MOZ_GTK_CHECKBUTTON_LABEL,
|
|
/* Paints the label of a GtkRadioButton (focus outline) */
|
|
MOZ_GTK_RADIOBUTTON_LABEL,
|
|
/* Paints the background of a GtkHandleBox. */
|
|
MOZ_GTK_TOOLBAR,
|
|
/* Paints a toolbar separator */
|
|
MOZ_GTK_TOOLBAR_SEPARATOR,
|
|
/* Paints a GtkToolTip */
|
|
MOZ_GTK_TOOLTIP,
|
|
/* Paints a GtkFrame (e.g. a status bar panel). */
|
|
MOZ_GTK_FRAME,
|
|
/* Paints a resize grip for a GtkWindow */
|
|
MOZ_GTK_RESIZER,
|
|
/* Paints a GtkProgressBar. */
|
|
MOZ_GTK_PROGRESSBAR,
|
|
/* Paints a progress chunk of a GtkProgressBar. */
|
|
MOZ_GTK_PROGRESS_CHUNK,
|
|
/* Paints a progress chunk of an indeterminated GtkProgressBar. */
|
|
MOZ_GTK_PROGRESS_CHUNK_INDETERMINATE,
|
|
/* Paints a progress chunk of a vertical indeterminated GtkProgressBar. */
|
|
MOZ_GTK_PROGRESS_CHUNK_VERTICAL_INDETERMINATE,
|
|
/* Paints a tab of a GtkNotebook. flags is a GtkTabFlags, defined above. */
|
|
MOZ_GTK_TAB,
|
|
/* Paints the background and border of a GtkNotebook. */
|
|
MOZ_GTK_TABPANELS,
|
|
/* Paints a GtkArrow for a GtkNotebook. flags is a GtkArrowType. */
|
|
MOZ_GTK_TAB_SCROLLARROW,
|
|
/* Paints the background and border of a GtkTreeView */
|
|
MOZ_GTK_TREEVIEW,
|
|
/* Paints treeheader cells */
|
|
MOZ_GTK_TREE_HEADER_CELL,
|
|
/* Paints sort arrows in treeheader cells */
|
|
MOZ_GTK_TREE_HEADER_SORTARROW,
|
|
/* Paints an expander for a GtkTreeView */
|
|
MOZ_GTK_TREEVIEW_EXPANDER,
|
|
/* Paints the background of the menu bar. */
|
|
MOZ_GTK_MENUBAR,
|
|
/* Paints the background of menus, context menus. */
|
|
MOZ_GTK_MENUPOPUP,
|
|
/* Paints the arrow of menuitems that contain submenus */
|
|
MOZ_GTK_MENUARROW,
|
|
/* Paints an arrow in a toolbar button. flags is a GtkArrowType. */
|
|
MOZ_GTK_TOOLBARBUTTON_ARROW,
|
|
/* Paints items of menubar and popups. */
|
|
MOZ_GTK_MENUITEM,
|
|
MOZ_GTK_CHECKMENUITEM,
|
|
MOZ_GTK_RADIOMENUITEM,
|
|
MOZ_GTK_MENUSEPARATOR,
|
|
/* Paints a GtkVPaned separator */
|
|
MOZ_GTK_SPLITTER_HORIZONTAL,
|
|
/* Paints a GtkHPaned separator */
|
|
MOZ_GTK_SPLITTER_VERTICAL,
|
|
/* Paints the background of a window, dialog or page. */
|
|
MOZ_GTK_WINDOW
|
|
} GtkThemeWidgetType;
|
|
|
|
/*** General library functions ***/
|
|
/**
|
|
* Initializes the drawing library. You must call this function
|
|
* prior to using any other functionality.
|
|
* returns: MOZ_GTK_SUCCESS if there were no errors
|
|
* MOZ_GTK_UNSAFE_THEME if the current theme engine is known
|
|
* to crash with gtkdrawing.
|
|
*/
|
|
gint moz_gtk_init();
|
|
|
|
/**
|
|
* Enable GTK+ 1.2.9+ theme enhancements. You must provide a pointer
|
|
* to the GTK+ 1.2.9+ function "gtk_style_get_prop_experimental".
|
|
* styleGetProp: pointer to gtk_style_get_prop_experimental
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_enable_style_props(style_prop_t styleGetProp);
|
|
|
|
/**
|
|
* Perform cleanup of the drawing library. You should call this function
|
|
* when your program exits, or you no longer need the library.
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_shutdown();
|
|
|
|
#if (MOZ_WIDGET_GTK == 2)
|
|
/**
|
|
* Retrieves the colormap to use for drawables passed to moz_gtk_widget_paint.
|
|
*/
|
|
GdkColormap* moz_gtk_widget_get_colormap();
|
|
#endif
|
|
|
|
/*** Widget drawing ***/
|
|
#if (MOZ_WIDGET_GTK == 2)
|
|
/**
|
|
* Paint a widget in the current theme.
|
|
* widget: a constant giving the widget to paint
|
|
* drawable: the drawable to paint to;
|
|
* it's colormap must be moz_gtk_widget_get_colormap().
|
|
* rect: the bounding rectangle for the widget
|
|
* cliprect: a clipprect rectangle for this painting operation
|
|
* state: the state of the widget. ignored for some widgets.
|
|
* flags: widget-dependant flags; see the GtkThemeWidgetType definition.
|
|
* direction: the text direction, to draw the widget correctly LTR and RTL.
|
|
*/
|
|
gint
|
|
moz_gtk_widget_paint(GtkThemeWidgetType widget, GdkDrawable* drawable,
|
|
GdkRectangle* rect, GdkRectangle* cliprect,
|
|
GtkWidgetState* state, gint flags,
|
|
GtkTextDirection direction);
|
|
#else
|
|
gint
|
|
moz_gtk_widget_paint(GtkThemeWidgetType widget, cairo_t *cr,
|
|
GdkRectangle* rect,
|
|
GtkWidgetState* state, gint flags,
|
|
GtkTextDirection direction);
|
|
#endif
|
|
|
|
|
|
/*** Widget metrics ***/
|
|
/**
|
|
* Get the border size of a widget
|
|
* left/right: [OUT] the widget's left/right border
|
|
* top/bottom: [OUT] the widget's top/bottom border
|
|
* direction: the text direction for the widget
|
|
* inhtml: boolean indicating whether this widget will be drawn as a HTML form control,
|
|
* in order to workaround a size issue (MOZ_GTK_BUTTON only, ignored otherwise)
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_widget_border(GtkThemeWidgetType widget, gint* left, gint* top,
|
|
gint* right, gint* bottom, GtkTextDirection direction,
|
|
gboolean inhtml);
|
|
|
|
/**
|
|
* Get the desired size of a GtkCheckButton
|
|
* indicator_size: [OUT] the indicator size
|
|
* indicator_spacing: [OUT] the spacing between the indicator and its
|
|
* container
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_checkbox_get_metrics(gint* indicator_size, gint* indicator_spacing);
|
|
|
|
/**
|
|
* Get the desired size of a GtkRadioButton
|
|
* indicator_size: [OUT] the indicator size
|
|
* indicator_spacing: [OUT] the spacing between the indicator and its
|
|
* container
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_radio_get_metrics(gint* indicator_size, gint* indicator_spacing);
|
|
|
|
/**
|
|
* Get the inner-border value for a GtkButton widget (button or tree header)
|
|
* widget: [IN] the widget to get the border value for
|
|
* inner_border: [OUT] the inner border
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_button_get_inner_border(GtkWidget* widget, GtkBorder* inner_border);
|
|
|
|
/** Get the focus metrics for a treeheadercell, button, checkbox, or radio button.
|
|
* widget: [IN] the widget to get the focus metrics for
|
|
* interior_focus: [OUT] whether the focus is drawn around the
|
|
* label (TRUE) or around the whole container (FALSE)
|
|
* focus_width: [OUT] the width of the focus line
|
|
* focus_pad: [OUT] the padding between the focus line and children
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_widget_get_focus(GtkWidget* widget, gboolean* interior_focus,
|
|
gint* focus_width, gint* focus_pad);
|
|
|
|
/** Get the horizontal padding for the menuitem widget or checkmenuitem widget.
|
|
* horizontal_padding: [OUT] The left and right padding of the menuitem or checkmenuitem
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_menuitem_get_horizontal_padding(gint* horizontal_padding);
|
|
|
|
gint
|
|
moz_gtk_checkmenuitem_get_horizontal_padding(gint* horizontal_padding);
|
|
|
|
/**
|
|
* Some GTK themes draw their indication for the default button outside
|
|
* the button (e.g. the glow in New Wave). This gets the extra space necessary.
|
|
*
|
|
* border_top: [OUT] extra space to add above
|
|
* border_left: [OUT] extra space to add to the left
|
|
* border_bottom: [OUT] extra space to add underneath
|
|
* border_right: [OUT] extra space to add to the right
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_button_get_default_overflow(gint* border_top, gint* border_left,
|
|
gint* border_bottom, gint* border_right);
|
|
|
|
/**
|
|
* Get the desired size of a GtkScale thumb
|
|
* orient: [IN] the scale orientation
|
|
* thumb_length: [OUT] the length of the thumb
|
|
* thumb_height: [OUT] the height of the thumb
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_get_scalethumb_metrics(GtkOrientation orient, gint* thumb_length, gint* thumb_height);
|
|
|
|
/**
|
|
* Get the desired metrics for a GtkScrollbar
|
|
* metrics: [IN] struct which will contain the metrics
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint
|
|
moz_gtk_get_scrollbar_metrics(MozGtkScrollbarMetrics* metrics);
|
|
|
|
/**
|
|
* Get the desired size of a dropdown arrow button
|
|
* width: [OUT] the desired width
|
|
* height: [OUT] the desired height
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_combo_box_entry_button_size(gint* width, gint* height);
|
|
|
|
/**
|
|
* Get the desired size of a scroll arrow widget
|
|
* width: [OUT] the desired width
|
|
* height: [OUT] the desired height
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_tab_scroll_arrow_size(gint* width, gint* height);
|
|
|
|
/**
|
|
* Get the desired size of an arrow in a button
|
|
* width: [OUT] the desired width
|
|
* height: [OUT] the desired height
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_arrow_size(gint* width, gint* height);
|
|
|
|
/**
|
|
* Get the desired size of a toolbar separator
|
|
* size: [OUT] the desired width
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_toolbar_separator_width(gint* size);
|
|
|
|
/**
|
|
* Get the size of a regular GTK expander that shows/hides content
|
|
* size: [OUT] the size of the GTK expander, size = width = height.
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_expander_size(gint* size);
|
|
|
|
/**
|
|
* Get the size of a treeview's expander (we call them twisties)
|
|
* size: [OUT] the size of the GTK expander, size = width = height.
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_treeview_expander_size(gint* size);
|
|
|
|
/**
|
|
* Get the desired height of a menu separator
|
|
* size: [OUT] the desired height
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_get_menu_separator_height(gint* size);
|
|
|
|
/**
|
|
* Get the desired size of a splitter
|
|
* orientation: [IN] GTK_ORIENTATION_HORIZONTAL or GTK_ORIENTATION_VERTICAL
|
|
* size: [OUT] width or height of the splitter handle
|
|
*
|
|
* returns: MOZ_GTK_SUCCESS if there was no error, an error code otherwise
|
|
*/
|
|
gint moz_gtk_splitter_get_metrics(gint orientation, gint* size);
|
|
|
|
/**
|
|
* Retrieve an actual GTK scrollbar widget for style analysis. It will not
|
|
* be modified.
|
|
*/
|
|
GtkWidget* moz_gtk_get_scrollbar_widget(void);
|
|
|
|
/**
|
|
* Get the YTHICKNESS of a tab (notebook extension).
|
|
*/
|
|
gint moz_gtk_get_tab_thickness(void);
|
|
|
|
/**
|
|
* Get a boolean which indicates whether or not to use images in menus.
|
|
* If TRUE, use images in menus.
|
|
*/
|
|
gboolean moz_gtk_images_in_menus(void);
|
|
|
|
/**
|
|
* Get a boolean which indicates whether or not to use images in buttons.
|
|
* If TRUE, use images in buttons.
|
|
*/
|
|
gboolean moz_gtk_images_in_buttons(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif
|