Movatterモバイル変換


[0]ホーム

URL:


Namespace

Gtk – 3.0

The GTK toolkit

Version3.24
AuthorsGTK Development Team
LicenseLGPL-2.1-or-later
Websitehttps://www.gtk.org
Sourcehttps://gitlab.gnome.org/GNOME/gtk/

Build

C headersgtk/gtk-a11y.h, gtk/gtk.h, gtk/gtkx.h
pkg-config filesgtk+-3.0

Dependencies

GObject—2.0The base type system library
Browse documentation
Atk—1.0The Accessibility toolkit
Browse documentation
Pango—1.0Text shaping and rendering
Browse documentation
Gdk—3.0The GTK windowing system backend
Browse documentation

Additional documentation

Classes

AboutDialog

The GtkAboutDialog offers a simple way to display information abouta program like its logo, name, copyright, website and license. It isalso possible to give credits to the authors, documenters, translatorsand artists who have worked on the program. An about dialog is typicallyopened when the user selects theAbout option from theHelp menu.All parts of the dialog are optional.

AccelGroup

AGtkAccelGroup represents a group of keyboard accelerators,typically attached to a toplevelGtkWindow (withgtk_window_add_accel_group()). Usually you won’t need to create aGtkAccelGroup directly; instead, when usingGtkUIManager,GTK+automatically sets up the accelerators for your menus in the uimanager’sGtkAccelGroup.

AccelLabel

TheGtkAccelLabel widget is a subclass ofGtkLabel that also displays anaccelerator key on the right of the label text, e.g. “Ctrl+S”.It is commonly used in menus to show the keyboard short-cuts for commands.

AccelMap

Accelerator maps are used to define runtime configurable accelerators.Functions for manipulating them are are usually used by higher levelconvenience mechanisms likeGtkUIManager and are thus considered“low-level”. You’ll want to use them if you’re manually creating menus thatshould have user-configurable accelerators.

Accessible

TheGtkAccessible class is the base class for accessibleimplementations forGtkWidget subclasses. It is a thinwrapper aroundAtkObject, which adds facilities for associatinga widget with its accessible object.

Action

InGTK+ 3.10, GtkAction has been deprecated. UseGActioninstead, and associate actions withGtkActionable widgets. UseGMenuModel for creating menus with gtk_menu_new_from_model().

ActionBar

GtkActionBar is designed to present contextual actions. It isexpected to be displayed below the content and expand horizontallyto fill the area.

ActionGroup

Actions are organised into groups. An action group is essentially amap from names toGtkAction objects.

Adjustment

TheGtkAdjustment object represents a value which has an associated lowerand upper bound, together with step and page increments, and a page size.It is used within severalGTK+ widgets, includingGtkSpinButton,GtkViewport,andGtkRange (which is a base class forGtkScrollbar andGtkScale).

Alignment

TheGtkAlignment widget controls the alignment and size of its child widget.It has four settings: xscale, yscale, xalign, and yalign.

AppChooserButton

TheGtkAppChooserButton is a widget that lets the user selectan application. It implements theGtkAppChooser interface.

AppChooserDialog

GtkAppChooserDialog shows aGtkAppChooserWidget inside aGtkDialog.

AppChooserWidget

GtkAppChooserWidget is a widget for selecting applications.It is the main building block forGtkAppChooserDialog. Mostapplications only need to use the latter; but you can usethis widget as part of a larger widget if you have special needs.

Application

GtkApplication is a class that handles many important aspectsof aGTK+ application in a convenient fashion, without enforcinga one-size-fits-all application model.

ApplicationWindow

GtkApplicationWindow is aGtkWindow subclass that offers someextra functionality for better integration withGtkApplicationfeatures. Notably, it can handle both the application menu as wellas the menubar. Seegtk_application_set_app_menu() and gtk_application_set_menubar().

Arrow

GtkArrow should be used to draw simple arrows that need to point inone of the four cardinal directions (up, down, left, or right). Thestyle of the arrow can be one of shadow in, shadow out, etched in, oretched out. Note that these directions and style types may beamended in versions ofGTK+ to come.

ArrowAccessible

AspectFrame

TheGtkAspectFrame is useful when you wantpack a widget so that it can resize but always retainsthe same aspect ratio. For instance, one might bedrawing a small preview of a larger image.GtkAspectFramederives fromGtkFrame, so it can draw a label anda frame around the child. The frame will be“shrink-wrapped” to the size of the child.

Assistant

AGtkAssistant is a widget used to represent a generally complexoperation splitted in several steps, guiding the user through itspages and controlling the page flow to collect the necessary data.

Bin

TheGtkBin widget is a container with just one child.It is not very useful itself, but it is useful for deriving subclasses,since it provides common code needed for handling a single child widget.

BooleanCellAccessible

Box

The GtkBox widget arranges child widgets into a single row or column,depending upon the value of itsGtkOrientable:orientation property. Withinthe other dimension, all children are allocated the same size. Of course,theGtkWidget:halign andGtkWidget:valign properties can be used onthe children to influence their allocation.

Builder

A GtkBuilder is an auxiliary object that reads textual descriptionsof a user interface and instantiates the described objects. To createa GtkBuilder from a user interface description, callgtk_builder_new_from_file(),gtk_builder_new_from_resource() or gtk_builder_new_from_string().

Button

TheGtkButton widget is generally used to trigger a callback function that iscalled when the button is pressed. The various signals and how to use themare outlined below.

ButtonAccessible

ButtonBox

Calendar

GtkCalendar is a widget that displays a Gregorian calendar, one monthat a time. It can be created with gtk_calendar_new().

CellAccessible

CellArea

TheGtkCellArea is an abstract class forGtkCellLayout widgets(also referred to as “layouting widgets”) to interface with anarbitrary number ofGtkCellRenderers and interact with the userfor a givenGtkTreeModel row.

CellAreaBox

TheGtkCellAreaBox renders cell renderers into a row or a columndepending on itsGtkOrientation.

CellAreaContext

TheGtkCellAreaContext object is created by a givenGtkCellAreaimplementation via itsGtkCellAreaClass.create_context() virtualmethod and is used to store cell sizes and alignments for a series ofGtkTreeModel rows that are requested and rendered in the same context.

CellRenderer

TheGtkCellRenderer is a base class of a set of objects used forrendering a cell to a #cairo_t. These objects are used primarily bytheGtkTreeView widget, though they aren’t tied to them in anyspecific way. It is worth noting thatGtkCellRenderer is not aGtkWidget and cannot be treated as such.

CellRendererAccel

GtkCellRendererAccel displays a keyboard accelerator (i.e. a keycombination likeControl + a). If the cell renderer is editable,the accelerator can be changed by simply typing the new combination.

CellRendererCombo

GtkCellRendererCombo renders text in a cell likeGtkCellRendererText fromwhich it is derived. But whileGtkCellRendererText offers a simple entry toedit the text,GtkCellRendererCombo offers aGtkComboBoxwidget to edit the text. The values to display in the combo box are taken fromthe tree model specified in theGtkCellRendererCombo:model property.

CellRendererPixbuf

AGtkCellRendererPixbuf can be used to render an image in a cell. It allowsto render either a givenGdkPixbuf (set via theGtkCellRendererPixbuf:pixbuf property) or a named icon (set via theGtkCellRendererPixbuf:icon-name property).

CellRendererProgress

GtkCellRendererProgress renders a numeric value as a progress par in a cell.Additionally, it can display a text on top of the progress bar.

CellRendererSpin

GtkCellRendererSpin renders text in a cell likeGtkCellRendererText fromwhich it is derived. But whileGtkCellRendererText offers a simple entry toedit the text,GtkCellRendererSpin offers aGtkSpinButton widget. Of course,that means that the text has to be parseable as a floating point number.

CellRendererSpinner

GtkCellRendererSpinner renders a spinning animation in a cell, verysimilar toGtkSpinner. It can often be used as an alternativeto aGtkCellRendererProgress for displaying indefinite activity,instead of actual progress.

CellRendererText

AGtkCellRendererText renders a given text in its cell, using the font, color andstyle information provided by its properties. The text will be ellipsized if it istoo long and theGtkCellRendererText:ellipsize property allows it.

CellRendererToggle

GtkCellRendererToggle renders a toggle button in a cell. Thebutton is drawn as a radio or a checkbutton, depending on theGtkCellRendererToggle:radio property.When activated, it emits theGtkCellRendererToggle::toggled signal.

CellView

AGtkCellView displays a single row of aGtkTreeModel using aGtkCellAreaandGtkCellAreaContext. AGtkCellAreaContext can be provided to theGtkCellView at construction time in order to keep the cellview in contextof a group of cell views, this ensures that the renderers displayed willbe properly aligned with eachother (like the aligned cells in the menusofGtkComboBox).

CheckButton

AGtkCheckButton places a discreteGtkToggleButton next to a widget,(usually aGtkLabel). See the section onGtkToggleButton widgets formore information about toggle/check buttons.

CheckMenuItem

AGtkCheckMenuItem is a menu item that maintains the state of a booleanvalue in addition to aGtkMenuItem usual role in activating application code.

CheckMenuItemAccessible

Clipboard

TheGtkClipboard object represents a clipboard of data sharedbetween different processes or between different widgets inthe same process. Each clipboard is identified by a name encoded as aGdkAtom. (Conversion to and from strings can be done withgdk_atom_intern() and gdk_atom_name().) The default clipboardcorresponds to the “CLIPBOARD” atom; another commonly used clipboardis the “PRIMARY” clipboard, which, in X, traditionally containsthe currently selected text.

ColorButton

TheGtkColorButton is a button which displays the currently selectedcolor and allows to open a color selection dialog to change the color.It is suitable widget for selecting a color in a preference dialog.

ColorChooserDialog

TheGtkColorChooserDialog widget is a dialog for choosinga color. It implements theGtkColorChooser interface.

since: 3.4

ColorChooserWidget

TheGtkColorChooserWidget widget lets the user select acolor. By default, the chooser presents a predefined paletteof colors, plus a small number of settable custom colors.It is also possible to select a different color with thesingle-color editor. To enter the single-color editing mode,use the context menu of any color of the palette, or use the‘+’ button to add a new custom color.

since: 3.4

ColorSelection

ColorSelectionDialog

ComboBox

A GtkComboBox is a widget that allows the user to choose from a list ofvalid choices. The GtkComboBox displays the selected choice. Whenactivated, the GtkComboBox displays a popup which allows the user tomake a new choice. The style in which the selected value is displayed,and the style of the popup is determined by the current theme. It maybe similar to a Windows-style combo box.

ComboBoxAccessible

ComboBoxText

A GtkComboBoxText is a simple variant ofGtkComboBox that hidesthe model-view complexity for simple text-only use cases.

Container

AGTK+ user interface is constructed by nesting widgets inside widgets.Container widgets are the inner nodes in the resulting tree of widgets:they contain other widgets. So, for example, you might have aGtkWindowcontaining aGtkFrame containing aGtkLabel. If you wanted an image insteadof a textual label inside the frame, you might replace theGtkLabel widgetwith aGtkImage widget.

ContainerAccessible

ContainerCellAccessible

CssProvider

GtkCssProvider is an object implementing theGtkStyleProvider interface.It is able to parse [CSS-like][css-overview] input in order to style widgets.

Dialog

Dialog boxes are a convenient way to prompt the user for a small amountof input, e.g. to display a message, ask a question, or anything elsethat does not require extensive effort on the user’s part.

DrawingArea

TheGtkDrawingArea widget is used for creating custom user interfaceelements. It’s essentially a blank widget; you can draw on it. Aftercreating a drawing area, the application may want to connect to:.

Entry

TheGtkEntry widget is a single line text entrywidget. A fairly large set of key bindings are supportedby default. If the entered text is longer than the allocationof the widget, the widget will scroll so that the cursorposition is visible.

EntryAccessible

EntryBuffer

TheGtkEntryBuffer class contains the actual text displayed in aGtkEntry widget.

since: 2.18

EntryCompletion

GtkEntryCompletion is an auxiliary object to be used in conjunction withGtkEntry to provide the completion functionality. It implements theGtkCellLayout interface, to allow the user to add extra cells to theGtkTreeView with completion matches.

EntryIconAccessible

EventBox

TheGtkEventBox widget is a subclass ofGtkBin which also has itsown window. It is useful since it allows you to catch events for widgetswhich do not have their own window.

EventController

GtkEventController is a base, low-level implementation for eventcontrollers. Those react to a series ofGdkEvents, and possibly triggeractions as a consequence of those.

EventControllerKey

GtkEventControllerKey is an event controller meant for situationswhere you need access to key events.

EventControllerMotion

GtkEventControllerMotion is an event controller meant for situationswhere you need to track the position of the pointer.

EventControllerScroll

GtkEventControllerScroll is an event controller meant to handlescroll events from mice and touchpads. It is capable of handlingboth discrete and continuous scroll events, abstracting them bothon theGtkEventControllerScroll::scroll signal (deltas in thediscrete case are multiples of 1).

Expander

AGtkExpander allows the user to hide or show its child by clickingon an expander triangle similar to the triangles used in aGtkTreeView.

ExpanderAccessible

FileChooserButton

TheGtkFileChooserButton is a widget that lets the user select afile. It implements theGtkFileChooser interface. Visually, it is afile name with a button to bring up aGtkFileChooserDialog.The user can then use that dialog to change the file associated withthat button. This widget does not support setting theGtkFileChooser:select-multiple property toTRUE.

FileChooserDialog

GtkFileChooserDialog is a dialog box suitable for use with“File/Open” or “File/Save as” commands. This widget works byputting aGtkFileChooserWidget inside aGtkDialog. It exposestheGtkFileChooser interface, so you can use all of theGtkFileChooser functions on the file chooser dialog as well asthose forGtkDialog.

FileChooserNative

GtkFileChooserNative is an abstraction of a dialog box suitablefor use with “File/Open” or “File/Save as” commands. By default, thisjust uses aGtkFileChooserDialog to implement the actual dialog.However, on certain platforms, such as Windows and macOS, the native platformfile chooser is used instead. When the application is running in asandboxed environment without direct filesystem access (such as Flatpak),GtkFileChooserNative may call the proper APIs (portals) to let the userchoose a file and make it available to the application.

FileChooserWidget

GtkFileChooserWidget is a widget for choosing files.It exposes theGtkFileChooser interface, and you shoulduse the methods of this interface to interact with the widget.

FileChooserWidgetAccessible

unstable since: 3.24.30

FileFilter

A GtkFileFilter can be used to restrict the files being shown in aGtkFileChooser. Files can be filtered based on their name (withgtk_file_filter_add_pattern()), on their mime type (withgtk_file_filter_add_mime_type()), or by a custom filter function(with gtk_file_filter_add_custom()).

Fixed

TheGtkFixed widget is a container which can place child widgetsat fixed positions and with fixed sizes, given in pixels.GtkFixedperforms no automatic layout management.

FlowBox

A GtkFlowBox positions child widgets in sequence according to its orientation.

FlowBoxAccessible

FlowBoxChild

FlowBoxChildAccessible

FontButton

TheGtkFontButton is a button which displays the currently selectedfont an allows to open a font chooser dialog to change the font.It is suitable widget for selecting a font in a preference dialog.

FontChooserDialog

TheGtkFontChooserDialog widget is a dialog for selecting a font.It implements theGtkFontChooser interface.

since: 3.2

FontChooserWidget

TheGtkFontChooserWidget widget lists the available fonts,styles and sizes, allowing the user to select a font. It isused in theGtkFontChooserDialog widget to provide adialog box for selecting fonts.

since: 3.2

FontSelection

FontSelectionDialog

Frame

The frame widget is a bin that surrounds its child with a decorativeframe and an optional label. If present, the label is drawn in a gapin the top side of the frame. The position of the label can becontrolled with gtk_frame_set_label_align().

FrameAccessible

Gesture

GtkGesture is the base object for gesture recognition, although thisobject is quite generalized to serve as a base for multi-touch gestures,it is suitable to implement single-touch and pointer-based gestures (usingthe specialNULLGdkEventSequence value for these).

GestureDrag

GtkGestureDrag is aGtkGesture implementation that recognizes dragoperations. The drag operation itself can be tracked throught theGtkGestureDrag::drag-begin,GtkGestureDrag::drag-update andGtkGestureDrag::drag-end signals, or the relevant coordinates beextracted throughgtk_gesture_drag_get_offset() and gtk_gesture_drag_get_start_point().

GestureLongPress

GtkGestureLongPress is aGtkGesture implementation able to recognizelong presses, triggering theGtkGestureLongPress::pressed after thetimeout is exceeded.

GestureMultiPress

GtkGestureMultiPress is aGtkGesture implementation able to recognizemultiple clicks on a nearby zone, which can be listened for through theGtkGestureMultiPress::pressed signal. Whenever time or distance betweenclicks exceed theGTK+ defaults,GtkGestureMultiPress::stopped is emitted,and the click counter is reset.

GesturePan

GtkGesturePan is aGtkGesture implementation able to recognizepan gestures, those are drags that are locked to happen along oneaxis. The axis that aGtkGesturePan handles is defined atconstruct time, and can be changed through gtk_gesture_pan_set_orientation().

GestureRotate

GtkGestureRotate is aGtkGesture implementation able to recognize2-finger rotations, whenever the angle between both handled sequenceschanges, theGtkGestureRotate::angle-changed signal is emitted.

GestureSingle

GtkGestureSingle is a subclass ofGtkGesture, optimized (althoughnot restricted) for dealing with mouse and single-touch gestures. Underinteraction, these gestures stick to the first interacting sequence, whichis accessible throughgtk_gesture_single_get_current_sequence() while thegesture is being interacted with.

GestureStylus

GtkGestureStylus is aGtkGesture implementation specific to stylusinput. The provided signals just provide the basic information.

GestureSwipe

GtkGestureSwipe is aGtkGesture implementation able to recognizeswipes, after a press/move/…/move/release sequence happens, theGtkGestureSwipe::swipe signal will be emitted, providing the velocityand directionality of the sequence at the time it was lifted.

GestureZoom

GtkGestureZoom is aGtkGesture implementation able to recognizepinch/zoom gestures, whenever the distance between both trackedsequences changes, theGtkGestureZoom::scale-changed signal isemitted to report the scale factor.

GLArea

GtkGLArea is a widget that allows drawing with OpenGL.

since: 3.16

Grid

GtkGrid is a container which arranges its child widgets inrows and columns, with arbitrary positions and horizontal/vertical spans.

HandleBox

TheGtkHandleBox widget allows a portion of a window to be “tornoff”. It is a bin widget which displays its child and a handle thatthe user can drag to tear off a separate window (the “floatwindow”) containing the child widget. A thin“ghost” is drawn in the original location of thehandlebox. By dragging the separate window back to its originallocation, it can be reattached.

HBox

GtkHBox is a container that organizes child widgets into a single row.

HButtonBox

HeaderBar

GtkHeaderBar is similar to a horizontalGtkBox. It allows children tobe placed at the start or the end. In addition, it allows a title andsubtitle to be displayed. The title will be centered with respect tothe width of the box, even if the children at either side take updifferent amounts of space. The height of the titlebar will beset to provide sufficient space for the subtitle, even if none iscurrently set. If a subtitle is not needed, the space reservationcan be turned off with gtk_header_bar_set_has_subtitle().

HeaderBarAccessible

unstable since: 3.24.11

HPaned

The HPaned widget is a container widget with twochildren arranged horizontally. The division betweenthe two panes is adjustable by the user by dragginga handle. SeeGtkPaned for details.

HScale

TheGtkHScale widget is used to allow the user to select a value usinga horizontal slider. To create one, use gtk_hscale_new_with_range().

HScrollbar

TheGtkHScrollbar widget is a widget arranged horizontally creating ascrollbar. SeeGtkScrollbar for details onscrollbars.GtkAdjustment pointers may be added to handle theadjustment of the scrollbar or it may be leftNULL in which case onewill be created for you. SeeGtkScrollbar for a description of what thefields in an adjustment represent for a scrollbar.

HSeparator

TheGtkHSeparator widget is a horizontal separator, used to group thewidgets within a window. It displays a horizontal line with a shadow tomake it appear sunken into the interface.

HSV

GtkHSV is the “color wheel” part of a complete color selector widget.It allows to select a color by determining itsHSV components in anintuitive way. Moving the selection around the outer ring changes the hue,and moving the selection point inside the inner triangle changes value and saturation.

IconFactory

An icon factory manages a collection ofGtkIconSet; aGtkIconSet manages aset of variants of a particular icon (i.e. aGtkIconSet contains variants fordifferent sizes and widget states). Icons in an icon factory are named by astockID, which is a simple string identifying the icon. EachGtkStyle has alist ofGtkIconFactory derived from the current theme; those icon factoriesare consulted first when searching for an icon. If the theme doesn’t set aparticular icon,GTK+ looks for the icon in a list of default icon factories,maintained bygtk_icon_factory_add_default() andgtk_icon_factory_remove_default(). Applications with icons should add a defaulticon factory with their icons, which will allow themes to override the iconsfor the application.

IconInfo

Contains information found when looking up an icon inan icon theme.

IconTheme

GtkIconTheme provides a facility for looking up icons by nameand size. The main reason for using a name rather than simplyproviding a filename is to allow different icons to be useddepending on what “icon theme” is selectedby the user. The operation of icon themes on Linux and Unixfollows theIcon Theme SpecificationThere is a fallback icon theme, namedhicolor, where applicationsshould install their icons, but additional icon themes can be installedas operating system vendors and users choose.

IconView

GtkIconView provides an alternative view on aGtkTreeModel.It displays the model as a grid of icons with labels. LikeGtkTreeView, it allows to select one or multiple items(depending on the selection mode, see gtk_icon_view_set_selection_mode()).In addition to selection with the arrow keys,GtkIconView supportsrubberband selection, which is controlled by dragging the pointer.

IconViewAccessible

Image

TheGtkImage widget displays an image. Various kinds of objectcan be displayed as an image; most typically, you would load aGdkPixbuf (“pixel buffer”) from a file, and then display that.There’s a convenience function to do this, gtk_image_new_from_file(),used as follows:

GtkWidget*image;image=gtk_image_new_from_file("myfile.png");

If the file isn’t loaded successfully, the image will contain a“broken image” icon similar to that used in many web browsers.If you want to handle errors in loading the file yourself,for example by displaying an error message, then load the image withgdk_pixbuf_new_from_file(), then create theGtkImage with gtk_image_new_from_pixbuf().

ImageAccessible

ImageCellAccessible

ImageMenuItem

A GtkImageMenuItem is a menu item which has an icon next to the text label.

IMContext

GtkIMContext defines the interface forGTK+ input methods. An input methodis used byGTK+ text input widgets likeGtkEntry to map from key events toUnicode character strings.

IMContextSimple

GtkIMContextSimple is a simple input method context supporting table-basedinput methods. It has a built-in table of compose sequences that is derivedfrom the X11 Compose files.

IMMulticontext

InfoBar

GtkInfoBar is a widget that can be used to show messages tothe user without showing a dialog. It is often temporarily shownat the top or bottom of a document. In contrast toGtkDialog, whichhas a action area at the bottom,GtkInfoBar has an action areaat the side.

Invisible

TheGtkInvisible widget is used internally inGTK+, and is probably notvery useful for application developers.

Label

TheGtkLabel widget displays a small amount of text. As the nameimplies, most labels are used to label another widget such as aGtkButton, aGtkMenuItem, or aGtkComboBox.

LabelAccessible

Layout

GtkLayout is similar toGtkDrawingArea in that it’s a “blank slate” anddoesn’t do anything except paint a blank background by default. It’sdifferent in that it supports scrolling natively due to implementingGtkScrollable, and can contain child widgets since it’s aGtkContainer.

LevelBar

TheGtkLevelBar is a bar widget that can be usedas a level indicator. Typical use cases are displaying the strengthof a password, or showing the charge level of a battery.

LevelBarAccessible

LinkButton

A GtkLinkButton is aGtkButton with a hyperlink, similar to the oneused by web browsers, which triggers an action when clicked. It is usefulto show quick links to resources.

LinkButtonAccessible

ListBox

A GtkListBox is a vertical container that contains GtkListBoxRowchildren. These rows can be dynamically sorted and filtered, andheaders can be added dynamically depending on the row content.It also allows keyboard and mouse navigation and selection likea typical list.

ListBoxAccessible

ListBoxRow

ListBoxRowAccessible

ListStore

TheGtkListStore object is a list model for use with aGtkTreeViewwidget. It implements theGtkTreeModel interface, and consequentialy,can use all of the methods available there. It also implements theGtkTreeSortable interface so it can be sorted by the view.Finally, it also implements the tree[drag and drop][gtk3-GtkTreeView-drag-and-drop] interfaces.

LockButton

GtkLockButton is a widget that can be used in control panels orpreference dialogs to allow users to obtain and revoke authorizationsneeded to operate the controls. The required authorization is representedby aGPermission object. Concrete implementations ofGPermission may usePolicyKit or some other authorization framework. To obtain a PolicyKit-basedGPermission, use polkit_permission_new().

LockButtonAccessible

Menu

AGtkMenu is aGtkMenuShell that implements a drop down menuconsisting of a list ofGtkMenuItem objects which can be navigatedand activated by the user to perform application functions.

MenuAccessible

MenuBar

TheGtkMenuBar is a subclass ofGtkMenuShell which contains one ormoreGtkMenuItems. The result is a standard menu bar which can holdmany menu items.

MenuButton

TheGtkMenuButton widget is used to display a popup when clicked on.This popup can be provided either as aGtkMenu, aGtkPopover or anabstractGMenuModel.

MenuButtonAccessible

MenuItem

TheGtkMenuItem widget and the derived widgets are the only validchildren for menus. Their function is to correctly handle highlighting,alignment, events and submenus.

MenuItemAccessible

MenuShell

AGtkMenuShell is the abstract base class used to derive theGtkMenu andGtkMenuBar subclasses.

MenuShellAccessible

MenuToolButton

AGtkMenuToolButton is aGtkToolItem that contains a button anda small additional button with an arrow. When clicked, the arrowbutton pops up a dropdown menu.

MessageDialog

GtkMessageDialog presents a dialog with some message text. It’s simply aconvenience widget; you could construct the equivalent ofGtkMessageDialogfromGtkDialog without too much effort, butGtkMessageDialog saves typing.

Misc

TheGtkMisc widget is an abstract widget which is not useful itself, butis used to derive subclasses which have alignment and padding attributes.

ModelButton

GtkModelButton is a button class that can use aGAction as its model.In contrast toGtkToggleButton orGtkRadioButton, which can alsobe backed by aGAction via theGtkActionable:action-name property,GtkModelButton will adapt its appearance according to the kind ofaction it is backed by, and appear either as a plain, check orradio button.

MountOperation

This should not be accessed directly. Use the accessor functions below.

NativeDialog

Native dialogs are platform dialogs that don’t useGtkDialog orGtkWindow. They are used in order to integrate better with aplatform, by looking the same as other native applications andsupporting platform specific features.

Notebook

TheGtkNotebook widget is aGtkContainer whose children are pages thatcan be switched between using tab labels along one edge.

NotebookAccessible

NotebookPageAccessible

NumerableIcon

GtkNumerableIcon is a subclass ofGEmblemedIcon that canshow a number or short string as an emblem. The number canbe overlayed on top of another emblem, if desired.

OffscreenWindow

GtkOffscreenWindow is strictly intended to be used for obtainingsnapshots of widgets that are not part of a normal widget hierarchy.SinceGtkOffscreenWindow is a toplevel widget you cannot obtainsnapshots of a full window with it since you cannot pack a toplevelwidget in another toplevel.

Overlay

GtkOverlay is a container which contains a single main child, on topof which it can place “overlay” widgets. The position of each overlaywidget is determined by itsGtkWidget:halign andGtkWidget:valignproperties. E.g. a widget with both alignments set toGTK_ALIGN_STARTwill be placed at the top left corner of the GtkOverlay container,whereas an overlay with halign set toGTK_ALIGN_CENTER and valign settoGTK_ALIGN_END will be placed a the bottom edge of the GtkOverlay,horizontally centered. The position can be adjusted by setting the marginproperties of the child to non-zero values.

PadController

GtkPadController is an event controller for the pads found in drawingtablets (The collection of buttons and tactile sensors often found aroundthe stylus-sensitive area).

PageSetup

A GtkPageSetup object stores the page size, orientation and margins.The idea is that you can get one of these from the page setup dialogand then pass it to theGtkPrintOperation when printing.The benefit of splitting this out of theGtkPrintSettings is thatthese affect the actual layout of the page, and thus need to be setlong before user prints.

Paned

GtkPaned has two panes, arranged eitherhorizontally or vertically. The division betweenthe two panes is adjustable by the user by dragginga handle.

PanedAccessible

PlacesSidebar

GtkPlacesSidebar is a widget that displays a list of frequently-used places in thefile system: the user’s home directory, the user’s bookmarks, and volumes and drives.This widget is used as a sidebar inGtkFileChooser and may be used by file managersand similar programs.

Plug

Together withGtkSocket,GtkPlug provides the ability to embedwidgets from one process into another process in a fashion that istransparent to the user. One process creates aGtkSocket widgetand passes theID of that widget’s window to the other process,which then creates aGtkPlug with that windowID. Any widgetscontained in theGtkPlug then will appear inside the firstapplication’s window.

PlugAccessible

unstable since: 3.24.30

Popover

GtkPopover is a bubble-like context window, primarily meant toprovide context-dependent information or options. Popovers areattached to a widget, passed at construction time on gtk_popover_new(),or updated afterwards through gtk_popover_set_relative_to(), bydefault they will point to the whole widget area, although thisbehavior can be changed through gtk_popover_set_pointing_to().

since: 3.12

PopoverAccessible

PopoverMenu

GtkPopoverMenu is a subclass ofGtkPopover that treats itschildren like menus and allows switching between them. It ismeant to be used primarily together withGtkModelButton, butany widget can be used, such asGtkSpinButton orGtkScale.In this respect, GtkPopoverMenu is more flexible than popoversthat are created from aGMenuModel with gtk_popover_new_from_model().

PrintContext

A GtkPrintContext encapsulates context information that is required whendrawing pages for printing, such as the cairo context and importantparameters like page size and resolution. It also lets you easilycreatePangoLayout andPangoContext objects that match the font metricsof the cairo surface.

PrintOperation

GtkPrintOperation is the high-level, portable printingAPI.It looks a bit different than otherGTK+ dialogs such as theGtkFileChooser, since some platforms don’t expose enoughinfrastructure to implement a good print dialog. On suchplatforms, GtkPrintOperation uses the native print dialog.On platforms which do not provide a native print dialog,GTK+uses its own, seeGtkPrintUnixDialog.

PrintSettings

A GtkPrintSettings object represents the settings of a print dialog ina system-independent way. The main use for this object is that onceyou’ve printed you can get a settings object that represents the settingsthe user chose, and the next time you print you can pass that object in sothat the user doesn’t have to re-set all his settings.

ProgressBar

TheGtkProgressBar is typically used to display the progress of a longrunning operation. It provides a visual clue that processing is underway.The GtkProgressBar can be used in two different modes: percentage modeand activity mode.

ProgressBarAccessible

RadioAction

AGtkRadioAction is similar toGtkRadioMenuItem. A number of radioactions can be linked together so that only one may be active at anyone time.

RadioButton

A single radio button performs the same basic function as aGtkCheckButton,as its position in the object hierarchy reflects. It is only when multipleradio buttons are grouped together that they become a different userinterface component in their own right.

RadioButtonAccessible

RadioMenuItem

A radio menu item is a check menu item that belongs to a group. At eachinstant exactly one of the radio menu items from a group is selected.

RadioMenuItemAccessible

RadioToolButton

AGtkRadioToolButton is aGtkToolItem that contains a radio button,that is, a button that is part of a group of toggle buttons where onlyone button can be active at a time.

Range

GtkRange is the common base class for widgets which visualize anadjustment, e.gGtkScale orGtkScrollbar.

RangeAccessible

RcStyle

TheGtkRcStyle-struct is used to represent a setof information about the appearance of a widget.This can later be composited together with otherGtkRcStyle-structs to form aGtkStyle.

RecentAction

AGtkRecentAction represents a list of recently used files, whichcan be shown by widgets such asGtkRecentChooserDialog orGtkRecentChooserMenu.

RecentChooserDialog

GtkRecentChooserDialog is a dialog box suitable for displaying the recentlyused documents. This widgets works by putting aGtkRecentChooserWidget insideaGtkDialog. It exposes theGtkRecentChooserIface interface, so you can useall theGtkRecentChooser functions on the recent chooser dialog as well asthose forGtkDialog.

RecentChooserMenu

GtkRecentChooserMenu is a widget suitable for displaying recently used filesinside a menu. It can be used to set a sub-menu of aGtkMenuItem usinggtk_menu_item_set_submenu(), or as the menu of aGtkMenuToolButton.

RecentChooserWidget

GtkRecentChooserWidget is a widget suitable for selecting recently usedfiles. It is the main building block of aGtkRecentChooserDialog. Mostapplications will only need to use the latter; you can useGtkRecentChooserWidget as part of a larger window if you have special needs.

RecentFilter

AGtkRecentFilter can be used to restrict the files being shownin aGtkRecentChooser. Files can be filtered based on their name(with gtk_recent_filter_add_pattern()), on their mime type (withgtk_file_filter_add_mime_type()), on the application that hasregistered them (with gtk_recent_filter_add_application()), or bya custom filter function (with gtk_recent_filter_add_custom()).

RecentManager

GtkRecentManager provides a facility for adding, removing andlooking up recently used files. Each recently used file isidentified by itsURI, and has meta-data associated to it, likethe names and command lines of the applications that haveregistered it, the number of time each application has registeredthe same file, the mime type of the file and whether the fileshould be displayed only by the applications that haveregistered it.

since: 2.10

RendererCellAccessible

Revealer

The GtkRevealer widget is a container which animatesthe transition of its child from invisible to visible.

Scale

A GtkScale is a slider control used to select a numeric value.To use it, you’ll probably want to investigate the methods onits base class,GtkRange, in addition to the methods for GtkScale itself.To set the value of a scale, you would normally use gtk_range_set_value().To detect changes to the value, you would normally use theGtkRange::value-changed signal.

ScaleAccessible

ScaleButton

GtkScaleButton provides a button which pops up a scale widget.This kind of widget is commonly used for volume controls in multimediaapplications, andGTK+ provides aGtkVolumeButton subclass thatis tailored for this use case.

ScaleButtonAccessible

Scrollbar

TheGtkScrollbar widget is a horizontal or vertical scrollbar,depending on the value of theGtkOrientable:orientation property.

ScrolledWindow

GtkScrolledWindow is a container that accepts a single child widget and makesthat child scrollable using either internally added scrollbars or externallyassociated adjustments.

ScrolledWindowAccessible

SearchBar

GtkSearchBar is a container made to have a search entry (possiblywith additional connex widgets, such as drop-down menus, or buttons)built-in. The search bar would appear when a search is started throughtyping on the keyboard, or the application’s search mode is toggled on.

since: 3.10

SearchEntry

GtkSearchEntry is a subclass ofGtkEntry that has beentailored for use as a search entry.

since: 3.6

Separator

GtkSeparator is a horizontal or vertical separator widget, depending on thevalue of theGtkOrientable:orientation property, used to group the widgetswithin a window. It displays a line with a shadow to make it appear sunkeninto the interface.

SeparatorMenuItem

TheGtkSeparatorMenuItem is a separator used to groupitems within a menu. It displays a horizontal line with a shadow tomake it appear sunken into the interface.

SeparatorToolItem

AGtkSeparatorToolItem is aGtkToolItem that separates groups of otherGtkToolItems. Depending on the theme, aGtkSeparatorToolItem willoften look like a vertical line on horizontally docked toolbars.

Settings

GtkSettings provide a mechanism to share global settings between applications.

ShortcutLabel

GtkShortcutLabel is a widget that represents a single keyboard shortcut or gesturein the user interface.

ShortcutsGroup

A GtkShortcutsGroup represents a group of related keyboard shortcutsor gestures. The group has a title. It may optionally be associated witha view of the application, which can be used to show only relevant shortcutsdepending on the application context.

ShortcutsSection

A GtkShortcutsSection collects all the keyboard shortcuts and gesturesfor a major application mode. If your application needs multiple sections,you should give each section a uniqueGtkShortcutsSection:section-name andaGtkShortcutsSection:title that can be shown in the section selector ofthe GtkShortcutsWindow.

ShortcutsShortcut

A GtkShortcutsShortcut represents a single keyboard shortcut or gesturewith a short text. This widget is only meant to be used withGtkShortcutsWindow.

ShortcutsWindow

A GtkShortcutsWindow shows brief information about the keyboard shortcutsand gestures of an application. The shortcuts can be grouped, and you canhave multiple sections in this window, corresponding to the major modes ofyour application.

SizeGroup

GtkSizeGroup provides a mechanism for grouping a number of widgetstogether so they all request the same amount of space. This istypically useful when you want a column of widgets to have the samesize, but you can’t use aGtkGrid widget.

Socket

Together withGtkPlug,GtkSocket provides the ability to embedwidgets from one process into another process in a fashion thatis transparent to the user. One process creates aGtkSocket widgetand passes that widget’s windowID to the other process, which thencreates aGtkPlug with that windowID. Any widgets contained in theGtkPlug then will appear inside the first application’s window.

SocketAccessible

unstable since: 3.24.30

SpinButton

AGtkSpinButton is an ideal way to allow the user to set the value ofsome attribute. Rather than having to directly type a number into aGtkEntry, GtkSpinButton allows the user to click on one of two arrowsto increment or decrement the displayed value. A value can still betyped in, with the bonus that it can be checked to ensure it is in agiven range.

SpinButtonAccessible

Spinner

A GtkSpinner widget displays an icon-size spinning animation.It is often used as an alternative to aGtkProgressBar fordisplaying indefinite activity, instead of actual progress.

SpinnerAccessible

Stack

The GtkStack widget is a container which only showsone of its children at a time. In contrast to GtkNotebook,GtkStack does not provide a means for users to change thevisible child. Instead, theGtkStackSwitcher widget can beused with GtkStack to provide this functionality.

StackAccessible

StackSidebar

A GtkStackSidebar enables you to quickly and easily provide aconsistent “sidebar” object for your user interface.

since: 3.16

StackSwitcher

The GtkStackSwitcher widget acts as a controller for aGtkStack; it shows a row of buttons to switch betweenthe various pages of the associated stack widget.

Statusbar

AGtkStatusbar is usually placed along the bottom of an application’smainGtkWindow. It may provide a regular commentary of the application’sstatus (as is usually the case in a web browser, for example), or may beused to simply output a message when the status changes, (when an uploadis complete in anFTP client, for example).

StatusbarAccessible

StatusIcon

The “system tray” or notification area is normally used for transient iconsthat indicate some special state. For example, a system tray icon mightappear to tell the user that they have new mail, or have an incoming instantmessage, or something along those lines. The basic idea is that creating anicon in the notification area is less annoying than popping up a dialog.

Style

AGtkStyle object encapsulates the information that provides the look andfeel for a widget.

StyleContext

GtkStyleContext is an object that stores styling information affectinga widget defined byGtkWidgetPath.

StyleProperties

GtkStyleProperties provides the storage for style informationthat is used byGtkStyleContext and otherGtkStyleProviderimplementations.

Switch

GtkSwitch is a widget that has two states: on or off. The user can controlwhich state should be active by clicking the empty area, or by dragging the handle.

SwitchAccessible

Table

TheGtkTable functions allow the programmer to arrange widgets in rows andcolumns, making it easy to align many widgets next to each other,horizontally and vertically.

TearoffMenuItem

AGtkTearoffMenuItem is a specialGtkMenuItem which is used totear off and reattach its menu.

TextBuffer

You may wish to begin by reading thetext widget conceptual overviewwhich gives an overview of all the objects and datatypes related to the text widget and how they work together.

TextCellAccessible

TextChildAnchor

AGtkTextChildAnchor is a spot in the buffer where child widgets canbe “anchored” (inserted inline, as if they were characters). The anchorcan have multiple widgets anchored, to allow for multiple views.

TextMark

You may wish to begin by reading thetext widget conceptual overviewwhich gives an overview of all the objects and datatypes related to the text widget and how they work together.

TextTag

You may wish to begin by reading thetext widget conceptual overviewwhich gives an overview of all the objects anddata types related to the text widget and how they work together.

TextTagTable

You may wish to begin by reading thetext widget conceptual overviewwhich gives an overview of all the objects anddata types related to the text widget and how they work together.

TextView

You may wish to begin by reading thetext widget conceptual overviewwhich gives an overview of all the objects and datatypes related to the text widget and how they work together.

TextViewAccessible

ThemingEngine

GtkThemingEngine was the object used for rendering themed contentinGTK+ widgets. It used to allow overridingGTK+’s defaultimplementation of rendering functions by allowing engines to beloaded as modules.

ToggleAction

AGtkToggleAction corresponds roughly to aGtkCheckMenuItem. It has an“active” state specifying whether the action has been checked or not.

ToggleButton

AGtkToggleButton is aGtkButton which will remain “pressed-in” whenclicked. Clicking again will cause the toggle button to return to itsnormal state.

ToggleButtonAccessible

ToggleToolButton

AGtkToggleToolButton is aGtkToolItem that contains a toggle button.

Toolbar

A toolbar is created with a call to gtk_toolbar_new().

ToolButton

GtkToolButtons areGtkToolItems containing buttons.

ToolItem

GtkToolItems are widgets that can appear on a toolbar. Tocreate a toolbar item that contain something else than a button, usegtk_tool_item_new(). Usegtk_container_add() to add a childwidget to the tool item.

ToolItemGroup

AGtkToolItemGroup is used together withGtkToolPalette to addGtkToolItems to a palette like container with differentcategories and drag and drop support.

since: 2.20

ToolPalette

AGtkToolPalette allows you to addGtkToolItems to a palette-likecontainer with different categories and drag and drop support.

since: 2.20

Tooltip

Basic tooltips can be realized simply by usinggtk_widget_set_tooltip_text()orgtk_widget_set_tooltip_markup() without any explicit tooltip object.

ToplevelAccessible

TreeModelFilter

AGtkTreeModelFilter is a tree model which wraps another tree model,and can do the following things:.

TreeModelSort

TheGtkTreeModelSort is a model which implements theGtkTreeSortableinterface. It does not hold any data itself, but rather is created witha child model and proxies its data. It has identical column types tothis child model, and the changes in the child are propagated. Theprimary purpose of this model is to provide a way to sort a differentmodel without modifying it. Note that the sort function used byGtkTreeModelSort is not guaranteed to be stable.

TreeSelection

TheGtkTreeSelection object is a helper object to manage the selectionfor aGtkTreeView widget. TheGtkTreeSelection object isautomatically created when a newGtkTreeView widget is created, andcannot exist independently of this widget. The primary reason theGtkTreeSelection objects exists is for cleanliness of code andAPI.That is, there is no conceptual reason all these functions could not bemethods on theGtkTreeView widget instead of a separate function.

TreeStore

TheGtkTreeStore object is a list model for use with aGtkTreeViewwidget. It implements theGtkTreeModel interface, and consequentially,can use all of the methods available there. It also implements theGtkTreeSortable interface so it can be sorted by the view. Finally,it also implements the tree[drag and drop][gtk3-GtkTreeView-drag-and-drop] interfaces.

TreeView

Widget that displays any object that implements theGtkTreeModel interface.

TreeViewAccessible

TreeViewColumn

The GtkTreeViewColumn object represents a visible column in aGtkTreeView widget.It allows to set properties of the column header, and functions as a holding pen forthe cell renderers which determine how the data in the column is displayed.

UIManager

AGtkUIManager constructs a user interface (menus and toolbars) fromone or moreUI definitions, which reference actions from one or moreaction groups.

VBox

AGtkVBox is a container that organizes child widgets into a single column.

VButtonBox

Viewport

TheGtkViewport widget acts as an adaptor class, implementingscrollability for child widgets that lack their own scrollingcapabilities. Use GtkViewport to scroll child widgets such asGtkGrid,GtkBox, and so on.

VolumeButton

GtkVolumeButton is a subclass ofGtkScaleButton that hasbeen tailored for use as a volume control widget with suitableicons, tooltips and accessible labels.

VPaned

The VPaned widget is a container widget with twochildren arranged vertically. The division betweenthe two panes is adjustable by the user by dragginga handle. SeeGtkPaned for details.

VScale

TheGtkVScale widget is used to allow the user to select a value usinga vertical slider. To create one, use gtk_hscale_new_with_range().

VScrollbar

TheGtkVScrollbar widget is a widget arranged vertically creating ascrollbar. SeeGtkScrollbar for details onscrollbars.GtkAdjustment pointers may be added to handle theadjustment of the scrollbar or it may be leftNULL in which case onewill be created for you. SeeGtkScrollbar for a description of what thefields in an adjustment represent for a scrollbar.

VSeparator

TheGtkVSeparator widget is a vertical separator, used to group thewidgets within a window. It displays a vertical line with a shadow tomake it appear sunken into the interface.

Widget

GtkWidget is the base class all widgets inGTK+ derive from. It manages thewidget lifecycle, states and style.

WidgetAccessible

Window

A GtkWindow is a toplevel window which can contain other widgets.Windows normally have decorations that are under the controlof the windowing system and allow the user to manipulate the window(resize it, move it, close it,…).

WindowAccessible

WindowGroup

AGtkWindowGroup restricts the effect of grabs to windowsin the same group, thereby making window groups almost behavelike separate applications.

Interfaces

Actionable

This interface provides a convenient way of associating widgets withactions on aGtkApplicationWindow orGtkApplication.

since: 3.4

Activatable

Activatable widgets can be connected to aGtkAction and reflectsthe state of its action. AGtkActivatable can also provide feedbackthrough its action, as they are responsible for activating theirrelated actions.

AppChooser

GtkAppChooser is an interface that can be implemented by widgets whichallow the user to choose an application (typically for the purpose ofopening a file). The main objects that implement this interface areGtkAppChooserWidget,GtkAppChooserDialog andGtkAppChooserButton.

Buildable

GtkBuildable allows objects to extend and customize their deserializationfrom [GtkBuilderUI descriptions][BUILDER-UI].The interface includes methods for setting names and properties of objects,parsing custom tags and constructing child objects.

CellAccessibleParent

CellEditable

TheGtkCellEditable interface must be implemented for widgets to be usableto edit the contents of aGtkTreeView cell. It provides a way to specify howtemporary widgets should be configured for editing, get the new value, etc.

CellLayout

GtkCellLayout is an interface to be implemented by all objects whichwant to provide aGtkTreeViewColumn likeAPI for packing cells,setting attributes and data funcs.

ColorChooser

GtkColorChooser is an interface that is implemented by widgetsfor choosing colors. Depending on the situation, colors may beallowed to have alpha (translucency).

since: 3.4

Editable

TheGtkEditable interface is an interface which should be implemented bytext editing widgets, such asGtkEntry andGtkSpinButton. It contains functionsfor generically manipulating an editable widget, a large number of actionsignals used for key bindings, and several signals that an application canconnect to to modify the behavior of a widget.

FileChooser

GtkFileChooser is an interface that can be implemented by fileselection widgets. InGTK+, the main objects that implement thisinterface areGtkFileChooserWidget,GtkFileChooserDialog, andGtkFileChooserButton. You do not need to write an object thatimplements theGtkFileChooser interface unless you are trying toadapt an existing file selector to expose a standard programming interface.

FontChooser

GtkFontChooser is an interface that can be implemented by widgetsdisplaying the list of fonts. InGTK+, the main objectsthat implement this interface areGtkFontChooserWidget,GtkFontChooserDialog andGtkFontButton. The GtkFontChooser interfacehas been introducted inGTK+ 3.2.

Orientable

TheGtkOrientable interface is implemented by all widgets that can beoriented horizontally or vertically. Historically, such widgets have beenrealized as subclasses of a common base class (e.gGtkBox/GtkHBox/GtkVBoxorGtkScale/GtkHScale/GtkVScale).GtkOrientable is more flexible in thatit allows the orientation to be changed at runtime, allowing the widgetsto “flip”.

PrintOperationPreview

RecentChooser

GtkRecentChooser is an interface that can be implemented by widgetsdisplaying the list of recently used files. InGTK+, the main objectsthat implement this interface areGtkRecentChooserWidget,GtkRecentChooserDialog andGtkRecentChooserMenu.

Scrollable

GtkScrollable is an interface that is implemented by widgets with nativescrolling ability.

StyleProvider

GtkStyleProvider is an interface used to provide style information to aGtkStyleContext.Seegtk_style_context_add_provider() and gtk_style_context_add_provider_for_screen().

ToolShell

TheGtkToolShell interface allows container widgets to provide additionalinformation when embeddingGtkToolItem widgets.

TreeDragDest

TreeDragSource

TreeModel

TheGtkTreeModel interface defines a generic tree interface foruse by theGtkTreeView widget. It is an abstract interface, andis designed to be usable with any appropriate data structure. Theprogrammer just has to implement this interface on their own datatype for it to be viewable by aGtkTreeView widget.

TreeSortable

GtkTreeSortable is an interface to be implemented by tree models whichsupport sorting. TheGtkTreeView uses the methods provided by this interfaceto sort the model.

Structs

_MountOperationHandler

Abstract interface type for the D-Bus interfaceorg.Gtk.MountOperationHandler.

_MountOperationHandlerIface

Virtual table for the D-Bus interfaceorg.Gtk.MountOperationHandler.

_MountOperationHandlerProxy

The #_GtkMountOperationHandlerProxy structure contains only private data and should only be accessed using the providedAPI.

_MountOperationHandlerProxyClass

Class structure for #_GtkMountOperationHandlerProxy.

_MountOperationHandlerSkeleton

The #_GtkMountOperationHandlerSkeleton structure contains only private data and should only be accessed using the providedAPI.

_MountOperationHandlerSkeletonClass

Class structure for #_GtkMountOperationHandlerSkeleton.

AccelGroupEntry

AccelKey

ActionEntry

GtkActionEntry structs are used withgtk_action_group_add_actions() toconstruct actions.

deprecated: 3.10 

BindingArg

AGtkBindingArg holds the data associated withan argument for a key binding signal emission asstored inGtkBindingSignal.

BindingEntry

Each key binding element of a binding sets binding list isrepresented by a GtkBindingEntry.

BindingSet

A binding set maintains a list of activatable key bindings.A single binding set can match multiple types of widgets.Similar to style contexts, can be matched by any information containedin a widgetsGtkWidgetPath. When a binding within a set is matched uponactivation, an action signal is emitted on the target widget to carry outthe actual activation.

BindingSignal

A GtkBindingSignal stores the necessary information toactivate a widget in response to a key press via a signal emission.

Border

A struct that specifies a border around a rectangular areathat can be of different width on each side.

CssSection

Defines a part of aCSS document. Because sections are nested intoone another, you can usegtk_css_section_get_parent() to get thecontaining region.

since: 3.2

FileFilterInfo

AGtkFileFilterInfo-struct is used to pass information about thetested file to gtk_file_filter_filter().

FixedChild

Gradient

GtkGradient is a boxed type that represents a gradient.It is the result of parsing a[gradient expression][gtkcssprovider-gradients].To obtain the gradient represented by a GtkGradient, it has tobe resolved with gtk_gradient_resolve(), which replaces allsymbolic color references by the colors they refer to (in a givencontext) and constructs a #cairo_pattern_t value.

IconSet

IconSource

IMContextInfo

Bookkeeping information about a loadable input method.

LabelSelectionInfo

PadActionEntry

Struct defining a pad action entry.

PageRange

See also gtk_print_settings_set_page_ranges().

PaperSize

GtkPaperSize handles paper sizes. It uses the standard calledPWG 5101.1-2002PWG: Standard for Media Standardized Namesto name the paper sizes (and to get the data for the page sizes).In addition to standard paper sizes, GtkPaperSize allows toconstruct custom paper sizes with arbitrary dimensions.

RadioActionEntry

GtkRadioActionEntry structs are used withgtk_action_group_add_radio_actions() to construct groups of radio actions.

deprecated: 3.10 

RcContext

RcProperty

Deprecated.

RecentData

Meta-data to be passed togtk_recent_manager_add_full() whenregistering a recently used resource.

RecentFilterInfo

A GtkRecentFilterInfo struct is usedto pass information about the tested file to gtk_recent_filter_filter().

RecentInfo

GtkRecentInfo-struct contains private data only, and shouldbe accessed using the providedAPI.

since: 2.10

RequestedSize

Represents a request of a screen object in a given orientation. Theseare primarily used in container implementations when allocating a naturalsize for children calling. See gtk_distribute_natural_allocation().

Requisition

AGtkRequisition-struct represents the desired size of a widget. See[GtkWidget’s geometry management section][geometry-management] formore information.

SelectionData

SettingsValue

StockItem

deprecated: 3.10 

SymbolicColor

GtkSymbolicColor is a boxed type that represents a symbolic color.It is the result of parsing a[color expression][gtkcssprovider-symbolic-colors].To obtain the color represented by a GtkSymbolicColor, it has tobe resolved with gtk_symbolic_color_resolve(), which replaces allsymbolic color references by the colors they refer to (in a givencontext) and evaluates mix, shade and other expressions, resultingin aGdkRGBA value.

TableChild

TableRowCol

TargetEntry

AGtkTargetEntry represents a single type ofdata than can be supplied for by a widget for a selectionor for supplied or received during drag-and-drop.

TargetList

AGtkTargetList-struct is a reference counted listofGtkTargetPair and should be treated as opaque.

TargetPair

AGtkTargetPair is used to represent the sameinformation as a table ofGtkTargetEntry, but inan efficient form.

TextAppearance

TextAttributes

UsingGtkTextAttributes directly should rarely be necessary.It’s primarily useful with gtk_text_iter_get_attributes().As with mostGTK+ structs, the fields in this struct should onlybe read, never modified directly.

TextBTree

TextIter

You may wish to begin by reading thetext widget conceptual overviewwhich gives an overview of all the objects and datatypes related to the text widget and how they work together.

ThemeEngine

ToggleActionEntry

GtkToggleActionEntry structs are used withgtk_action_group_add_toggle_actions() to construct toggle actions.

deprecated: 3.10 

TreeIter

TheGtkTreeIter is the primary structurefor accessing aGtkTreeModel. Models are expected to put a uniqueinteger in thestamp member, and putmodel-specific data in the threeuser_datamembers.

TreePath

TreeRowReference

A GtkTreeRowReference tracks model changes so that it always refers to thesame row (aGtkTreePath refers to a position, not a fixed row). Create anew GtkTreeRowReference with gtk_tree_row_reference_new().

WidgetPath

GtkWidgetPath is a boxed type that represents a widget hierarchy fromthe topmost widget, typically a toplevel, to any child. This widgetpath abstraction is used inGtkStyleContext on behalf of the realwidget in order to query style information.

WindowGeometryInfo

Aliases

Allocation

AGtkAllocation-struct of a widget represents regionwhich has been allocated to the widget by its parent. It is a subregionof its parents allocation. See[GtkWidget’s geometry management section][geometry-management] formore information.

Stock

Enumerations

Align

Controls how a widget deals with extra space in a single (x or y) dimension.

ArrowPlacement

Used to specify the placement of scroll arrows in scrolling menus.

ArrowType

Used to indicate the direction in which an arrow should point.

AssistantPageType

An enum for determining the page role inside theGtkAssistant. It’sused to handle buttons sensitivity and visibility.

BaselinePosition

Whenever a container has some form of natural row it may alignchildren in that row along a common typographical baseline. Ifthe amount of verical space in the row is taller than the totalrequested height of the baseline-aligned children then it can use aGtkBaselinePosition to select where to put the baseline inside theextra availible space.

since: 3.10

BorderStyle

Describes how the border of aUI element should be rendered.

ButtonBoxStyle

Used to dictate the style that aGtkButtonBox uses to layout the buttons it contains.

ButtonRole

The role specifies the desired appearance of aGtkModelButton.

ButtonsType

Prebuilt sets of buttons for the dialog. Ifnone of these choices are appropriate, simply useGTK_BUTTONS_NONEthen call gtk_dialog_add_buttons().

CellRendererAccelMode

Determines if the edited accelerators areGTK+ accelerators. Ifthey are, consumed modifiers are suppressed, only acceleratorsaccepted byGTK+ are allowed, and the accelerators are renderedin the same way as they are in menus.

CellRendererMode

Identifies how the user can interact with a particular cell.

CornerType

Specifies which corner a child widget should be placed in when packed intoaGtkScrolledWindow. This is effectively the opposite of where the scrollbars are placed.

CssSectionType

The different types of sections indicate parts of aCSS document asparsed byGTK’sCSS parser. They are oriented towards theCSS Grammar,but may contain extensions.

since: 3.2

DeleteType

See also:GtkEntry::delete-from-cursor.

DirectionType

Focus movement types.

DragResult

Gives an indication why a drag operation failed.The value can by obtained by connecting to theGtkWidget::drag-failed signal.

EntryIconPosition

Specifies the side of the entry at which an icon is placed.

since: 2.16

EventSequenceState

Describes the state of aGdkEventSequence in aGtkGesture.

since: 3.14

ExpanderStyle

Used to specify the style of the expanders drawn by aGtkTreeView.

FileChooserAction

Describes whether aGtkFileChooser is being used to open existing filesor to save to a possibly new file.

FileChooserConfirmation

Used as a return value of handlers for theGtkFileChooser::confirm-overwrite signal of aGtkFileChooser. Thisvalue determines whether the file chooser will present the stockconfirmation dialog, accept the user’s choice of a filename, orlet the user choose another filename.

since: 2.8

IconSize

Built-in stock icon sizes.

IconViewDropPosition

An enum for determining where a dropped item goes.

ImageType

Describes the image data representation used by aGtkImage. If youwant to get the image from the widget, you can only get thecurrently-stored representation. e.g. if thegtk_image_get_storage_type() returns #GTK_IMAGE_PIXBUF, then you cancallgtk_image_get_pixbuf() but not gtk_image_get_stock(). For emptyimages, you can request any storage type (call any of the “get”functions), but they will all returnNULL values.

IMPreeditStyle

Style for input method preedit. See alsoGtkSettings:gtk-im-preedit-style.

deprecated: 3.10 

IMStatusStyle

Style for input method status. See alsoGtkSettings:gtk-im-status-style.

deprecated: 3.10 

InputPurpose

Describes primary purpose of the input widget. This information isuseful for on-screen keyboards and similar input methods to decidewhich keys should be presented to the user.

since: 3.6

Justification

Used for justifying the text inside aGtkLabel widget. (See alsoGtkAlignment).

LevelBarMode

Describes howGtkLevelBar contents should be rendered.Note that this enumeration could be extended with additional modesin the future.

since: 3.6

License

The type of license for an application.

since: 3.0

MenuDirectionType

An enumeration representing directional movements within a menu.

MessageType

The type of message being displayed in the dialog.

MovementStep

NotebookTab

NumberUpLayout

Used to determine the layout of pages on a sheet when printingmultiple pages per sheet.

Orientation

Represents the orientation of widgets and other objects which can be switchedbetween horizontal and vertical orientation on the fly, likeGtkToolbar orGtkGesturePan.

PackDirection

Determines how widgets should be packed inside menubarsand menuitems contained in menubars.

PackType

Represents the packing locationGtkBox children. (See:GtkVBox,GtkHBox, andGtkButtonBox).

PadActionType

The type of a pad action.

PageOrientation

See also gtk_print_settings_set_orientation().

PageSet

See also gtk_print_job_set_page_set().

PanDirection

Describes the panning direction of aGtkGesturePan.

since: 3.14

PathPriorityType

Priorities for path lookups.See also gtk_binding_set_add_path().

deprecated: 3.0 

PathType

Widget path types.See also gtk_binding_set_add_path().

deprecated: 3.0 

PolicyType

Determines how the size should be computed to achieve the one of thevisibility mode for the scrollbars.

PopoverConstraint

Describes constraints to positioning of popovers. More valuesmay be added to this enumeration in the future.

since: 3.20

PositionType

Describes which edge of a widget a certain feature is positioned at, e.g. thetabs of aGtkNotebook, the handle of aGtkHandleBox or the label of aGtkScale.

PrintDuplex

See also gtk_print_settings_set_duplex().

PrintOperationAction

Theaction parameter togtk_print_operation_run()determines what action the print operation should perform.

PrintOperationResult

A value of this type is returned by gtk_print_operation_run().

PrintPages

See also gtk_print_job_set_pages().

PrintQuality

See also gtk_print_settings_set_quality().

PrintStatus

The status gives a rough indication of the completion of a runningprint operation.

PropagationPhase

Describes the stage at which events are fed into aGtkEventController.

since: 3.14

RcTokenType

TheGtkRcTokenType enumeration represents the tokensin theRC file. It is exposed so that theme enginescan reuse these tokens when parsing the theme-enginespecific portions of aRC file.

deprecated: 3.0 

RecentSortType

Used to specify the sorting method to be applyed to the recentlyused resource list.

since: 2.10

ReliefStyle

Indicated the relief to be drawn around aGtkButton.

ResizeMode

ResponseType

Predefined values for use as response ids in gtk_dialog_add_button().All predefined values are negative;GTK+ leaves values of 0 or greater forapplication-defined response ids.

RevealerTransitionType

These enumeration values describe the possible transitionswhen the child of aGtkRevealer widget is shown or hidden.

ScrollablePolicy

Defines the policy to be used in a scrollable widget when updatingthe scrolled window adjustments in a given orientation.

ScrollStep

ScrollType

Scrolling types.

SelectionMode

Used to control what selections users are allowed to make.

SensitivityType

Determines howGTK+ handles the sensitivity of stepper arrowsat the end of range widgets.

ShadowType

Used to change the appearance of an outline typically provided by aGtkFrame.

ShortcutType

GtkShortcutType specifies the kind of shortcut that is being described.More values may be added to this enumeration over time.

since: 3.20

SizeGroupMode

The mode of the size group determines the directions in which the sizegroup affects the requested sizes of its component widgets.

SizeRequestMode

Specifies a preference for height-for-width orwidth-for-height geometry management.

SortType

Determines the direction of a sort.

SpinButtonUpdatePolicy

The spin button update policy determines whether the spin button displaysvalues even if they are outside the bounds of its adjustment.See gtk_spin_button_set_update_policy().

SpinType

The values of the GtkSpinType enumeration are used to specify thechange to make in gtk_spin_button_spin().

StackTransitionType

These enumeration values describe the possible transitionsbetween pages in aGtkStack widget.

StateType

This type indicates the current state of a widget; the state determines howthe widget is drawn. TheGtkStateType enumeration is also used toidentify different colors in aGtkStyle for drawing, so states can beused for subparts of a widget as well as entire widgets.

deprecated: 3.14 

TextBufferTargetInfo

These values are used as “info” for the targets contained in thelists returned bygtk_text_buffer_get_copy_target_list() and gtk_text_buffer_get_paste_target_list().

TextDirection

Reading directions for text.

TextExtendSelection

Granularity types that extend the text selection. Use theGtkTextView::extend-selection signal to customize the selection.

since: 3.16

TextViewLayer

Used to reference the layers ofGtkTextView for the purpose of customizeddrawing with the ::draw_layer vfunc.

TextWindowType

Used to reference the parts ofGtkTextView.

ToolbarSpaceStyle

Whether spacers are vertical lines or just blank.

deprecated: 3.20 

ToolbarStyle

Used to customize the appearance of aGtkToolbar. Note thatsetting the toolbar style overrides the user’s preferencesfor the default toolbar style. Note that if the button has onlya label set and GTK_TOOLBAR_ICONS is used, the label will bevisible, and vice versa.

TreeViewColumnSizing

The sizing method the column uses to determine its width. Please notethatGTK_TREE_VIEW_COLUMN_AUTOSIZE are inefficient for large views, andcan make columns appear choppy.

TreeViewDropPosition

An enum for determining where a dropped row goes.

TreeViewGridLines

Used to indicate which grid lines to draw in a tree view.

Unit

See also gtk_print_settings_set_paper_width().

WidgetHelpType

Kinds of widget-specific help. Used by the ::show-help signal.

WindowPosition

Window placement can be influenced using this enumeration. Note thatusing #GTK_WIN_POS_CENTER_ALWAYS is almost always a bad idea.It won’t necessarily work well with all window managers or on all windowing systems.

WindowType

AGtkWindow can be one of these types. Most things you’d consider a“window” should have type #GTK_WINDOW_TOPLEVEL; windows with this typeare managed by the window manager and have a frame by default (callgtk_window_set_decorated() to toggle the frame). Windows with type

GTK_WINDOW_POPUP are ignored by the window manager; window manager

keybindings won’t work on them, the window manager won’t decorate thewindow with a frame, manyGTK+ features that rely on the windowmanager will not work (e.g. resize grips andmaximization/minimization). #GTK_WINDOW_POPUP is used to implementwidgets such asGtkMenu or tooltips that you normally don’t think ofas windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL.In particular, do not use #GTK_WINDOW_POPUP just to turn offthe window borders; usegtk_window_set_decorated() for that.

WrapMode

Describes a type of line wrapping.

Bitfields

AccelFlags

Accelerator flags used with gtk_accel_group_connect().

ApplicationInhibitFlags

Types of user actions that may be blocked by gtk_application_inhibit().

since: 3.4

AttachOptions

Denotes the expansion properties that a widget will have when it (or itsparent) is resized.

CalendarDisplayOptions

These options can be used to influence the display and behaviour of aGtkCalendar.

CellRendererState

Tells how a cell is to be rendered.

DebugFlag

DestDefaults

TheGtkDestDefaults enumeration specifies the varioustypes of action that will be taken on behalfof the user for a drag destination site.

DialogFlags

Flags used to influence dialog construction.

EventControllerScrollFlags

Describes the behavior of aGtkEventControllerScroll.

since: 3.24

FileFilterFlags

These flags indicate what parts of aGtkFileFilterInfo structare filled or need to be filled.

FontChooserLevel

This enumeration specifies the granularity of font selectionthat is desired in a font chooser.

IconLookupFlags

Used to specify options for gtk_icon_theme_lookup_icon().

InputHints

Describes hints that might be taken into account by input methodsor applications. Note that input methods may already tailor theirbehaviour according to theGtkInputPurpose of the entry.

since: 3.6

JunctionSides

Describes how a rendered element connects to adjacent elements.

PlacesOpenFlags

These flags serve two purposes. First, the application can callgtk_places_sidebar_set_open_flags()using these flags as a bitmask. This tells the sidebar that the application is able to openfolders selected from the sidebar in various ways, for example, in new tabs or in new windows inaddition to the normal mode.

RcFlags

Deprecated.

RecentFilterFlags

These flags indicate what parts of aGtkRecentFilterInfo structare filled or need to be filled.

RegionFlags

Describes a region within a widget.

StateFlags

Describes a widget state. Widget states are used to match the widgetagainstCSS pseudo-classes. Note thatGTK extends the regularCSSclasses and sometimes uses different names.

StyleContextPrintFlags

Flags that modify the behavior of gtk_style_context_to_string().New values may be added to this enumeration.

TargetFlags

TheGtkTargetFlags enumeration is used to specifyconstraints on aGtkTargetEntry.

TextSearchFlags

Flags affecting how a search is done.

ToolPaletteDragTargets

Flags used to specify the supported drag targets.

TreeModelFlags

These flags indicate various properties of aGtkTreeModel.

UIManagerItemType

These enumeration values are used bygtk_ui_manager_add_ui() to determinewhatUI element to create.

deprecated: 3.10 

Error Domains

BuilderError

Error codes that identify various errors that can occur while usingGtkBuilder.

CssProviderError

Error codes forGTK_CSS_PROVIDER_ERROR.

FileChooserError

These identify the various errors that can occur while callingGtkFileChooser functions.

IconThemeError

Error codes for GtkIconTheme operations.

PrintError

Error codes that identify various errors that can occur whileusing theGTK+ printing support.

RecentChooserError

These identify the various errors that can occur while callingGtkRecentChooser functions.

since: 2.10

RecentManagerError

Error codes forGtkRecentManager operations.

since: 2.10

Callbacks

AccelGroupActivate

AccelGroupFindFunc

since: 2.2

AccelMapForeach

AssistantPageFunc

A function used bygtk_assistant_set_forward_page_func() to know whichis the next page given a current one. It’s called both for computing thenext page when the user presses the “forward” button and for handlingthe behavior of the “last” button.

BuilderConnectFunc

This is the signature of a function used to connect signals. It is usedby thegtk_builder_connect_signals() andgtk_builder_connect_signals_full()methods. It is mainly intended for interpreted language bindings, butcould be useful where the programmer wants more control over the signalconnection process. Note that this function can only be called once,subsequent calls will do nothing.

since: 2.12

CalendarDetailFunc

This kind of functions provide Pango markup with detail information for thespecified day. Examples for such details are holidays or appointments. Thefunction returnsNULL when no information is available.

since: 2.14

Callback

The type of the callback functions used for e.g. iterating overthe children of a container, see gtk_container_foreach().

CellAllocCallback

The type of the callback functions used for iterating over thecell renderers and their allocated areas inside aGtkCellArea,see gtk_cell_area_foreach_alloc().

CellCallback

The type of the callback functions used for iterating overthe cell renderers of aGtkCellArea, see gtk_cell_area_foreach().

CellLayoutDataFunc

A function which should set the value ofcell_layout’s cell renderer(s)as appropriate.

ClipboardClearFunc

A function that will be called when the contents of the clipboard are changedor cleared. Once this has called, theuser_data_or_owner argumentwill not be used again.

ClipboardGetFunc

A function that will be called to provide the contents of the selection.If multiple types of data were advertised, the requested type canbe determined from theinfo parameter or by checking the target fieldofselection_data. If the data could successfully be converted intothen it should be stored into theselection_data object bycallinggtk_selection_data_set() (or related functions suchas gtk_selection_data_set_text()). If no data is set, the requestorwill be informed that the attempt to get the data failed.

ClipboardImageReceivedFunc

A function to be called when the results ofgtk_clipboard_request_image()are received, or when the request fails.

since: 2.6

ClipboardReceivedFunc

A function to be called when the results ofgtk_clipboard_request_contents()are received, or when the request fails.

ClipboardRichTextReceivedFunc

A function to be called when the results ofgtk_clipboard_request_rich_text() are received, or when the request fails.

since: 2.10

ClipboardTargetsReceivedFunc

A function to be called when the results ofgtk_clipboard_request_targets()are received, or when the request fails.

since: 2.4

ClipboardTextReceivedFunc

A function to be called when the results ofgtk_clipboard_request_text()are received, or when the request fails.

ClipboardURIReceivedFunc

A function to be called when the results ofgtk_clipboard_request_uris() are received, or when the request fails.

since: 2.14

ColorSelectionChangePaletteFunc

deprecated: 3.4 

ColorSelectionChangePaletteWithScreenFunc

deprecated: 3.4 since: 2.2

EntryCompletionMatchFunc

A function which decides whether the row indicated byiter matchesa givenkey, and should be displayed as a possible completion forkey.Note thatkey is normalized and case-folded (seeg_utf8_normalize()and g_utf8_casefold()). If this is not appropriate, match functionshave access to the unmodified key viagtk_entry_get_text (GTK_ENTRY (gtk_entry_completion_get_entry ())).

FileFilterFunc

The type of function that is used with custom filters, see gtk_file_filter_add_custom().

FlowBoxCreateWidgetFunc

Called for flow boxes that are bound to aGListModel withgtk_flow_box_bind_model() for each item that gets added to the model.

since: 3.18

FlowBoxFilterFunc

A function that will be called whenrever a child changesor is added. It lets you control if the child should bevisible or not.

since: 3.12

FlowBoxForeachFunc

A function used by gtk_flow_box_selected_foreach().It will be called on every selected child of thebox.

since: 3.12

FlowBoxSortFunc

A function to compare two children to determine whichshould come first.

since: 3.12

FontFilterFunc

The type of function that is used for deciding what fonts getshown in aGtkFontChooser. See gtk_font_chooser_set_filter_func().

IconViewForeachFunc

A function used bygtk_icon_view_selected_foreach() to map allselected rows. It will be called on every selected row in the view.

KeySnoopFunc

Key snooper functions are called before normal event delivery.They can be used to implement custom key event handling.

ListBoxCreateWidgetFunc

Called for list boxes that are bound to aGListModel withgtk_list_box_bind_model() for each item that gets added to the model.

since: 3.16

ListBoxFilterFunc

Will be called whenever the row changes or is added and lets you controlif the row should be visible or not.

since: 3.10

ListBoxForeachFunc

A function used by gtk_list_box_selected_foreach().It will be called on every selected child of thebox.

since: 3.14

ListBoxSortFunc

Compare two rows to determine which should be first.

since: 3.10

ListBoxUpdateHeaderFunc

Wheneverrow changes or which row is beforerow changes thisis called, which lets you update the header onrow. You mayremove or set a new one viagtk_list_box_row_set_header() orjust change the state of the current header widget.

since: 3.10

MenuDetachFunc

A user function supplied when callinggtk_menu_attach_to_widget() whichwill be called when the menu is later detached from the widget.

MenuPositionFunc

A user function supplied when callinggtk_menu_popup() whichcontrols the positioning of the menu when it is displayed. Thefunction sets thex andy parameters to the coordinates where themenu is to be drawn. To make the menu appear on a differentmonitor than the mouse pointer,gtk_menu_set_monitor() must be called.

ModuleDisplayInitFunc

A multihead-awareGTK+ module may have agtk_module_display_init() functionwith this prototype.GTK+ calls this function for each opened display.

since: 2.2

ModuleInitFunc

EachGTK+ module must have a functiongtk_module_init() with this prototype.This function is called after loading the module.

PageSetupDoneFunc

The type of function that is passed to gtk_print_run_page_setup_dialog_async().

PrintSettingsFunc

RcPropertyParser

RecentFilterFunc

The type of function that is used with custom filters,see gtk_recent_filter_add_custom().

RecentSortFunc

StylePropertyParser

TextBufferDeserializeFunc

A function that is called to deserialize rich text that has beenserialized with gtk_text_buffer_serialize(), and insert it atiter.

TextBufferSerializeFunc

A function that is called to serialize the content of a text buffer.It must return the serialized form of the content.

TextCharPredicate

TextTagTableForeach

TickCallback

Callback type for adding a function to update animations. See gtk_widget_add_tick_callback().

since: 3.8

TranslateFunc

The function used to translate messages in e.g.GtkIconFactoryandGtkActionGroup.

deprecated: 3.10 

TreeCellDataFunc

A function to set the properties of a cell instead of just using thestraight mapping between the cell and the model. This is useful forcustomizing the cell renderer. For example, a function might get aninteger from thetree_model, and render it to the “text” attribute of“cell” by converting it to its written equivalent. This is set bycalling gtk_tree_view_column_set_cell_data_func().

TreeDestroyCountFunc

TreeIterCompareFunc

A GtkTreeIterCompareFunc should return a negative integer, zero, or a positiveinteger ifa sorts beforeb,a sorts withb, ora sorts afterbrespectively. If two iters compare as equal, their order in the sorted modelis undefined. In order to ensure that theGtkTreeSortable behaves asexpected, the GtkTreeIterCompareFunc must define a partial order onthe model, i.e. it must be reflexive, antisymmetric and transitive.

TreeModelFilterModifyFunc

A function which calculates display values from raw values in the model.It must fillvalue with the display value for the columncolumn in therow indicated byiter.

TreeModelFilterVisibleFunc

A function which decides whether the row indicated byiter is visible.

TreeModelForeachFunc

Type of the callback passed togtk_tree_model_foreach() toiterate over the rows in a tree model.

TreeSelectionForeachFunc

A function used bygtk_tree_selection_selected_foreach() to map allselected rows. It will be called on every selected row in the view.

TreeSelectionFunc

A function used bygtk_tree_selection_set_select_function() to filterwhether or not a row may be selected. It is called whenever a row’sstate might change. A return value ofTRUE indicates toselectionthat it is okay to change the selection.

TreeViewColumnDropFunc

Function type for determining whethercolumn can be dropped in aparticular spot (as determined byprev_column andnext_column). Inleft to right locales,prev_column is on the left of the potential dropspot, andnext_column is on the right. In right to left mode, this isreversed. This function should returnTRUE if the spot is a valid dropspot. Please note that returningTRUE does not actually indicate thatthe column drop was made, but is meant only to indicate a possible dropspot to the user.

TreeViewMappingFunc

Function used for gtk_tree_view_map_expanded_rows().

TreeViewRowSeparatorFunc

Function type for determining whether the row pointed to byiter shouldbe rendered as a separator. A common way to implement this is to have aboolean column in the model, whose values theGtkTreeViewRowSeparatorFuncreturns.

TreeViewSearchEqualFunc

A function used for checking whether a row inmodel matchesa search key string entered by the user. Note the return valueis reversed from what you would normally expect, though ithas some similarity tostrcmp() returning 0 for equal strings.

TreeViewSearchPositionFunc

Functions

accel_groups_activate

Finds the first accelerator in anyGtkAccelGroup attachedtoobject that matchesaccel_key andaccel_mods, andactivates that accelerator.

accel_groups_from_object

Gets a list of all accel groups which are attached toobject.

accelerator_get_default_mod_mask

Gets the modifier mask.

accelerator_get_label

Converts an accelerator keyval and modifier mask into a stringwhich can be used to represent the accelerator to the user.

since: 2.6

accelerator_get_label_with_keycode

Converts an accelerator keyval and modifier maskinto a (possibly translated) string that can be displayed toa user, similarly to gtk_accelerator_get_label(), but handling keycodes.

since: 3.4

accelerator_name

Converts an accelerator keyval and modifier mask into a stringparseable by gtk_accelerator_parse(). For example, if you pass in

GDK_KEY_q and #GDK_CONTROL_MASK, this function returns “q”.

accelerator_name_with_keycode

Converts an accelerator keyval and modifier maskinto a string parseable by gtk_accelerator_parse_with_keycode(),similarly togtk_accelerator_name() but handling keycodes.This is only useful for system-level components, applicationsshould usegtk_accelerator_parse() instead.

since: 3.4

accelerator_parse

Parses a string representing an accelerator. The format looks like<Control>a or<Shift><Alt>F1 or<Release>z (the last one isfor key release).

accelerator_parse_with_keycode

Parses a string representing an accelerator, similarly togtk_accelerator_parse() but handles keycodes as well. This is onlyuseful for system-level components, applications should usegtk_accelerator_parse() instead.

since: 3.4

accelerator_set_default_mod_mask

Sets the modifiers that will be considered significant for keyboardaccelerators. The default mod mask depends on theGDK backend in use,but will typically include #GDK_CONTROL_MASK | #GDK_SHIFT_MASK |

GDK_MOD1_MASK | #GDK_SUPER_MASK | #GDK_HYPER_MASK | #GDK_META_MASK.

In other words, Control, Shift, Alt, Super, Hyper and Meta. Othermodifiers will by default be ignored byGtkAccelGroup.

accelerator_valid

Determines whether a given keyval and modifier mask constitutea valid keyboard accelerator. For example, the #GDK_KEY_a keyvalplus #GDK_CONTROL_MASK is valid - this is a “Ctrl+a” accelerator.But, you can’t, for instance, use the #GDK_KEY_Control_L keyvalas an accelerator.

alternative_dialog_button_order

ReturnsTRUE if dialogs are expected to use an alternativebutton order on the screenscreen. Seegtk_dialog_set_alternative_button_order() for more detailsabout alternative button order.

deprecated: 3.10 since: 2.6

bindings_activate

Find a key binding matchingkeyval andmodifiers and activate thebinding onobject.

bindings_activate_event

Looks up key bindings forobject to find one matchingevent, and if one was found, activate it.

since: 2.4

cairo_should_draw_window

This function is supposed to be called inGtkWidget::drawimplementations for widgets that support multiple windows.cr must be untransformed from invoking of the draw function.This function will returnTRUE if the contents of the givenwindow are supposed to be drawn andFALSE otherwise. Notethat when the drawing was not initiated by the windowingsystem this function will returnTRUE for all windows, soyou need to draw the bottommost window first. Also, do notuse “else if” statements to check which window should be drawn.

since: 3.0

cairo_transform_to_window

Transforms the given cairo contextcr that fromwidget-relativecoordinates towindow-relative coordinates.If thewidget’s window is not an ancestor ofwindow, nomodification will be applied.

since: 3.0

check_version

Checks that theGTK+ library in use is compatible with thegiven version. Generally you would pass in the constants

GTK_MAJOR_VERSION, #GTK_MINOR_VERSION, #GTK_MICRO_VERSION

as the three arguments to this function; that producesa check that the library in use is compatible withthe version ofGTK+ the application or module was compiled against.

device_grab_add

Adds aGTK+ grab ondevice, so all the events ondevice and itsassociated pointer or keyboard (if any) are delivered towidget.If theblock_others parameter isTRUE, any other devices will beunable to interact withwidget during the grab.

since: 3.0

device_grab_remove

Removes a device grab from the given widget.

since: 3.0

disable_setlocale

Prevents gtk_init(), gtk_init_check(),gtk_init_with_args() andgtk_parse_args() from automaticallycallingsetlocale (LC_ALL, ""). You wouldwant to use this function if you wanted to set the locale foryour program to something other than the user’s locale, or ifyou wanted to set different values for different locale categories.

distribute_natural_allocation

Distributesextra_space to childsizes by bringing smallerchildren up to natural size first.

drag_cancel

Cancels an ongoing drag operation on the source side.

since: 3.16

drag_finish

Informs the drag source that the drop is finished, andthat the data of the drag will no longer be required.

drag_get_source_widget

Determines the source widget for a drag.

drag_set_icon_default

Sets the icon for a particular drag to the default icon.

drag_set_icon_gicon

Sets the icon for a given drag from the givenicon.See the documentation forgtk_drag_set_icon_name()for more details about using icons in drag and drop.

since: 3.2

drag_set_icon_name

Sets the icon for a given drag from a named themed icon. Seethe docs forGtkIconTheme for more details. Note that thesize of the icon depends on the icon theme (the icon isloaded at the symbolic size #GTK_ICON_SIZE_DND), thushot_x andhot_y have to be used with care.

since: 2.8

drag_set_icon_pixbuf

Setspixbuf as the icon for a given drag.

drag_set_icon_stock

Sets the icon for a given drag from a stockID.

deprecated: 3.10 

drag_set_icon_surface

Setssurface as the icon for a given drag.GTK+ retainsreferences for the arguments, and will release them whenthey are no longer needed.

drag_set_icon_widget

Changes the icon for drag operation to a given widget.GTK+ will not destroy the widget, so if you don’t wantit to persist, you should connect to the “drag-end”signal and destroy it yourself.

draw_insertion_cursor

Draws a text caret oncr atlocation. This is not a style functionbut merely a convenience function for drawing the standard cursor shape.

deprecated: 3.4 since: 3.0

events_pending

Checks if any events are pending.

false

Analogical to gtk_true(), this function does nothingbut always returnsFALSE.

get_binary_age

Returns the binary age as passed tolibtoolwhen building theGTK+ library the process is running against.Iflibtool means nothing to you, don’tworry about it.

since: 3.0

get_current_event

Obtains a copy of the event currently being processed byGTK+.

get_current_event_device

If there is a current event and it has a device, return thatdevice, otherwise returnNULL.

get_current_event_state

If there is a current event and it has a state field, placethat state field instate and returnTRUE, otherwise returnFALSE.

get_current_event_time

If there is a current event and it has a timestamp,return that timestamp, otherwise returnGDK_CURRENT_TIME.

get_debug_flags

Returns theGTK+ debug flags.

get_default_language

Returns thePangoLanguage for the default language currently ineffect. (Note that this can change over the life of anapplication.) The default language is derived from the currentlocale. It determines, for example, whetherGTK+ uses theright-to-left or left-to-right text direction.

get_event_widget

Ifevent isNULL or the event was not associated with any widget,returnsNULL, otherwise returns the widget that received the event originally.

get_interface_age

Returns the interface age as passed tolibtoolwhen building theGTK+ library the process is running against.Iflibtool means nothing to you, don’tworry about it.

since: 3.0

get_locale_direction

Get the direction of the current locale. This is the expectedreading direction for text andUI.

since: 3.12

get_major_version

Returns the major version number of theGTK+ library.(e.g. inGTK+ version 3.1.5 this is 3.).

since: 3.0

get_micro_version

Returns the micro version number of theGTK+ library.(e.g. inGTK+ version 3.1.5 this is 5.).

since: 3.0

get_minor_version

Returns the minor version number of theGTK+ library.(e.g. inGTK+ version 3.1.5 this is 1.).

since: 3.0

get_option_group

Returns aGOptionGroup for the commandline arguments recognizedbyGTK+ andGDK.

since: 2.6

grab_get_current

Queries the current grab of the default window group.

init

Call this function before using any otherGTK+ functions in yourGUIapplications. It will initialize everything needed to operate thetoolkit and parses some standard command line options.

init_check

This function does the same work asgtk_init() with only a singlechange: It does not terminate the program if the commandlinearguments couldn’t be parsed or the windowing system can’t beinitialized. Instead it returnsFALSE on failure.

init_with_args

This function does the same work as gtk_init_check().Additionally, it allows you to add your own commandline options,and it automatically generates nicely formatted--help output. Note that your program willbe terminated after writing out the help output.

since: 2.6

key_snooper_install

Installs a key snooper function, which will get called on allkey events before delivering them normally.

deprecated: 3.4 

key_snooper_remove

Removes the key snooper function with the given id.

deprecated: 3.4 

main

Runs the main loop untilgtk_main_quit() is called.

main_do_event

Processes a singleGDK event.

main_iteration

Runs a single iteration of the mainloop.

main_iteration_do

Runs a single iteration of the mainloop.If no events are available either return or block depending onthe value ofblocking.

main_level

Asks for the current nesting level of the main loop.

main_quit

Makes the innermost invocation of the main loop returnwhen it regains control.

paint_arrow

Draws an arrow in the given rectangle oncr using the givenparameters.arrow_type determines the direction of the arrow.

deprecated: 3.0 

paint_box

Draws a box oncr with the given parameters.

deprecated: 3.0 

paint_box_gap

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

deprecated: 3.0 

paint_check

Draws a check button indicator in the given rectangle oncr withthe given parameters.

deprecated: 3.0 

paint_diamond

Draws a diamond in the given rectangle onwindow using the given parameters.

deprecated: 3.0 

paint_expander

Draws an expander as used inGtkTreeView.x andy specify thecenter the expander. The size of the expander is determined by the“expander-size” style property ofwidget. (If widget is notspecified or doesn’t have an “expander-size” property, anunspecified default size will be used, since the caller doesn’thave sufficient information to position the expander, this islikely not useful.) The expander is expander_size pixels tallin the collapsed position and expander_size pixels wide in theexpanded position.

deprecated: 3.0 

paint_extension

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

deprecated: 3.0 

paint_flat_box

Draws a flat box oncr with the given parameters.

deprecated: 3.0 

paint_focus

Draws a focus indicator around the given rectangle oncr using thegiven style.

deprecated: 3.0 

paint_handle

Draws a handle as used inGtkHandleBox andGtkPaned.

deprecated: 3.0 

paint_hline

Draws a horizontal line from (x1,y) to (x2,y) incrusing the given style and state.

deprecated: 3.0 

paint_layout

Draws a layout oncr using the given parameters.

deprecated: 3.0 

paint_option

Draws a radio button indicator in the given rectangle oncr withthe given parameters.

deprecated: 3.0 

paint_resize_grip

Draws a resize grip in the given rectangle oncr using the given parameters.

deprecated: 3.0 

paint_shadow

Draws a shadow around the given rectangle incrusing the given style and state and shadow type.

deprecated: 3.0 

paint_shadow_gap

Draws a shadow around the given rectangle incrusing the given style and state and shadow type, leaving agap in one side.

deprecated: 3.0 

paint_slider

Draws a slider in the given rectangle oncr using thegiven style and orientation.

deprecated: 3.0 

paint_spinner

Draws a spinner onwindow using the given parameters.

deprecated: 3.0 

paint_tab

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

deprecated: 3.0 

paint_vline

Draws a vertical line from (x,y1_) to (x,y2_) incrusing the given style and state.

deprecated: 3.0 

parse_args

Parses command line arguments, and initializes globalattributes ofGTK+, but does not actually open a connectionto a display. (See gdk_display_open(), gdk_get_display_arg_name()).

print_run_page_setup_dialog

Runs a page setup dialog, letting the user modify the values frompage_setup. If the user cancels the dialog, the returnedGtkPageSetupis identical to the passed inpage_setup, otherwise it contains themodifications done in the dialog.

since: 2.10

print_run_page_setup_dialog_async

Runs a page setup dialog, letting the user modify the values frompage_setup.

since: 2.10

propagate_event

Sends an event to a widget, propagating the event to parent widgetsif the event remains unhandled.

rc_add_default_file

Adds a file to the list of files to be parsed at theend of gtk_init().

deprecated: 3.0 

rc_find_module_in_path

Searches for a theme engine in theGTK+ search path. This functionis not useful for applications and should not be used.

deprecated: 3.0 

rc_find_pixmap_in_path

Looks up a file in pixmap path for the specifiedGtkSettings.If the file is not found, it outputs a warning message usingg_warning() and returnsNULL.

deprecated: 3.0 

rc_get_default_files

Retrieves the current list ofRC files that will be parsedat the end of gtk_init().

deprecated: 3.0 

rc_get_im_module_file

Obtains the path to theIM modules file. See the documentationof theGTK_IM_MODULE_FILEenvironment variable for more details.

deprecated: 3.0 

rc_get_im_module_path

Obtains the path in which to look forIM modules. See the documentationof theGTK_PATHenvironment variable for more details about looking up modules. Thisfunction is useful solely for utilities supplied withGTK+ and shouldnot be used by applications under normal circumstances.

deprecated: 3.0 

rc_get_module_dir

Returns a directory in whichGTK+ looks for theme engines.For full information about the search for theme engines,see the docs forGTK_PATH in [RunningGTK+ Applications][gtk-running].

deprecated: 3.0 

rc_get_style

Finds all matchingRC styles for a given widget,composites them together, and then creates aGtkStyle representing the composite appearance.(GTK+ actually keeps a cache of previouslycreated styles, so a new style may not be created.).

deprecated: 3.0 

rc_get_style_by_paths

Creates up aGtkStyle from styles defined in aRC file by providingthe raw components used in matching. This function may be usefulwhen creating pseudo-widgets that should be themed like widgets butdon’t actually have correspondingGTK+ widgets. An example of thiswould be items inside aGNOME canvas widget.

deprecated: 3.0 

rc_get_theme_dir

Returns the standard directory in which themes shouldbe installed. (GTK+ does not actually use this directory itself.).

deprecated: 3.0 

rc_parse

Parses a given resource file.

deprecated: 3.0 

rc_parse_color

Parses a color in the format expectedin aRC file.

deprecated: 3.0 

rc_parse_color_full

Parses a color in the format expectedin aRC file. Ifstyle is notNULL, it will be consulted to resolvereferences to symbolic colors.

deprecated: 3.0 since: 2.12

rc_parse_priority

Parses aGtkPathPriorityType variable from the format expectedin aRC file.

deprecated: 3.0 

rc_parse_state

Parses aGtkStateType variable from the format expectedin aRC file.

deprecated: 3.0 

rc_parse_string

Parses resource information directly from a string.

deprecated: 3.0 

rc_reparse_all

If the modification time on any previously read file for thedefaultGtkSettings has changed, discard all style informationand then reread all previously readRC files.

deprecated: 3.0 

rc_reparse_all_for_settings

If the modification time on any previously read filefor the givenGtkSettings has changed, discard all style informationand then reread all previously readRC files.

deprecated: 3.0 

rc_reset_styles

This function recomputes the styles for all widgets that use aparticularGtkSettings object. (There is oneGtkSettings objectperGdkScreen, see gtk_settings_get_for_screen()); It is usefulwhen some global parameter has changed that affects the appearanceof all widgets, because when a widget gets a new style, it willboth redraw and recompute any cached information about itsappearance. As an example, it is used when the default font sizeset by the operating system changes. Note that this functiondoesn’t affect widgets that have a style set explicitly on themwith gtk_widget_set_style().

deprecated: 3.0 since: 2.4

rc_scanner_new

deprecated: 3.0 

rc_set_default_files

Sets the list of files thatGTK+ will read at theend of gtk_init().

deprecated: 3.0 

render_activity

Renders an activity indicator (such as inGtkSpinner).The stateGTK_STATE_FLAG_CHECKED determines whether there isactivity going on.

since: 3.0

render_arrow

Renders an arrow pointing toangle.

since: 3.0

render_background

Renders the background of an element.

since: 3.0

render_background_get_clip

Returns the area that will be affected (i.e. drawn to) whencallinggtk_render_background() for the givencontext and rectangle.

since: 3.20

render_check

Renders a checkmark (as in aGtkCheckButton).

since: 3.0

render_expander

Renders an expander (as used inGtkTreeView andGtkExpander) in the areadefined byx,y,width,height. The stateGTK_STATE_FLAG_CHECKEDdetermines whether the expander is collapsed or expanded.

since: 3.0

render_extension

Renders a extension (as in aGtkNotebook tab) in the rectangledefined byx,y,width,height. The side where the extensionconnects to is defined bygap_side.

since: 3.0

render_focus

Renders a focus indicator on the rectangle determined byx,y,width,height.

since: 3.0

render_frame

Renders a frame around the rectangle defined byx,y,width,height.

since: 3.0

render_frame_gap

Renders a frame around the rectangle defined by (x,y,width,height),leaving a gap on one side.xy0_gap andxy1_gap will mean X coordinatesforGTK_POS_TOP andGTK_POS_BOTTOM gap sides, and Y coordinates forGTK_POS_LEFT andGTK_POS_RIGHT.

deprecated: 3.24 since: 3.0

render_handle

Renders a handle (as inGtkHandleBox,GtkPaned andGtkWindow’s resize grip), in the rectangledetermined byx,y,width,height.

since: 3.0

render_icon

Renders the icon inpixbuf at the specifiedx andy coordinates.

since: 3.2

render_icon_pixbuf

Renders the icon specified bysource at the givensize, returning the resultin a pixbuf.

deprecated: 3.10 since: 3.0

render_icon_surface

Renders the icon insurface at the specifiedx andy coordinates.

since: 3.10

render_insertion_cursor

Draws a text caret oncr at the specified index oflayout.

since: 3.4

render_layout

Renderslayout on the coordinatesx,y.

since: 3.0

render_line

Renders a line from (x0, y0) to (x1, y1).

since: 3.0

render_option

Renders an option mark (as in aGtkRadioButton), theGTK_STATE_FLAG_CHECKEDstate will determine whether the option is on or off, andGTK_STATE_FLAG_INCONSISTENT whether it should be marked as undefined.

since: 3.0

render_slider

Renders a slider (as inGtkScale) in the rectangle defined byx,y,width,height.orientation defines whether the slider is verticalor horizontal.

since: 3.0

rgb_to_hsv

Converts a color fromRGB space toHSV.

since: 2.14

selection_add_target

Appends a specified target to the list of supported targets for agiven widget and selection.

selection_add_targets

Prepends a table of targets to the list of supported targetsfor a given widget and selection.

selection_clear_targets

Remove all targets registered for the given selection for the widget.

selection_convert

Requests the contents of a selection. When received,a “selection-received” signal will be generated.

selection_owner_set

Claims ownership of a given selection for a particular widget,or, ifwidget isNULL, release ownership of the selection.

selection_owner_set_for_display

Claim ownership of a given selection for a particular widget, or,ifwidget isNULL, release ownership of the selection.

since: 2.2

selection_remove_all

Removes all handlers and unsets ownership of allselections for a widget. Called when widget is beingdestroyed. This function will not generally becalled by applications.

set_debug_flags

Sets theGTK+ debug flags.

show_about_dialog

This is a convenience function for showing an application’s about box.The constructed dialog is associated with the parent window andreused for future invocations of this function.

since: 2.6

show_uri

A convenience function for launching the default applicationto show the uri. Like gtk_show_uri_on_window(), but takes a screenas transient parent instead of a window.

deprecated: 3.22 since: 2.14

show_uri_on_window

This is a convenience function for launching the default applicationto show the uri. The uri must be of a form understood byGIO (i.e. youneed to install gvfs to get support for uri schemes such as http://or ftp://, as only local files are handled byGIO itself).Typical examples are-file:///home/gnome/pict.jpg-http://www.gnome.org-mailto:me@gnome.org.

since: 3.22

stock_add

Registers each of the stock items initems. If an item alreadyexists with the same stockID as one of theitems, the old itemgets replaced. The stock items are copied, soGTK+ does not holdany pointer intoitems anditems can be freed. Usegtk_stock_add_static() ifitems is persistent andGTK+ need notcopy the array.

deprecated: 3.10 

stock_add_static

Same as gtk_stock_add(), but doesn’t copyitems, soitems must persist until application exit.

deprecated: 3.10 

stock_list_ids

Retrieves a list of all known stock IDs added to aGtkIconFactoryor registered with gtk_stock_add(). The list must be freed with g_slist_free(),and each string in the list must be freed with g_free().

deprecated: 3.10 

stock_lookup

Fillsitem with the registered values forstock_id, returningTRUEifstock_id was known.

deprecated: 3.10 

stock_set_translate_func

Sets a function to be used for translating thelabel ofa stock item.

deprecated: 3.10 since: 2.8

target_table_free

This function frees a target table as returned by gtk_target_table_new_from_list().

since: 2.10

target_table_new_from_list

This function creates anGtkTargetEntry array that contains thesame targets as the passed %list. The returned table is newlyallocated and should be freed usinggtk_target_table_free() when nolonger needed.

since: 2.10

targets_include_image

Determines if any of the targets intargets can be used toprovide aGdkPixbuf.

since: 2.10

targets_include_rich_text

Determines if any of the targets intargets can be used toprovide rich text.

since: 2.10

targets_include_text

Determines if any of the targets intargets can be used toprovide text.

since: 2.10

targets_include_uri

Determines if any of the targets intargets can be used toprovide an uri list.

since: 2.10

test_create_simple_window

Create a simple window with window titlewindow_title andtext contentsdialog_text.The window will quit any running gtk_main()-loop when destroyed, and itwill automatically be destroyed upon test function teardown.

deprecated: 3.20 since: 2.14

test_create_widget

This function wrapsg_object_new() for widget types.It’ll automatically show all created non window widgets, alsog_object_ref_sink() them (to keep them alive across a running test)and set them up for destruction during the next test teardown phase.

deprecated: 3.20 since: 2.14

test_display_button_window

Create a window with window titlewindow_title, text contentsdialog_text,and a number of buttons, according to the paired argument list givenas @… parameters.Each button is created with alabel and a ::clicked signal handler thatincremrents the integer stored innump.The window will be automatically shown withgtk_widget_show_now() aftercreation, so when this function returns it has already been mapped,resized and positioned on screen.The window will quit any running gtk_main()-loop when destroyed, and itwill automatically be destroyed upon test function teardown.

deprecated: 3.20 since: 2.14

test_find_label

This function will searchwidget and all its descendants for a GtkLabelwidget with a text string matchinglabel_pattern.Thelabel_pattern may contain asterisks “*” and question marks “?” asplaceholders,g_pattern_match() is used for the matching.Note that locales other than “C“ tend to alter (translate” label strings,so this function is genrally only useful in test programs withpredetermined locales, seegtk_test_init() for more details.

since: 2.14

test_find_sibling

This function will search siblings ofbase_widget and siblings of itsancestors for all widgets matchingwidget_type.Of the matching widgets, the one that is geometrically closest tobase_widget will be returned.The general purpose of this function is to find the most likely “action”widget, relative to another labeling widget. Such as finding abutton or text entry widget, given its corresponding label widget.

since: 2.14

test_find_widget

This function will search the descendants ofwidget for a widgetof typewidget_type that has a label matchinglabel_pattern nextto it. This is most useful for automatedGUI testing, e.g. to findthe “OK” button in a dialog and synthesize clicks on it.However see gtk_test_find_label(),gtk_test_find_sibling() andgtk_test_widget_click() for possible caveats involving the search ofsuch widgets and synthesizing widget events.

since: 2.14

test_init

This function is used to initialize aGTK+ test program.

since: 2.14

test_list_all_types

Return the type ids that have been registered aftercalling gtk_test_register_all_types().

since: 2.14

test_register_all_types

Force registration of all core Gtk+ and Gdk object types.This allowes to refer to any of those object types viag_type_from_name() after calling this function.

since: 2.14

test_slider_get_value

Retrive the literal adjustment value for GtkRange basedwidgets and spin buttons. Note that the value returned bythis function is anything between the lower and upper boundsof the adjustment belonging towidget, and is not a percentageas passed in to gtk_test_slider_set_perc().

deprecated: 3.20 since: 2.14

test_slider_set_perc

This function will adjust the slider position of all GtkRangebased widgets, such as scrollbars or scales, it’ll also adjustspin buttons. The adjustment value of these widgets is set toa value between the lower and upper limits, according to thepercentage argument.

deprecated: 3.20 since: 2.14

test_spin_button_click

This function will generate abutton click in the upwards or downwardsspin button arrow areas, usually leading to an increase or decrease ofspin button’s value.

deprecated: 3.20 since: 2.14

test_text_get

Retrive the text string ofwidget if it is a GtkLabel,GtkEditable (entry and text widgets) or GtkTextView.

deprecated: 3.20 since: 2.14

test_text_set

Set the text string ofwidget tostring if it is a GtkLabel,GtkEditable (entry and text widgets) or GtkTextView.

deprecated: 3.20 since: 2.14

test_widget_click

This function will generate abutton click (button press and buttonrelease event) in the middle of the first GdkWindow found that belongstowidget.For windowless widgets likeGtkButton (which returnsFALSE fromgtk_widget_get_has_window()), this will often be aninput-only event window. For other widgets, this is usually widget->window.Certain caveats should be considered when using this function, inparticular because the mouse pointer is warped to the button clicklocation, seegdk_test_simulate_button() for details.

deprecated: 3.20 since: 2.14

test_widget_send_key

This function will generate keyboard press and release events inthe middle of the first GdkWindow found that belongs towidget.For windowless widgets likeGtkButton (which returnsFALSE fromgtk_widget_get_has_window()), this will often be aninput-only event window. For other widgets, this is usually widget->window.Certain caveats should be considered when using this function, inparticular because the mouse pointer is warped to the key presslocation, seegdk_test_simulate_key() for details.

since: 2.14

test_widget_wait_for_draw

Enters the main loop and waits forwidget to be “drawn”. In thiscontext that means it waits for the frame clock ofwidget to haverun a full styling, layout and drawing cycle.

since: 3.10

tree_get_row_drag_data

Obtains atree_model andpath from selection data of target typeGTK_TREE_MODEL_ROW. Normally called from a drag_data_received handler.This function can only be used ifselection_data originates from the sameprocess that’s calling this function, because a pointer to the tree modelis being passed around. If you aren’t in the same process, then you’llget memory corruption. In theGtkTreeDragDest drag_data_received handler,you can assume that selection data of typeGTK_TREE_MODEL_ROW isin from the current process. The returned path must be freed with gtk_tree_path_free().

tree_set_row_drag_data

Sets selection data of target typeGTK_TREE_MODEL_ROW. Normally usedin a drag_data_get handler.

true

All this function does it to returnTRUE.

Function Macros

ACTIVATABLE_CLASS

BUILDABLE_CLASS

BUILDER_WARN_INVALID_CHILD_TYPE

This macro should be used to emit a warning about and unexpectedtype valuein aGtkBuildable add_child implementation.

CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID

This macro should be used to emit a standard warning about unexpectedproperties inset_cell_property() andget_cell_property() implementations.

CELL_EDITABLE_CLASS

CHECK_VERSION

ReturnsTRUE if the version of theGTK+ header filesis the same as or newer than the passed-in version.

CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID

This macro should be used to emit a standard warning about unexpectedproperties inset_child_property() andget_child_property() implementations.

DEBUG_CHECK

HBOX

HBOX_CLASS

HBUTTON_BOX

HBUTTON_BOX_CLASS

HPANED

HPANED_CLASS

HSCALE

HSCALE_CLASS

HSCROLLBAR

HSCROLLBAR_CLASS

HSEPARATOR

HSEPARATOR_CLASS

HSV_CLASS

NOTE

ORIENTABLE_CLASS

RC_STYLE

RC_STYLE_CLASS

STYLE_ATTACHED

TREE_SORTABLE_CLASS

VBOX

VBOX_CLASS

VBUTTON_BOX

VBUTTON_BOX_CLASS

VPANED

VPANED_CLASS

VSCALE

VSCALE_CLASS

VSCROLLBAR

VSCROLLBAR_CLASS

VSEPARATOR

VSEPARATOR_CLASS

widget_class_bind_template_callback

Binds a callback function defined in a template to thewidget_class.

since: 3.10

widget_class_bind_template_child

Binds a child widget defined in a template to thewidget_class.

since: 3.10

widget_class_bind_template_child_internal

Binds a child widget defined in a template to thewidget_class, andalso makes it available as an internal child in GtkBuilder, under thenamemember_name.

since: 3.10

widget_class_bind_template_child_internal_private

Binds a child widget defined in a template to thewidget_class, andalso makes it available as an internal child in GtkBuilder, under thenamemember_name.

since: 3.10

widget_class_bind_template_child_private

Binds a child widget defined in a template to thewidget_class.

since: 3.10

Constants

BINARY_AGE

Like gtk_get_binary_age(), but from the headers used atapplication compile time, rather than from the library linkedagainst at application run time.

INPUT_ERROR

Constant to return from a signal handler for theGtkSpinButton::inputsignal in case of conversion failure.

INTERFACE_AGE

Like gtk_get_interface_age(), but from the headers used atapplication compile time, rather than from the library linkedagainst at application run time.

LEVEL_BAR_OFFSET_FULL

The name used for the stock full offset included byGtkLevelBar.

LEVEL_BAR_OFFSET_HIGH

The name used for the stock high offset included byGtkLevelBar.

LEVEL_BAR_OFFSET_LOW

The name used for the stock low offset included byGtkLevelBar.

MAJOR_VERSION

Like gtk_get_major_version(), but from the headers used atapplication compile time, rather than from the library linkedagainst at application run time.

MAX_COMPOSE_LEN

The maximum length of sequences in compose tables.

MICRO_VERSION

Like gtk_get_micro_version(), but from the headers used atapplication compile time, rather than from the library linkedagainst at application run time.

MINOR_VERSION

Like gtk_get_minor_version(), but from the headers used atapplication compile time, rather than from the library linkedagainst at application run time.

PAPER_NAME_A3

Name for the A3 paper size.

PAPER_NAME_A4

Name for the A4 paper size.

PAPER_NAME_A5

Name for the A5 paper size.

PAPER_NAME_B5

Name for the B5 paper size.

PAPER_NAME_EXECUTIVE

Name for the Executive paper size.

PAPER_NAME_LEGAL

Name for the Legal paper size.

PAPER_NAME_LETTER

Name for the Letter paper size.

PATH_PRIO_MASK

PRINT_SETTINGS_COLLATE

PRINT_SETTINGS_DEFAULT_SOURCE

PRINT_SETTINGS_DITHER

PRINT_SETTINGS_DUPLEX

PRINT_SETTINGS_FINISHINGS

PRINT_SETTINGS_MEDIA_TYPE

PRINT_SETTINGS_N_COPIES

PRINT_SETTINGS_NUMBER_UP

PRINT_SETTINGS_NUMBER_UP_LAYOUT

PRINT_SETTINGS_ORIENTATION

PRINT_SETTINGS_OUTPUT_BASENAME

The key used by the “Print to file” printer to store the filename of the output without the path to the directory and thefile extension.

PRINT_SETTINGS_OUTPUT_BIN

PRINT_SETTINGS_OUTPUT_DIR

The key used by the “Print to file” printer to store thedirectory to which the output should be written.

PRINT_SETTINGS_OUTPUT_FILE_FORMAT

The key used by the “Print to file” printer to store the formatof the output. The supported values are “PS” and “PDF”.

PRINT_SETTINGS_OUTPUT_URI

The key used by the “Print to file” printer to store theURIto which the output should be written.GTK+ itself supportsonly “file://” URIs.

PRINT_SETTINGS_PAGE_RANGES

PRINT_SETTINGS_PAGE_SET

PRINT_SETTINGS_PAPER_FORMAT

PRINT_SETTINGS_PAPER_HEIGHT

PRINT_SETTINGS_PAPER_WIDTH

PRINT_SETTINGS_PRINT_PAGES

PRINT_SETTINGS_PRINTER

PRINT_SETTINGS_PRINTER_LPI

PRINT_SETTINGS_QUALITY

PRINT_SETTINGS_RESOLUTION

PRINT_SETTINGS_RESOLUTION_X

PRINT_SETTINGS_RESOLUTION_Y

PRINT_SETTINGS_REVERSE

PRINT_SETTINGS_SCALE

PRINT_SETTINGS_USE_COLOR

PRINT_SETTINGS_WIN32_DRIVER_EXTRA

PRINT_SETTINGS_WIN32_DRIVER_VERSION

PRIORITY_RESIZE

Use this priority for functionality related to size allocation.

STOCK_ABOUT

The “About” item..

deprecated: 3.10 

STOCK_ADD

The “Add” item and icon.

deprecated: 3.10 

STOCK_APPLY

The “Apply” item and icon.

deprecated: 3.10 

STOCK_BOLD

The “Bold” item and icon.

deprecated: 3.10 

STOCK_CANCEL

The “Cancel” item and icon.

deprecated: 3.10 

STOCK_CAPS_LOCK_WARNING

The “Caps Lock Warning” icon.

deprecated: 3.10 

STOCK_CDROM

The “CD-Rom” item and icon.

deprecated: 3.10 

STOCK_CLEAR

The “Clear” item and icon.

deprecated: 3.10 

STOCK_CLOSE

The “Close” item and icon.

deprecated: 3.10 

STOCK_COLOR_PICKER

The “Color Picker” item and icon.

deprecated: 3.10 

STOCK_CONNECT

The “Connect” icon.

deprecated: 3.10 

STOCK_CONVERT

The “Convert” item and icon.

deprecated: 3.10 

STOCK_COPY

The “Copy” item and icon.

deprecated: 3.10 

STOCK_CUT

The “Cut” item and icon.

deprecated: 3.10 

STOCK_DELETE

The “Delete” item and icon.

deprecated: 3.10 

STOCK_DIALOG_AUTHENTICATION

The “Authentication” item and icon.

deprecated: 3.10 

STOCK_DIALOG_ERROR

The “Error” item and icon.

deprecated: 3.10 

STOCK_DIALOG_INFO

The “Information” item and icon.

deprecated: 3.10 

STOCK_DIALOG_QUESTION

The “Question” item and icon.

deprecated: 3.10 

STOCK_DIALOG_WARNING

The “Warning” item and icon.

deprecated: 3.10 

STOCK_DIRECTORY

The “Directory” icon.

deprecated: 3.10 

STOCK_DISCARD

The “Discard” item.

deprecated: 3.10 

STOCK_DISCONNECT

The “Disconnect” icon.

deprecated: 3.10 

STOCK_DND

The “Drag-And-Drop” icon.

deprecated: 3.10 

STOCK_DND_MULTIPLE

The “Drag-And-Drop multiple” icon.

deprecated: 3.10 

STOCK_EDIT

The “Edit” item and icon.

deprecated: 3.10 

STOCK_EXECUTE

The “Execute” item and icon.

deprecated: 3.10 

STOCK_FILE

The “File” item and icon.

deprecated: 3.10 

STOCK_FIND

The “Find” item and icon.

deprecated: 3.10 

STOCK_FIND_AND_REPLACE

The “Find and Replace” item and icon.

deprecated: 3.10 

STOCK_FLOPPY

The “Floppy” item and icon.

deprecated: 3.10 

STOCK_FULLSCREEN

The “Fullscreen” item and icon.

deprecated: 3.10 

STOCK_GO_BACK

The “Back” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_GO_DOWN

The “Down” item and icon.

deprecated: 3.10 

STOCK_GO_FORWARD

The “Forward” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_GO_UP

The “Up” item and icon.

deprecated: 3.10 

STOCK_GOTO_BOTTOM

The “Bottom” item and icon.

deprecated: 3.10 

STOCK_GOTO_FIRST

The “First” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_GOTO_LAST

The “Last” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_GOTO_TOP

The “Top” item and icon.

deprecated: 3.10 

STOCK_HARDDISK

The “Harddisk” item and icon.

deprecated: 3.10 

STOCK_HELP

The “Help” item and icon.

deprecated: 3.10 

STOCK_HOME

The “Home” item and icon.

deprecated: 3.10 

STOCK_INDENT

The “Indent” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_INDEX

The “Index” item and icon.

deprecated: 3.10 

STOCK_INFO

The “Info” item and icon.

deprecated: 3.10 

STOCK_ITALIC

The “Italic” item and icon.

deprecated: 3.10 

STOCK_JUMP_TO

The “Jump to” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_JUSTIFY_CENTER

The “Center” item and icon.

deprecated: 3.10 

STOCK_JUSTIFY_FILL

The “Fill” item and icon.

deprecated: 3.10 

STOCK_JUSTIFY_LEFT

The “Left” item and icon.

deprecated: 3.10 

STOCK_JUSTIFY_RIGHT

The “Right” item and icon.

deprecated: 3.10 

STOCK_LEAVE_FULLSCREEN

The “Leave Fullscreen” item and icon.

deprecated: 3.10 

STOCK_MEDIA_FORWARD

The “Media Forward” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_MEDIA_NEXT

The “Media Next” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_MEDIA_PAUSE

The “Media Pause” item and icon.

deprecated: 3.10 

STOCK_MEDIA_PLAY

The “Media Play” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_MEDIA_PREVIOUS

The “Media Previous” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_MEDIA_RECORD

The “Media Record” item and icon.

deprecated: 3.10 

STOCK_MEDIA_REWIND

The “Media Rewind” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_MEDIA_STOP

The “Media Stop” item and icon.

deprecated: 3.10 

STOCK_MISSING_IMAGE

The “Missing image” icon.

deprecated: 3.10 

STOCK_NETWORK

The “Network” item and icon.

deprecated: 3.10 

STOCK_NEW

The “New” item and icon.

deprecated: 3.10 

STOCK_NO

The “No” item and icon.

deprecated: 3.10 

STOCK_OK

The “OK” item and icon.

deprecated: 3.10 

STOCK_OPEN

The “Open” item and icon.

deprecated: 3.10 

STOCK_ORIENTATION_LANDSCAPE

The “Landscape Orientation” item and icon.

deprecated: 3.10 

STOCK_ORIENTATION_PORTRAIT

The “Portrait Orientation” item and icon.

deprecated: 3.10 

STOCK_ORIENTATION_REVERSE_LANDSCAPE

The “Reverse Landscape Orientation” item and icon.

deprecated: 3.10 

STOCK_ORIENTATION_REVERSE_PORTRAIT

The “Reverse Portrait Orientation” item and icon.

deprecated: 3.10 

STOCK_PAGE_SETUP

The “Page Setup” item and icon.

deprecated: 3.10 

STOCK_PASTE

The “Paste” item and icon.

deprecated: 3.10 

STOCK_PREFERENCES

The “Preferences” item and icon.

deprecated: 3.10 

STOCK_PRINT

The “Print” item and icon.

deprecated: 3.10 

STOCK_PRINT_ERROR

The “Print Error” icon.

deprecated: 3.10 

STOCK_PRINT_PAUSED

The “Print Paused” icon.

deprecated: 3.10 

STOCK_PRINT_PREVIEW

The “Print Preview” item and icon.

deprecated: 3.10 

STOCK_PRINT_REPORT

The “Print Report” icon.

deprecated: 3.10 

STOCK_PRINT_WARNING

The “Print Warning” icon.

deprecated: 3.10 

STOCK_PROPERTIES

The “Properties” item and icon.

deprecated: 3.10 

STOCK_QUIT

The “Quit” item and icon.

deprecated: 3.10 

STOCK_REDO

The “Redo” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_REFRESH

The “Refresh” item and icon.

deprecated: 3.10 

STOCK_REMOVE

The “Remove” item and icon.

deprecated: 3.10 

STOCK_REVERT_TO_SAVED

The “Revert” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_SAVE

The “Save” item and icon.

deprecated: 3.10 

STOCK_SAVE_AS

The “Save As” item and icon.

deprecated: 3.10 

STOCK_SELECT_ALL

The “Select All” item and icon.

deprecated: 3.10 

STOCK_SELECT_COLOR

The “Color” item and icon.

deprecated: 3.10 

STOCK_SELECT_FONT

The “Font” item and icon.

deprecated: 3.10 

STOCK_SORT_ASCENDING

The “Ascending” item and icon.

deprecated: 3.10 

STOCK_SORT_DESCENDING

The “Descending” item and icon.

deprecated: 3.10 

STOCK_SPELL_CHECK

The “Spell Check” item and icon.

deprecated: 3.10 

STOCK_STOP

The “Stop” item and icon.

deprecated: 3.10 

STOCK_STRIKETHROUGH

The “Strikethrough” item and icon.

deprecated: 3.10 

STOCK_UNDELETE

The “Undelete” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_UNDERLINE

The “Underline” item and icon.

deprecated: 3.10 

STOCK_UNDO

The “Undo” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_UNINDENT

The “Unindent” item and icon. The icon has anRTL variant.

deprecated: 3.10 

STOCK_YES

The “Yes” item and icon.

deprecated: 3.10 

STOCK_ZOOM_100

The “Zoom 100%” item and icon.

deprecated: 3.10 

STOCK_ZOOM_FIT

The “Zoom to Fit” item and icon.

deprecated: 3.10 

STOCK_ZOOM_IN

The “Zoom In” item and icon.

deprecated: 3.10 

STOCK_ZOOM_OUT

The “Zoom Out” item and icon.

deprecated: 3.10 

STYLE_CLASS_ACCELERATOR

ACSS class to match an accelerator.

STYLE_CLASS_ARROW

ACSS class used when rendering an arrow element.

STYLE_CLASS_BACKGROUND

ACSS class to match the window background.

STYLE_CLASS_BOTTOM

ACSS class to indicate an area at the bottom of a widget.

STYLE_CLASS_BUTTON

ACSS class to match buttons.

STYLE_CLASS_CALENDAR

ACSS class to match calendars.

STYLE_CLASS_CELL

ACSS class to match content rendered in cell views.

STYLE_CLASS_CHECK

ACSS class to match check boxes.

STYLE_CLASS_COMBOBOX_ENTRY

ACSS class to match combobox entries.

STYLE_CLASS_CONTEXT_MENU

ACSS class to match context menus.

STYLE_CLASS_CSD

ACSS class that gets added to windows which have client-side decorations.

STYLE_CLASS_CURSOR_HANDLE

ACSS class used when rendering a drag handle fortext selection.

STYLE_CLASS_DEFAULT

ACSS class to match the default widget.

STYLE_CLASS_DESTRUCTIVE_ACTION

ACSS class used when an action (usually a button) isone that is expected to remove or destroy something visibleto the user.

STYLE_CLASS_DIM_LABEL

ACSS class to match dimmed labels.

STYLE_CLASS_DND

ACSS class for a drag-and-drop indicator.

STYLE_CLASS_DOCK

ACSS class defining a dock area.

STYLE_CLASS_ENTRY

ACSS class to match text entries.

STYLE_CLASS_ERROR

ACSS class for an area displaying an error message,such as those in infobars.

STYLE_CLASS_EXPANDER

ACSS class defining an expander, such as those in treeviews.

STYLE_CLASS_FLAT

ACSS class that is added when widgets that usually havea frame or border (like buttons or entries) should appearwithout it.

STYLE_CLASS_FRAME

ACSS class defining a frame delimiting content, such asGtkFrame or the scrolled window frame around thescrollable area.

STYLE_CLASS_GRIP

ACSS class defining a resize grip.

STYLE_CLASS_HEADER

ACSS class to match a header element.

STYLE_CLASS_HIGHLIGHT

ACSS class defining a highlighted area, such as headings inassistants and calendars.

STYLE_CLASS_HORIZONTAL

ACSS class for horizontally layered widgets.

STYLE_CLASS_IMAGE

ACSS class defining an image, such as the icon in an entry.

STYLE_CLASS_INFO

ACSS class for an area displaying an informational message,such as those in infobars.

STYLE_CLASS_INLINE_TOOLBAR

ACSS class to match inline toolbars.

STYLE_CLASS_INSERTION_CURSOR

ACSS class used when rendering a drag handle forthe insertion cursor position.

STYLE_CLASS_LABEL

ACSS class to match labels.

STYLE_CLASS_LEFT

ACSS class to indicate an area at the left of a widget.

STYLE_CLASS_LEVEL_BAR

ACSS class used when rendering a level indicator, suchas a battery charge level, or a password strength.

STYLE_CLASS_LINKED

ACSS class to match a linked area, such as a box containing buttonsbelonging to the same control.

STYLE_CLASS_LIST

ACSS class to match lists.

STYLE_CLASS_LIST_ROW

ACSS class to match list rows.

STYLE_CLASS_MARK

ACSS class defining marks in a widget, such as in scales.

STYLE_CLASS_MENU

ACSS class to match menus.

STYLE_CLASS_MENUBAR

ACSS class to menubars.

STYLE_CLASS_MENUITEM

ACSS class to match menu items.

STYLE_CLASS_MESSAGE_DIALOG

ACSS class that is added to message dialogs.

STYLE_CLASS_MONOSPACE

ACSS class that is added to text view that should usea monospace font.

STYLE_CLASS_NEEDS_ATTENTION

ACSS class used when an element needs the user attention,for instance a button in a stack switcher corresponding toa hidden page that changed state.

STYLE_CLASS_NOTEBOOK

ACSS class defining a notebook.

STYLE_CLASS_OSD

ACSS class used when rendering anOSD (On Screen Display) element,on top of another container.

STYLE_CLASS_OVERSHOOT

ACSS class that is added on the visual hints that happenwhen scrolling is attempted past the limits of a scrollable area.

STYLE_CLASS_PANE_SEPARATOR

ACSS class for a pane separator, such as those inGtkPaned.

STYLE_CLASS_PAPER

ACSS class that is added to areas that should look like paper.

STYLE_CLASS_POPOVER

ACSS class that matches popovers.

STYLE_CLASS_POPUP

ACSS class that is added to the toplevel windows used for menus.

STYLE_CLASS_PRIMARY_TOOLBAR

ACSS class to match primary toolbars.

STYLE_CLASS_PROGRESSBAR

ACSS class to use when rendering activity as a progressbar.

STYLE_CLASS_PULSE

ACSS class to use when rendering a pulse in an indeterminate progress bar.

STYLE_CLASS_QUESTION

ACSS class for an area displaying a question to the user,such as those in infobars.

STYLE_CLASS_RADIO

ACSS class to match radio buttons.

STYLE_CLASS_RAISED

ACSS class to match a raised control, such as a raisedbutton on a toolbar.

STYLE_CLASS_READ_ONLY

ACSS class used to indicate a read-only state.

STYLE_CLASS_RIGHT

ACSS class to indicate an area at the right of a widget.

STYLE_CLASS_RUBBERBAND

ACSS class to match the rubberband selection rectangle.

STYLE_CLASS_SCALE

ACSS class to match scale widgets.

STYLE_CLASS_SCALE_HAS_MARKS_ABOVE

ACSS class to match scale widgets with marks attached,all the marks are above for horizontalGtkScale.left for verticalGtkScale.

STYLE_CLASS_SCALE_HAS_MARKS_BELOW

ACSS class to match scale widgets with marks attached,all the marks are below for horizontalGtkScale,right for verticalGtkScale.

STYLE_CLASS_SCROLLBAR

ACSS class to match scrollbars.

STYLE_CLASS_SCROLLBARS_JUNCTION

ACSS class to match the junction area between an horizontaland vertical scrollbar, when they’re both shown.

STYLE_CLASS_SEPARATOR

ACSS class for a separator.

STYLE_CLASS_SIDEBAR

ACSS class defining a sidebar, such as the left side ina file chooser.

STYLE_CLASS_SLIDER

ACSS class to match sliders.

STYLE_CLASS_SPINBUTTON

ACSS class defining an spinbutton.

STYLE_CLASS_SPINNER

ACSS class to use when rendering activity as a “spinner”.

STYLE_CLASS_STATUSBAR

ACSS class to match statusbars.

STYLE_CLASS_SUBTITLE

ACSS class used for the subtitle label in a titlebar ina toplevel window.

STYLE_CLASS_SUGGESTED_ACTION

ACSS class used when an action (usually a button) is theprimary suggested action in a specific context.

STYLE_CLASS_TITLE

ACSS class used for the title label in a titlebar ina toplevel window.

STYLE_CLASS_TITLEBAR

ACSS class used when rendering a titlebar in a toplevel window.

STYLE_CLASS_TOOLBAR

ACSS class to match toolbars.

STYLE_CLASS_TOOLTIP

ACSS class to match tooltip windows.

STYLE_CLASS_TOP

ACSS class to indicate an area at the top of a widget.

STYLE_CLASS_TOUCH_SELECTION

ACSS class for touch selection popups on entriesand text views.

STYLE_CLASS_TROUGH

ACSS class to match troughs, as in scrollbars and progressbars.

STYLE_CLASS_UNDERSHOOT

ACSS class that is added on the visual hints that happenwhere content is ‘scrolled off’ and can be made visibleby scrolling.

STYLE_CLASS_VERTICAL

ACSS class for vertically layered widgets.

STYLE_CLASS_VIEW

ACSS class defining a view, such as iconviews or treeviews.

STYLE_CLASS_WARNING

ACSS class for an area displaying a warning message,such as those in infobars.

STYLE_CLASS_WIDE

ACSS class to indicate that aUI element should be ‘wide’.Used byGtkPaned.

STYLE_PROPERTY_BACKGROUND_COLOR

A property holding the background color of rendered elements as aGdkRGBA.

STYLE_PROPERTY_BACKGROUND_IMAGE

A property holding the element’s background as a #cairo_pattern_t.

STYLE_PROPERTY_BORDER_COLOR

A property holding the element’s border color as aGdkRGBA.

STYLE_PROPERTY_BORDER_RADIUS

A property holding the rendered element’s border radius in pixels as a #gint.

STYLE_PROPERTY_BORDER_STYLE

A property holding the element’s border style as aGtkBorderStyle.

STYLE_PROPERTY_BORDER_WIDTH

A property holding the rendered element’s border width in pixels asaGtkBorder. The border is the intermediary spacing property of thepadding/border/margin series.

STYLE_PROPERTY_COLOR

A property holding the foreground color of rendered elements as aGdkRGBA.

STYLE_PROPERTY_FONT

A property holding the font properties used when rendering textas aPangoFontDescription.

STYLE_PROPERTY_MARGIN

A property holding the rendered element’s margin as aGtkBorder. Themargin is defined as the spacing between the border of the elementand its surrounding elements. It is external toGtkWidgetssize allocations, and the most external spacing property of thepadding/border/margin series.

STYLE_PROPERTY_PADDING

A property holding the rendered element’s padding as aGtkBorder. Thepadding is defined as the spacing between the inner part of the element borderand its child. It’s the innermost spacing property of the padding/border/margin series.

STYLE_PROVIDER_PRIORITY_APPLICATION

A priority that can be used when adding aGtkStyleProviderfor application-specific style information.

STYLE_PROVIDER_PRIORITY_FALLBACK

The priority used for default style informationthat is used in the absence of themes.

STYLE_PROVIDER_PRIORITY_SETTINGS

The priority used for style information providedviaGtkSettings.

STYLE_PROVIDER_PRIORITY_THEME

The priority used for style information providedby themes.

STYLE_PROVIDER_PRIORITY_USER

The priority used for the style information fromXDG_CONFIG_HOME/gtk-3.0/gtk.css.

STYLE_REGION_COLUMN

A widget region name to define a treeview column.

deprecated: 3.20 

STYLE_REGION_COLUMN_HEADER

A widget region name to define a treeview column header.

deprecated: 3.20 

STYLE_REGION_ROW

A widget region name to define a treeview row.

deprecated: 3.20 

STYLE_REGION_TAB

A widget region name to define a notebook tab.

deprecated: 3.20 

TEXT_VIEW_PRIORITY_VALIDATE

The priority at which the text view validates onscreen linesin an idle job in the background.

TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID

The GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID can be used to make aGtkTreeSortable use the default sort function.

TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID

The GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID can be used to make aGtkTreeSortable use no sorting.


[8]ページ先頭

©2009-2026 Movatter.jp