Gdk Namespace

An intermediate layer which isolates Gtk from the details of the windowing system.

Classes

TypeReason
AreaUpdatedArgsEvent data.
AtomAn opaque type representing a string as an index into a table of strings on the X server.
CairoHelperCairo backend API methods.
CharDocumentation for this section has not yet been entered.
ClosedArgsEvent data.
ColormapA structure that contains different colors.
CursorStandard and pixmap cursors
DeviceThis class contains a detailed description of an extended input device.
DisplayControls the keyboard/mouse pointer grabs and a set of GdkScreens.
DisplayManagerThe purpose of this class is to offer notification when displays appear or disappear or the default display changes.
DisplayOpenedArgsEvent data.
DragDocumentation for this section has not yet been entered.
DragContextThis holds information about a drag in progress. It is used on both source and destination sides.
DrawableFunctions for drawing points, lines, arcs, and text.
DropDocumentation for this section has not yet been entered.
EdgeTableEntryDocumentation for this section has not yet been entered.
ErrorDocumentation for this section has not yet been entered.
EventThis object contains the fields that are common to all Event classes. Any Gdk.Event* can be safely cast to a Gdk.Event
EventButtonUsed for button press and button release events.
EventClientAn event sent by another client application.
EventConfigureGenerated when a window size or position has changed.
EventCrossingGenerated when the pointer enters or leaves a window.
EventDNDGenerated during DND operations.
EventExposeGenerated when all or part of a window becomes visible and needs to be redrawn.
EventFocusDescribes a change of keyboard focus.
EventGrabBrokenIndicates a grab was broken by another grab.
EventHelperA utility class that contains methods that operate on Event classes.
EventKeyDescribes a key press or key release event.
EventMotionGenerated when the pointer moves.
EventPropertyDescribes a property change on a window.
EventProximityProximity events are generated when using GDK's wrapper for the XInput extension.
EventScrollGenerated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.
EventSelectionGenerated when a selection is requested or ownership of a selection is taken over by another client application.
EventSettingGenerated when a setting is modified.
EventVisibilityGenerated when the window visibility status has changed.
EventWindowStateGenerated when the state of a toplevel window changes.
FontsetDocumentation for this section has not yet been entered.
GCRepresents a graphics context
GlobalGlobal API elements for Gdk
ImageContains information on the image and the pixel data.
InputDocumentation for this section has not yet been entered.
KeyboardDocumentation for this section has not yet been entered.
KeymapObject for keyboard code manipulation
KeyvalDocumentation for this section has not yet been entered.
PangoAttrEmbossColorDocumentation for this section has not yet been entered.
PangoAttrEmbossedDocumentation for this section has not yet been entered.
PangoAttrStippleDocumentation for this section has not yet been entered.
PangoHelperDocumentation for this section has not yet been entered.
PangoRendererDocumentation for this section has not yet been entered.
PixbufIn memory image handling and representation.
PixbufAniAnimRepresents an ANI format animation internally. Do not use.
PixbufAniAnimIterIterator for pointing to a particular frame of an ANI animation. Mostly internal; not for general developer use.
PixbufAnimationA base class for animations that are rendered using Gdk.Pixbuf
PixbufAnimationIter An iterator used by Gdk.PixbufAnimation for displaying animations by stepping through frames.
PixbufFormatRepresents a possible format for a Gdk.Pixbuf.
PixbufGifAnimDocumentation for this section has not yet been entered.
PixbufGifAnimIterDocumentation for this section has not yet been entered.
PixbufLoader

PixbufLoader is a 'passive' pixbuf loader. It's not actively read pix buf data, but 'listen' for incoming data instead. It's useful in a case where you want to read the image data in small chunks. Typical use of PixbufLoader is when you want to read a very large image data or reading image from a slow media (such as a slow network connection).

You can see the "Images" section of GtkDemo to learn how to use PixbufLoader.

PixbufSimpleAnimSimple Pixbuf Animation.
PixmapOffscreen drawable.
POINTBLOCKDocumentation for this section has not yet been entered.
PointerClass containing static methods for grabbing and ungrabbing the pointer as well as checking IsGrabbed status.
PropertyDocumentation for this section has not yet been entered.
RegionRepresents an area of the screen.
Rgb

Gdk's Gdk.Rgb is a low-level module which renders RGB, grayscale, and indexed colormap images to a Gdk.Drawable. It does this as efficiently as possible, handling issues such as colormaps, visuals, dithering, temporary buffers, and so on. Most code should use the higher-level GdkPixbuf features in place of this module; for example, gdk_pixbuf_render_to_drawable() uses GdkRGB in its implementation.

GdkRGB allocates a color cube to use when rendering images. You can set the threshold for installing colormaps with the Gdk.Gdk.Rgb.MinColors property. The default is 5x5x5 (125). If a colorcube of this size or larger can be allocated in the default colormap, then that's done. Otherwise, GdkRGB creates its own private colormap. Setting it to 0 means that it always tries to use the default colormap, and setting it to 216 means that it always creates a private one if it cannot allocate the 6x6x6 colormap in the default. If you always want a private colormap (to avoid consuming too many colormap entries for other apps, say), you can use gdk_rgb_set_install(TRUE). Setting the value greater than 216 exercises a bug in older versions of GdkRGB. Note, however, that setting it to 0 doesn't let you get away with ignoring the colormap and visual - a colormap is always created in grayscale and direct color modes, and the visual is changed in cases where a "better" visual than the default is available.

RgbCmapA private data structure which maps color indices to actual RGB colors.
ScanLineListDocumentation for this section has not yet been entered.
ScanLineListBlockDocumentation for this section has not yet been entered.
ScreenObject representing a physical screen.
SelectionInformation exchange through the Window Server selection mechanism.
SizePreparedArgsEvent data.
SpawnProcess spawning methods
TextPropertyDocumentation for this section has not yet been entered.
ThreadsThreads
VisualDescribes a particular video hardware display format.
WindowOnscreen display area in the target window system.

Structs

TypeReason
BRESINFODocumentation for this section has not yet been entered.
ColorDescribes an allocated or unallocated color.
DeviceAxisContains information about the range and mapping of a device axis.
DeviceKeyContains information about the mapping of one device macro button onto a normal X key event.
DisplayPointerHooksDocumentation for this section has not yet been entered.
EdgeTableDocumentation for this section has not yet been entered.
EventOwnerChangeDocumentation for this section has not yet been entered.
FontDocumentation for this section has not yet been entered.
GCValuesHolds a set of values used to create or modify a graphics context.
GeometryDocumentation for this section has not yet been entered.
KeymapKeyDocumentation for this section has not yet been entered.
PixbufFrameDocumentation for this section has not yet been entered.
PixdataContains functions for inlined pixbuf handling. It allows for pixbuf data to be accessed in a raw form, serialized, and stored.
PointRepresents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional, Cartesian plane.
PointerHooksDocumentation for this section has not yet been entered.
RectangleRepresents a rectangle with x, y, width and height.
RegionBoxDocumentation for this section has not yet been entered.
SegmentRepresents a line segment defined as [(x1,y1),(x2,y2)]
SizeA value type representing a height and width.
SpanDocumentation for this section has not yet been entered.
TimeCoordDocumentation for this section has not yet been entered.
TrapezoidDocumentation for this section has not yet been entered.
WindowAttrAttributes to use for a newly-created window.

Delegates

TypeReason
AreaUpdatedHandlerEvent handler.
ClosedHandlerEvent handler.
DestroyNotifyA callback function called when a piece of user data is no longer being stored by GDK.
DisplayOpenedHandlerEvent handler.
EventFuncDocumentation for this section has not yet been entered.
FilterFuncDelegate for callbacks invoked by Gdk.Window.AddFilter.
InputFunctionDelegate to invoke when a condition becomes true on a file descriptor.
InvalidateMaybeRecurseChildFuncCallback function for Gdk.Window.InvalidateMaybeRecurse.
PixbufDestroyNotifyDelegate class for code to be run when a Gdk.Pixbuf object is destroyed.
PixbufSaveFuncSpecifies the type of the method passed to Gdk.Pixbuf.SaveToCallback.
SizePreparedHandlerEvent handler.
SpanFuncDocumentation for this section has not yet been entered.

Enumerations

TypeReason
AxisUseAn enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that Gtk# understands.
ByteOrderA set of values describing the possible byte-orders for storing pixel values in memory.
CapStyleDetermines how the end of lines are drawn.
ColorspaceDocumentation for this section has not yet been entered.
CrossingModeSpecifies the crossing mode for Gdk.EventCrossing
CursorTypeThe standard cursors available.
DragActionUsed in Gdk.DragContext to indicate what the destination should do with the dropped data.
DragProtocolUsed in Gdk.DragContext to indicate the protocol according to which DND is done.
EventMaskA set of bit-flags to indicate which events a window is to receive. Most of these masks map onto one or more of the Gdk.EventType event types above.
EventTypeSpecifies the type of the event.
ExtensionModeDocumentation for this section has not yet been entered.
FillDetermines how primitives are drawn.
FillRuleThe method for determining which pixels are included in a region, when creating a Gdk.Region from a polygon.
FilterReturnSpecifies the result of applying a Gdk.FilterFunc to a native event.
FontTypeDocumentation for this section has not yet been entered.
FunctionDetermines how bit values for the source pixels are combine with the bit values for destination pixels to produce the final result.
GCValuesMaskA set of flags used to indicate which fields Gdk.GCValues structure are set.
GrabStatusReturned by Gdk.Pointer.Grab and Gdk.Keyboard.Grab to indicate success or the reason for the failure of the grab event.
GravityDefines the reference point of a window and the meaning of coordinates passed to Gtk.Window.Move.
ImageTypeSpecifies the type of a Gdk.Image.
InputConditionA set of flags used to specify conditions for which an input callback will be triggered.
InputModeAn enumeration that describes the mode of an input device.
InputSourceDescribes the type of input device
InterpTypeInterpolation mode for scaling operations.
JoinStyleDetermines how the joins between segments of a polygon are drawn.
KeyDocumentation for this section has not yet been entered.
LineStyleDetermines how lines are drawn.
ModifierTypeAn enum to indicate the state of modifier keys and mouse buttons in various event types. Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, APple, CapsLock or ShiftLock. Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
NotifyTypeSpecifies the kind of crossing for Gdk.EventCrossing

See the X11 protocol specification of LeaveNotify for full details of crossing event generation.
OverlapTypeSpecifies the possible values returned by Gdk.Region.RectIn.
OwnerChangeDocumentation for this section has not yet been entered.
PixbufAlphaModeDo not use.
PixbufErrorPossible errors that can be thrown by a Gdk.Pixbuf.
PixbufFrameActionDocumentation for this section has not yet been entered.
PixbufRotationPossible rotations which can be passed to Gdk.Pixbuf.RotateSimple. To make them easier to use, their numerical values are the actual degrees.
PixdataDumpTypeDocumentation for this section has not yet been entered.
PixdataTypeDocumentation for this section has not yet been entered.
PropertyStateSpecifies the type of a property change for a Gdk.EventProperty.
PropModeDescribes how existing data is combined with new data.
RgbDitherSelects whether or not Gdk.Rgb applies dithering to the image on display.
ScrollDirectionSpecifies the direction for the Gdk.EventScroll.
SettingActionSpecifies the kind of modification applied to a setting in a Gdk.EventSetting.
StatusDocumentation for this section has not yet been entered.
SubwindowModeDetermines how drawing onto a window will affect child windows of that window.
VisibilityStateSpecifies the visiblity status of a window for a Gdk.EventVisibility.
VisualTypeDescribe the how pixel values are converted into RGB values for display.
WindowAttributesTypeUsed to indicate which fields in the Gdk.WindowAttr struct should be honored.
WindowClassDescribes the class of a window.
WindowEdgeDetermines a window edge or corner.
WindowHintsUsed to indicate which fields of a Gdk.Geometry struct should be paid attention to.
WindowStateSpecifies the state of a toplevel window.
WindowTypeDescribes the kind of window.
WindowTypeHintHints to the window manager.
WMDecorationThese are hints originally defined by the Motif toolkit. The window manager can use them when determining how to decorate the window.
WMFunctionThese are hints originally defined by the Motif toolkit. The window manager can use them when determining the functions to offer for the window. The hint must be set before mapping the window.