Enums

Details

class Gdk.AxisUse(value)

Bases: GObject.GEnum

An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK+ understands.

Note that the X and Y axes are not really needed; pointer devices report their location via the x/y members of events regardless. Whether X and Y are present as axes depends on the GDK backend.

IGNORE = 0

the axis is ignored.

X = 1

the axis is used as the x axis.

LAST = 10

a constant equal to the numerically highest axis value.

Y = 2

the axis is used as the y axis.

PRESSURE = 3

the axis is used for pressure information.

XTILT = 4

the axis is used for x tilt information.

YTILT = 5

the axis is used for y tilt information.

WHEEL = 6

the axis is used for wheel information.

DISTANCE = 7

the axis is used for pen/tablet distance information. (Since: 3.22)

ROTATION = 8

the axis is used for pen rotation information. (Since: 3.22)

SLIDER = 9

the axis is used for pen slider information. (Since: 3.22)

class Gdk.ByteOrder(value)

Bases: GObject.GEnum

A set of values describing the possible byte-orders for storing pixel values in memory.

LSB_FIRST = 0

The values are stored with the least-significant byte first. For instance, the 32-bit value 0xffeecc would be stored in memory as 0xcc, 0xee, 0xff, 0x00.

MSB_FIRST = 1

The values are stored with the most-significant byte first. For instance, the 32-bit value 0xffeecc would be stored in memory as 0x00, 0xff, 0xee, 0xcc.

class Gdk.CrossingMode(value)

Bases: GObject.GEnum

Specifies the crossing mode for Gdk.EventCrossing.

NORMAL = 0

crossing because of pointer motion.

GRAB = 1

crossing because a grab is activated.

UNGRAB = 2

crossing because a grab is deactivated.

GTK_GRAB = 3

crossing because a GTK+ grab is activated.

GTK_UNGRAB = 4

crossing because a GTK+ grab is deactivated.

STATE_CHANGED = 5

crossing because a GTK+ widget changed state (e.g. sensitivity).

TOUCH_BEGIN = 6

crossing because a touch sequence has begun, this event is synthetic as the pointer might have not left the window.

TOUCH_END = 7

crossing because a touch sequence has ended, this event is synthetic as the pointer might have not left the window.

DEVICE_SWITCH = 8

crossing because of a device switch (i.e. a mouse taking control of the pointer after a touch device), this event is synthetic as the pointer didn’t leave the window.

class Gdk.CursorType(value)

Bases: GObject.GEnum

Predefined cursors.

Note that these IDs are directly taken from the X cursor font, and many of these cursors are either not useful, or are not available on other platforms.

The recommended way to create cursors is to use Gdk.Cursor.new_from_name().

CURSOR_IS_PIXMAP = -1

type of cursors constructed with Gdk.Cursor.new_from_pixbuf()

BLANK_CURSOR = -2

Blank cursor.

New in version 2.16.

X_CURSOR = 0
BOGOSITY = 10
RIGHTBUTTON = 100
SAILBOAT = 104
SB_DOWN_ARROW = 106
SB_H_DOUBLE_ARROW = 108
SB_LEFT_ARROW = 110
SB_RIGHT_ARROW = 112
SB_UP_ARROW = 114
SB_V_DOUBLE_ARROW = 116
SHUTTLE = 118
BOTTOM_LEFT_CORNER = 12
SIZING = 120
SPIDER = 122
SPRAYCAN = 124
STAR = 126
TARGET = 128
TCROSS = 130
TOP_LEFT_ARROW = 132
TOP_LEFT_CORNER = 134
TOP_RIGHT_CORNER = 136
TOP_SIDE = 138
BOTTOM_RIGHT_CORNER = 14
TOP_TEE = 140
TREK = 142
UL_ANGLE = 144
UMBRELLA = 146
UR_ANGLE = 148
WATCH = 150
XTERM = 152
LAST_CURSOR = 153

last cursor type

BOTTOM_SIDE = 16
BOTTOM_TEE = 18
ARROW = 2
BOX_SPIRAL = 20
CENTER_PTR = 22
CIRCLE = 24
CLOCK = 26
COFFEE_MUG = 28
CROSS = 30
CROSS_REVERSE = 32
CROSSHAIR = 34
DIAMOND_CROSS = 36
DOT = 38
BASED_ARROW_DOWN = 4
DOTBOX = 40
DOUBLE_ARROW = 42
DRAFT_LARGE = 44
DRAFT_SMALL = 46
DRAPED_BOX = 48
EXCHANGE = 50
FLEUR = 52
GOBBLER = 54
GUMBY = 56
HAND1 = 58
BASED_ARROW_UP = 6
HAND2 = 60
HEART = 62
ICON = 64
IRON_CROSS = 66
LEFT_PTR = 68
LEFT_SIDE = 70
LEFT_TEE = 72
LEFTBUTTON = 74
LL_ANGLE = 76
LR_ANGLE = 78
BOAT = 8
MAN = 80
MIDDLEBUTTON = 82
MOUSE = 84
PENCIL = 86
PIRATE = 88
PLUS = 90
QUESTION_ARROW = 92
RIGHT_PTR = 94
RIGHT_SIDE = 96
RIGHT_TEE = 98
class Gdk.DevicePadFeature(value)

Bases: GObject.GEnum

A pad feature.

BUTTON = 0

a button

RING = 1

a ring-shaped interactive area

STRIP = 2

a straight interactive area

class Gdk.DeviceToolType(value)

Bases: GObject.GEnum

Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc.

New in version 3.22.

UNKNOWN = 0

Tool is of an unknown type.

PEN = 1

Tool is a standard tablet stylus.

ERASER = 2

Tool is standard tablet eraser.

BRUSH = 3

Tool is a brush stylus.

PENCIL = 4

Tool is a pencil stylus.

AIRBRUSH = 5

Tool is an airbrush stylus.

MOUSE = 6

Tool is a mouse.

LENS = 7

Tool is a lens cursor.

class Gdk.DeviceType(value)

Bases: GObject.GEnum

Indicates the device type. See ‘above [GdkDeviceManager.description]’ for more information about the meaning of these device types.

MASTER = 0

Device is a master (or virtual) device. There will be an associated focus indicator on the screen.

SLAVE = 1

Device is a slave (or physical) device.

FLOATING = 2

Device is a physical device, currently not attached to any virtual device.

class Gdk.DragCancelReason(value)

Bases: GObject.GEnum

Used in Gdk.DragContext to the reason of a cancelled DND operation.

New in version 3.20.

NO_TARGET = 0

There is no suitable drop target.

USER_CANCELLED = 1

Drag cancelled by the user

ERROR = 2

Unspecified error.

class Gdk.DragProtocol(value)

Bases: GObject.GEnum

Used in Gdk.DragContext to indicate the protocol according to which DND is done.

NONE = 0

no protocol.

MOTIF = 1

The Motif DND protocol. No longer supported

XDND = 2

The Xdnd protocol.

ROOTWIN = 3

An extension to the Xdnd protocol for unclaimed root window drops.

WIN32_DROPFILES = 4

The simple WM_DROPFILES protocol.

OLE2 = 5

The complex OLE2 DND protocol (not implemented).

LOCAL = 6

Intra-application DND.

WAYLAND = 7

Wayland DND protocol.

class Gdk.EventType(value)

Bases: GObject.GEnum

Specifies the type of the event.

Do not confuse these events with the signals that GTK+ widgets emit. Although many of these events result in corresponding signals being emitted, the events are often transformed or filtered along the way.

In some language bindings, the values Gdk.EventType._2BUTTON_PRESS and Gdk.EventType._3BUTTON_PRESS would translate into something syntactically invalid (eg Gdk.EventType.2ButtonPress, where a symbol is not allowed to start with a number). In that case, the aliases Gdk.EventType.DOUBLE_BUTTON_PRESS and Gdk.EventType.TRIPLE_BUTTON_PRESS can be used instead.

NOTHING = -1

a special code to indicate a null event.

DELETE = 0

the window manager has requested that the toplevel window be hidden or destroyed, usually when the user clicks on a special icon in the title bar.

DESTROY = 1

the window has been destroyed.

ENTER_NOTIFY = 10

the pointer has entered the window.

LEAVE_NOTIFY = 11

the pointer has left the window.

FOCUS_CHANGE = 12

the keyboard focus has entered or left the window.

CONFIGURE = 13

the size, position or stacking order of the window has changed. Note that GTK+ discards these events for Gdk.WindowType.CHILD windows.

MAP = 14

the window has been mapped.

UNMAP = 15

the window has been unmapped.

PROPERTY_NOTIFY = 16

a property on the window has been changed or deleted.

SELECTION_CLEAR = 17

the application has lost ownership of a selection.

SELECTION_REQUEST = 18

another application has requested a selection.

SELECTION_NOTIFY = 19

a selection has been received.

EXPOSE = 2

all or part of the window has become visible and needs to be redrawn.

PROXIMITY_IN = 20

an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).

PROXIMITY_OUT = 21

an input device has moved out of contact with a sensing surface.

DRAG_ENTER = 22

the mouse has entered the window while a drag is in progress.

DRAG_LEAVE = 23

the mouse has left the window while a drag is in progress.

DRAG_MOTION = 24

the mouse has moved in the window while a drag is in progress.

DRAG_STATUS = 25

the status of the drag operation initiated by the window has changed.

DROP_START = 26

a drop operation onto the window has started.

DROP_FINISHED = 27

the drop operation initiated by the window has completed.

CLIENT_EVENT = 28

a message has been received from another application.

VISIBILITY_NOTIFY = 29

the window visibility status has changed.

MOTION_NOTIFY = 3

the pointer (usually a mouse) has moved.

SCROLL = 31

the scroll wheel was turned

WINDOW_STATE = 32

the state of a window has changed. See Gdk.WindowState for the possible window states

SETTING = 33

a setting has been modified.

OWNER_CHANGE = 34

the owner of a selection has changed. This event type was added in 2.6

GRAB_BROKEN = 35

a pointer or keyboard grab was broken. This event type was added in 2.8.

DAMAGE = 36

the content of the window has been changed. This event type was added in 2.14.

TOUCH_BEGIN = 37

A new touch event sequence has just started. This event type was added in 3.4.

TOUCH_UPDATE = 38

A touch event sequence has been updated. This event type was added in 3.4.

TOUCH_END = 39

A touch event sequence has finished. This event type was added in 3.4.

BUTTON_PRESS = 4

a mouse button has been pressed.

TOUCH_CANCEL = 40

A touch event sequence has been canceled. This event type was added in 3.4.

TOUCHPAD_SWIPE = 41

A touchpad swipe gesture event, the current state is determined by its phase field. This event type was added in 3.18.

TOUCHPAD_PINCH = 42

A touchpad pinch gesture event, the current state is determined by its phase field. This event type was added in 3.18.

PAD_BUTTON_PRESS = 43

A tablet pad button press event. This event type was added in 3.22.

PAD_BUTTON_RELEASE = 44

A tablet pad button release event. This event type was added in 3.22.

PAD_RING = 45

A tablet pad axis event from a “ring”. This event type was added in 3.22.

PAD_STRIP = 46

A tablet pad axis event from a “strip”. This event type was added in 3.22.

PAD_GROUP_MODE = 47

A tablet pad group mode change. This event type was added in 3.22.

EVENT_LAST = 48

marks the end of the Gdk.EventType enumeration. Added in 2.18

2BUTTON_PRESS = 5
DOUBLE_BUTTON_PRESS = 5

alias for Gdk.EventType._2BUTTON_PRESS, added in 3.6.

_2BUTTON_PRESS = 5

a mouse button has been double-clicked (clicked twice within a short period of time). Note that each click also generates a Gdk.EventType.BUTTON_PRESS event.

3BUTTON_PRESS = 6
TRIPLE_BUTTON_PRESS = 6

alias for Gdk.EventType._3BUTTON_PRESS, added in 3.6.

_3BUTTON_PRESS = 6

a mouse button has been clicked 3 times in a short period of time. Note that each click also generates a Gdk.EventType.BUTTON_PRESS event.

BUTTON_RELEASE = 7

a mouse button has been released.

KEY_PRESS = 8

a key has been pressed.

KEY_RELEASE = 9

a key has been released.

class Gdk.FilterReturn(value)

Bases: GObject.GEnum

Specifies the result of applying a Gdk.FilterFunc to a native event.

CONTINUE = 0

event not handled, continue processing.

TRANSLATE = 1

native event translated into a GDK event and stored in the event structure that was passed in.

REMOVE = 2

event handled, terminate processing.

class Gdk.FullscreenMode(value)

Bases: GObject.GEnum

Indicates which monitor (in a multi-head setup) a window should span over when in fullscreen mode.

New in version 3.8.

CURRENT_MONITOR = 0

Fullscreen on current monitor only.

ALL_MONITORS = 1

Span across all monitors when fullscreen.

class Gdk.GLError(value)

Bases: GObject.GEnum

Error enumeration for Gdk.GLContext.

New in version 3.16.

classmethod quark()[source]
Return type:int
NOT_AVAILABLE = 0

OpenGL support is not available

UNSUPPORTED_FORMAT = 1

The requested visual format is not supported

UNSUPPORTED_PROFILE = 2

The requested profile is not supported

class Gdk.GrabOwnership(value)

Bases: GObject.GEnum

Defines how device grabs interact with other devices.

NONE = 0

All other devices’ events are allowed.

WINDOW = 1

Other devices’ events are blocked for the grab window.

APPLICATION = 2

Other devices’ events are blocked for the whole application.

class Gdk.GrabStatus(value)

Bases: GObject.GEnum

Returned by Gdk.Device.grab(), Gdk.pointer_grab() and Gdk.keyboard_grab() to indicate success or the reason for the failure of the grab attempt.

SUCCESS = 0

the resource was successfully grabbed.

ALREADY_GRABBED = 1

the resource is actively grabbed by another client.

INVALID_TIME = 2

the resource was grabbed more recently than the specified time.

NOT_VIEWABLE = 3

the grab window or the confine_to window are not viewable.

FROZEN = 4

the resource is frozen by an active grab of another client.

FAILED = 5

the grab failed for some other reason.

New in version 3.16.

class Gdk.Gravity(value)

Bases: GObject.GEnum

Defines the reference point of a window and the meaning of coordinates passed to gtk_window_move(). See gtk_window_move() and the “implementation notes” section of the Extended Window Manager Hints specification for more details.

NORTH_WEST = 1

the reference point is at the top left corner.

STATIC = 10

the reference point is at the top left corner of the window itself, ignoring window manager decorations.

NORTH = 2

the reference point is in the middle of the top edge.

NORTH_EAST = 3

the reference point is at the top right corner.

WEST = 4

the reference point is at the middle of the left edge.

CENTER = 5

the reference point is at the center of the window.

EAST = 6

the reference point is at the middle of the right edge.

SOUTH_WEST = 7

the reference point is at the lower left corner.

SOUTH = 8

the reference point is at the middle of the lower edge.

SOUTH_EAST = 9

the reference point is at the lower right corner.

class Gdk.InputMode(value)

Bases: GObject.GEnum

An enumeration that describes the mode of an input device.

DISABLED = 0

the device is disabled and will not report any events.

SCREEN = 1

the device is enabled. The device’s coordinate space maps to the entire screen.

WINDOW = 2

the device is enabled. The device’s coordinate space is mapped to a single window. The manner in which this window is chosen is undefined, but it will typically be the same way in which the focus window for key events is determined.

class Gdk.InputSource(value)

Bases: GObject.GEnum

An enumeration describing the type of an input device in general terms.

MOUSE = 0

the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.)

PEN = 1

the device is a stylus of a graphics tablet or similar device.

ERASER = 2

the device is an eraser. Typically, this would be the other end of a stylus on a graphics tablet.

CURSOR = 3

the device is a graphics tablet “puck” or similar device.

KEYBOARD = 4

the device is a keyboard.

TOUCHSCREEN = 5

the device is a direct-input touch device, such as a touchscreen or tablet. This device type has been added in 3.4.

TOUCHPAD = 6

the device is an indirect touch device, such as a touchpad. This device type has been added in 3.4.

TRACKPOINT = 7

the device is a trackpoint. This device type has been added in 3.22

TABLET_PAD = 8

the device is a “pad”, a collection of buttons, rings and strips found in drawing tablets. This device type has been added in 3.22.

class Gdk.ModifierIntent(value)

Bases: GObject.GEnum

This enum is used with Gdk.Keymap.get_modifier_mask() in order to determine what modifiers the currently used windowing system backend uses for particular purposes. For example, on X11/Windows, the Control key is used for invoking menu shortcuts (accelerators), whereas on Apple computers it’s the Command key (which correspond to Gdk.ModifierType.CONTROL_MASK and Gdk.ModifierType.MOD2_MASK, respectively).

New in version 3.4.

PRIMARY_ACCELERATOR = 0

the primary modifier used to invoke menu accelerators.

CONTEXT_MENU = 1

the modifier used to invoke context menus. Note that mouse button 3 always triggers context menus. When this modifier is not 0, it additionally triggers context menus when used with mouse button 1.

EXTEND_SELECTION = 2

the modifier used to extend selections using modifier-click or modifier-cursor-key

MODIFY_SELECTION = 3

the modifier used to modify selections, which in most cases means toggling the clicked item into or out of the selection.

NO_TEXT_INPUT = 4

when any of these modifiers is pressed, the key event cannot produce a symbol directly. This is meant to be used for input methods, and for use cases like typeahead search.

SHIFT_GROUP = 5

the modifier that switches between keyboard groups (AltGr on X11/Windows and Option/Alt on OS X).

DEFAULT_MOD_MASK = 6

The set of modifier masks accepted as modifiers in accelerators. Needed because Command is mapped to MOD2 on OSX, which is widely used, but on X11 MOD2 is NumLock and using that for a mod key is problematic at best. Ref: https://bugzilla.gnome.org/show_bug.cgi?id=736125.

class Gdk.NotifyType(value)

Bases: GObject.GEnum

Specifies the kind of crossing for Gdk.EventCrossing.

See the X11 protocol specification of LeaveNotify for full details of crossing event generation.

ANCESTOR = 0

the window is entered from an ancestor or left towards an ancestor.

VIRTUAL = 1

the pointer moves between an ancestor and an inferior of the window.

INFERIOR = 2

the window is entered from an inferior or left towards an inferior.

NONLINEAR = 3

the window is entered from or left towards a window which is neither an ancestor nor an inferior.

NONLINEAR_VIRTUAL = 4

the pointer moves between two windows which are not ancestors of each other and the window is part of the ancestor chain between one of these windows and their least common ancestor.

UNKNOWN = 5

an unknown type of enter/leave event occurred.

class Gdk.OwnerChange(value)

Bases: GObject.GEnum

Specifies why a selection ownership was changed.

NEW_OWNER = 0

some other app claimed the ownership

DESTROY = 1

the window was destroyed

CLOSE = 2

the client was closed

class Gdk.PropMode(value)

Bases: GObject.GEnum

Describes how existing data is combined with new data when using gdk_property_change().

REPLACE = 0

the new data replaces the existing data.

PREPEND = 1

the new data is prepended to the existing data.

APPEND = 2

the new data is appended to the existing data.

class Gdk.PropertyState(value)

Bases: GObject.GEnum

Specifies the type of a property change for a Gdk.EventProperty.

NEW_VALUE = 0

the property value was changed.

DELETE = 1

the property was deleted.

class Gdk.ScrollDirection(value)

Bases: GObject.GEnum

Specifies the direction for Gdk.EventScroll.

UP = 0

the window is scrolled up.

DOWN = 1

the window is scrolled down.

LEFT = 2

the window is scrolled to the left.

RIGHT = 3

the window is scrolled to the right.

SMOOTH = 4

the scrolling is determined by the delta values in Gdk.EventScroll. See Gdk.Event.get_scroll_deltas().

New in version 3.4.

class Gdk.SettingAction(value)

Bases: GObject.GEnum

Specifies the kind of modification applied to a setting in a Gdk.EventSetting.

NEW = 0

a setting was added.

CHANGED = 1

a setting was changed.

DELETED = 2

a setting was deleted.

class Gdk.Status(value)

Bases: GObject.GEnum

ERROR = -1
ERROR_PARAM = -2
ERROR_FILE = -3
ERROR_MEM = -4
OK = 0
class Gdk.SubpixelLayout(value)

Bases: GObject.GEnum

This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.

New in version 3.22.

UNKNOWN = 0

The layout is not known

NONE = 1

Not organized in this way

HORIZONTAL_RGB = 2

The layout is horizontal, the order is RGB

HORIZONTAL_BGR = 3

The layout is horizontal, the order is BGR

VERTICAL_RGB = 4

The layout is vertical, the order is RGB

VERTICAL_BGR = 5

The layout is vertical, the order is BGR

class Gdk.TouchpadGesturePhase(value)

Bases: GObject.GEnum

Specifies the current state of a touchpad gesture. All gestures are guaranteed to begin with an event with phase Gdk.TouchpadGesturePhase.BEGIN, followed by 0 or several events with phase Gdk.TouchpadGesturePhase.UPDATE.

A finished gesture may have 2 possible outcomes, an event with phase Gdk.TouchpadGesturePhase.END will be emitted when the gesture is considered successful, this should be used as the hint to perform any permanent changes.

Cancelled gestures may be so for a variety of reasons, due to hardware or the compositor, or due to the gesture recognition layers hinting the gesture did not finish resolutely (eg. a 3rd finger being added during a pinch gesture). In these cases, the last event will report the phase Gdk.TouchpadGesturePhase.CANCEL, this should be used as a hint to undo any visible/permanent changes that were done throughout the progress of the gesture.

See also Gdk.EventTouchpadSwipe and Gdk.EventTouchpadPinch.

BEGIN = 0

The gesture has begun.

UPDATE = 1

The gesture has been updated.

END = 2

The gesture was finished, changes should be permanently applied.

CANCEL = 3

The gesture was cancelled, all changes should be undone.

class Gdk.VisibilityState(value)

Bases: GObject.GEnum

Specifies the visiblity status of a window for a Gdk.EventVisibility.

UNOBSCURED = 0

the window is completely visible.

PARTIAL = 1

the window is partially visible.

FULLY_OBSCURED = 2

the window is not visible at all.

class Gdk.VisualType(value)

Bases: GObject.GEnum

A set of values that describe the manner in which the pixel values for a visual are converted into RGB values for display.

STATIC_GRAY = 0

Each pixel value indexes a grayscale value directly.

GRAYSCALE = 1

Each pixel is an index into a color map that maps pixel values into grayscale values. The color map can be changed by an application.

STATIC_COLOR = 2

Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.

PSEUDO_COLOR = 3

Each pixel is an index into a color map that maps pixel values into rgb values. The color map can be changed by an application.

TRUE_COLOR = 4

Each pixel value directly contains red, green, and blue components. Use Gdk.Visual.get_red_pixel_details(), etc, to obtain information about how the components are assembled into a pixel value.

DIRECT_COLOR = 5

Each pixel value contains red, green, and blue components as for Gdk.VisualType.TRUE_COLOR, but the components are mapped via a color table into the final output table instead of being converted directly.

class Gdk.WindowEdge(value)

Bases: GObject.GEnum

Determines a window edge or corner.

NORTH_WEST = 0

the top left corner.

NORTH = 1

the top edge.

NORTH_EAST = 2

the top right corner.

WEST = 3

the left edge.

EAST = 4

the right edge.

SOUTH_WEST = 5

the lower left corner.

SOUTH = 6

the lower edge.

SOUTH_EAST = 7

the lower right corner.

class Gdk.WindowType(value)

Bases: GObject.GEnum

Describes the kind of window.

ROOT = 0

root window; this window has no parent, covers the entire screen, and is created by the window system

TOPLEVEL = 1

toplevel window (used to implement #GtkWindow)

CHILD = 2

child window (used to implement e.g. #GtkEntry)

TEMP = 3

override redirect temporary window (used to implement #GtkMenu)

FOREIGN = 4

foreign window (see gdk_window_foreign_new())

OFFSCREEN = 5

offscreen window (see Offscreen Windows).

New in version 2.18.

SUBSURFACE = 6

subsurface-based window; This window is visually tied to a toplevel, and is moved/stacked with it. Currently this window type is only implemented in Wayland.

New in version 3.14.

class Gdk.WindowTypeHint(value)

Bases: GObject.GEnum

These are hints for the window manager that indicate what type of function the window has. The window manager can use this when determining decoration and behaviour of the window. The hint must be set before mapping the window.

See the Extended Window Manager Hints specification for more details about window types.

NORMAL = 0

Normal toplevel window.

DIALOG = 1

Dialog window.

TOOLTIP = 10

A tooltip.

NOTIFICATION = 11

A notification - typically a “bubble” that belongs to a status icon.

COMBO = 12

A popup from a combo box.

DND = 13

A window that is used to implement a DND cursor.

MENU = 2

Window used to implement a menu; GTK+ uses this hint only for torn-off menus, see #GtkTearoffMenuItem.

TOOLBAR = 3

Window used to implement toolbars.

SPLASHSCREEN = 4

Window used to display a splash screen during application startup.

UTILITY = 5

Utility windows which are not detached toolbars or dialogs.

DOCK = 6

Used for creating dock or panel windows.

DESKTOP = 7

Used for creating the desktop background window.

DROPDOWN_MENU = 8

A menu that belongs to a menubar.

POPUP_MENU = 9

A menu that does not belong to a menubar, e.g. a context menu.

class Gdk.WindowWindowClass(value)

Bases: GObject.GEnum

Gdk.WindowWindowClass.INPUT_OUTPUT windows are the standard kind of window you might expect. Such windows receive events and are also displayed on screen. Gdk.WindowWindowClass.INPUT_ONLY windows are invisible; they are usually placed above other windows in order to trap or filter the events. You can’t draw on Gdk.WindowWindowClass.INPUT_ONLY windows.

INPUT_OUTPUT = 0

window for graphics and events

INPUT_ONLY = 1

window for events only