gtkmm: gdkmm Enums and Flags

Enumerations

enum  Gdk::InputSource {

  Gdk::InputSource::MOUSE,

  Gdk::InputSource::PEN,

  Gdk::InputSource::KEYBOARD,

  Gdk::InputSource::TOUCHSCREEN,

  Gdk::InputSource::TOUCHPAD,

  Gdk::InputSource::TRACKPOINT,

  Gdk::InputSource::TABLET_PAD

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

 
enum  Gdk::DevicePad::Feature {

  Gdk::DevicePad::Feature::BUTTON,

  Gdk::DevicePad::Feature::RING,

  Gdk::DevicePad::Feature::STRIP

}
 A pad feature. More...

 
enum  Gdk::DeviceTool::Type {

  Gdk::DeviceTool::Type::UNKNOWN,

  Gdk::DeviceTool::Type::PEN,

  Gdk::DeviceTool::Type::ERASER,

  Gdk::DeviceTool::Type::BRUSH,

  Gdk::DeviceTool::Type::PENCIL,

  Gdk::DeviceTool::Type::AIRBRUSH,

  Gdk::DeviceTool::Type::MOUSE,

  Gdk::DeviceTool::Type::LENS

}
 Indicates the specific type of tool being used being a tablet. More...

 
enum  Gdk::DragCancelReason {

  Gdk::DragCancelReason::NO_TARGET,

  Gdk::DragCancelReason::USER_CANCELLED,

  Gdk::DragCancelReason::ERROR

}
 Used in Gdk::Drag to the reason of a cancelled DND operation. More...

 
enum  Gdk::AxisFlags {

  Gdk::AxisFlags::X = 0x2,

  Gdk::AxisFlags::Y = 0x4,

  Gdk::AxisFlags::DELTA_X = 0x8,

  Gdk::AxisFlags::DELTA_Y = 0x10,

  Gdk::AxisFlags::PRESSURE = 0x20,

  Gdk::AxisFlags::XTILT = 0x40,

  Gdk::AxisFlags::YTILT = 0x80,

  Gdk::AxisFlags::WHEEL = 0x100,

  Gdk::AxisFlags::DISTANCE = 0x200,

  Gdk::AxisFlags::ROTATION = 0x400,

  Gdk::AxisFlags::SLIDER = 0x800

}
 Flags describing the current capabilities of a device/tool. More...

 
enum  Gdk::AxisUse {

  Gdk::AxisUse::IGNORE,

  Gdk::AxisUse::X,

  Gdk::AxisUse::Y,

  Gdk::AxisUse::DELTA_X,

  Gdk::AxisUse::DELTA_Y,

  Gdk::AxisUse::PRESSURE,

  Gdk::AxisUse::XTILT,

  Gdk::AxisUse::YTILT,

  Gdk::AxisUse::WHEEL,

  Gdk::AxisUse::DISTANCE,

  Gdk::AxisUse::ROTATION,

  Gdk::AxisUse::SLIDER,

  Gdk::AxisUse::LAST

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

 
enum  Gdk::CrossingMode {

  Gdk::CrossingMode::NORMAL,

  Gdk::CrossingMode::GRAB,

  Gdk::CrossingMode::UNGRAB,

  Gdk::CrossingMode::GTK_GRAB,

  Gdk::CrossingMode::GTK_UNGRAB,

  Gdk::CrossingMode::STATE_CHANGED,

  Gdk::CrossingMode::TOUCH_BEGIN,

  Gdk::CrossingMode::TOUCH_END,

  Gdk::CrossingMode::DEVICE_SWITCH

}
 Specifies the crossing mode for enter and leave events. More...

 
enum  Gdk::DragAction {

  Gdk::DragAction::COPY = 1 << 0,

  Gdk::DragAction::MOVE = 1 << 1,

  Gdk::DragAction::LINK = 1 << 2,

  Gdk::DragAction::ASK = 1 << 3

}
 Used in Gdk::Drop and Gdk::Drag to indicate the actions that the destination can and should do with the dropped data. More...

 
enum  Pango::Gravity {

  Pango::Gravity::SOUTH,

  Pango::Gravity::EAST,

  Pango::Gravity::NORTH,

  Pango::Gravity::WEST,

  Pango::Gravity::AUTO

}
 Defines the reference point of a surface and is used in Gdk::PopupLayout. More...

 
enum  Gdk::ModifierType {

  Gdk::ModifierType::SHIFT_MASK = 1 << 0,

  Gdk::ModifierType::LOCK_MASK = 1 << 1,

  Gdk::ModifierType::CONTROL_MASK = 1 << 2,

  Gdk::ModifierType::ALT_MASK = 1 << 3,

  Gdk::ModifierType::BUTTON1_MASK = 1 << 8,

  Gdk::ModifierType::BUTTON2_MASK = 1 << 9,

  Gdk::ModifierType::BUTTON3_MASK = 1 << 10,

  Gdk::ModifierType::BUTTON4_MASK = 1 << 11,

  Gdk::ModifierType::BUTTON5_MASK = 1 << 12,

  Gdk::ModifierType::SUPER_MASK = 1 << 26,

  Gdk::ModifierType::HYPER_MASK = 1 << 27,

  Gdk::ModifierType::META_MASK = 1 << 28

}
 A set of bit-flags to indicate the state of modifier keys and mouse buttons in various event types. More...

 
enum  Gdk::NotifyType {

  Gdk::NotifyType::ANCESTOR,

  Gdk::NotifyType::VIRTUAL,

  Gdk::NotifyType::INFERIOR,

  Gdk::NotifyType::NONLINEAR,

  Gdk::NotifyType::NONLINEAR_VIRTUAL,

  Gdk::NotifyType::UNKNOWN

}
 Specifies the kind of crossing for enter and leave events. More...

 
enum  Gdk::ScrollDirection {

  Gdk::ScrollDirection::UP,

  Gdk::ScrollDirection::DOWN,

  Gdk::ScrollDirection::LEFT,

  Gdk::ScrollDirection::RIGHT,

  Gdk::ScrollDirection::SMOOTH

}
 Specifies the direction for scroll events. More...

 
enum  Gdk::TouchpadGesturePhase {

  Gdk::TouchpadGesturePhase::BEGIN,

  Gdk::TouchpadGesturePhase::UPDATE,

  Gdk::TouchpadGesturePhase::END,

  Gdk::TouchpadGesturePhase::CANCEL

}
 Specifies the current state of a touchpad gesture. More...

 
enum  Gdk::KeyMatch {

  Gdk::KeyMatch::NONE,

  Gdk::KeyMatch::PARTIAL,

  Gdk::KeyMatch::EXACT

}
 The possible return values from gdk_key_event_matches() describe how well an event matches a given keyval and modifiers. More...

 
enum  Gdk::Event::Type {

  Gdk::Event::Type::DELETE,

  Gdk::Event::Type::MOTION_NOTIFY,

  Gdk::Event::Type::BUTTON_PRESS,

  Gdk::Event::Type::BUTTON_RELEASE,

  Gdk::Event::Type::KEY_PRESS,

  Gdk::Event::Type::KEY_RELEASE,

  Gdk::Event::Type::ENTER_NOTIFY,

  Gdk::Event::Type::LEAVE_NOTIFY,

  Gdk::Event::Type::FOCUS_CHANGE,

  Gdk::Event::Type::PROXIMITY_IN,

  Gdk::Event::Type::PROXIMITY_OUT,

  Gdk::Event::Type::DRAG_ENTER,

  Gdk::Event::Type::DRAG_LEAVE,

  Gdk::Event::Type::DRAG_MOTION,

  Gdk::Event::Type::DROP_START,

  Gdk::Event::Type::SCROLL,

  Gdk::Event::Type::GRAB_BROKEN,

  Gdk::Event::Type::TOUCH_BEGIN,

  Gdk::Event::Type::TOUCH_UPDATE,

  Gdk::Event::Type::TOUCH_END,

  Gdk::Event::Type::TOUCH_CANCEL,

  Gdk::Event::Type::TOUCHPAD_SWIPE,

  Gdk::Event::Type::TOUCHPAD_PINCH,

  Gdk::Event::Type::PAD_BUTTON_PRESS,

  Gdk::Event::Type::PAD_BUTTON_RELEASE,

  Gdk::Event::Type::PAD_RING,

  Gdk::Event::Type::PAD_STRIP,

  Gdk::Event::Type::PAD_GROUP_MODE,

  Gdk::Event::Type::EVENT_LAST

}
 Specifies the type of the event. More...

 
enum  Gdk::FrameClock::Phase {

  Gdk::FrameClock::Phase::NONE = 0x0,

  Gdk::FrameClock::Phase::FLUSH_EVENTS = 1 << 0,

  Gdk::FrameClock::Phase::BEFORE_PAINT = 1 << 1,

  Gdk::FrameClock::Phase::UPDATE = 1 << 2,

  Gdk::FrameClock::Phase::LAYOUT = 1 << 3,

  Gdk::FrameClock::Phase::PAINT = 1 << 4,

  Gdk::FrameClock::Phase::RESUME_EVENTS = 1 << 5,

  Gdk::FrameClock::Phase::AFTER_PAINT = 1 << 6

}
 Gdk::FrameClock::Phase is used to represent the different paint clock phases that can be requested. More...

 
enum  Gdk::MemoryTexture::Format {

  Gdk::MemoryTexture::Format::B8G8R8A8_PREMULTIPLIED,

  Gdk::MemoryTexture::Format::A8R8G8B8_PREMULTIPLIED,

  Gdk::MemoryTexture::Format::R8G8B8A8_PREMULTIPLIED,

  Gdk::MemoryTexture::Format::B8G8R8A8,

  Gdk::MemoryTexture::Format::A8R8G8B8,

  Gdk::MemoryTexture::Format::R8G8B8A8,

  Gdk::MemoryTexture::Format::A8B8G8R8,

  Gdk::MemoryTexture::Format::R8G8B8,

  Gdk::MemoryTexture::Format::B8G8R8,

  Gdk::MemoryTexture::Format::N_FORMATS

}
 Gdk::MemoryFormat describes a format that bytes can have in memory. More...

 
enum  Gdk::SubpixelLayout {

  Gdk::SubpixelLayout::UNKNOWN,

  Gdk::SubpixelLayout::NONE,

  Gdk::SubpixelLayout::HORIZONTAL_RGB,

  Gdk::SubpixelLayout::HORIZONTAL_BGR,

  Gdk::SubpixelLayout::VERTICAL_RGB,

  Gdk::SubpixelLayout::VERTICAL_BGR

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

 
enum  Gdk::Paintable::Flags {

  Gdk::Paintable::Flags::STATIC_SIZE = 1 << 0,

  Gdk::Paintable::Flags::STATIC_CONTENTS = 1 << 1

}
 Flags about this object. More...

 
enum  Gdk::Colorspace { Gdk::Colorspace::RGB }
 This enumeration defines the color spaces that are supported by the gdk-pixbuf library. More...

 
enum  Gdk::InterpType {

  Gdk::InterpType::NEAREST,

  Gdk::InterpType::TILES,

  Gdk::InterpType::BILINEAR,

  Gdk::InterpType::HYPER

}
 This enumeration describes the different interpolation modes that can be used with the scaling functions. More...

 
enum  Gdk::Pixbuf::Rotation {

  Gdk::Pixbuf::Rotation::NONE = 0,

  Gdk::Pixbuf::Rotation::COUNTERCLOCKWISE = 90,

  Gdk::Pixbuf::Rotation::UPSIDEDOWN = 180,

  Gdk::Pixbuf::Rotation::CLOCKWISE = 270

}
 The possible rotations which can be passed to Gdk::Pixbuf::rotate_simple(). More...

 
enum  Gdk::AnchorHints {

  Gdk::AnchorHints::FLIP_X = 1 << 0,

  Gdk::AnchorHints::FLIP_Y = 1 << 1,

  Gdk::AnchorHints::SLIDE_X = 1 << 2,

  Gdk::AnchorHints::SLIDE_Y = 1 << 3,

  Gdk::AnchorHints::RESIZE_X = 1 << 4,

  Gdk::AnchorHints::RESIZE_Y = 1 << 5,

  Gdk::AnchorHints::FLIP = 0x3,

  Gdk::AnchorHints::SLIDE = 0xC,

  Gdk::AnchorHints::RESIZE = 0x30

}
 Positioning hints for aligning a surface relative to a rectangle. More...

 
enum  Gdk::Seat::Capabilities {

  Gdk::Seat::Capabilities::NONE = 0x0,

  Gdk::Seat::Capabilities::POINTER = 1 << 0,

  Gdk::Seat::Capabilities::TOUCH = 1 << 1,

  Gdk::Seat::Capabilities::TABLET_STYLUS = 1 << 2,

  Gdk::Seat::Capabilities::KEYBOARD = 1 << 3,

  Gdk::Seat::Capabilities::TABLET_PAD = 1 << 4,

  Gdk::Seat::Capabilities::ALL_POINTING = 0x7,

  Gdk::Seat::Capabilities::ALL = 0xF

}
 Flags describing the seat capabilities. More...

 
enum  Gdk::SurfaceEdge {

  Gdk::SurfaceEdge::NORTH_WEST,

  Gdk::SurfaceEdge::NORTH,

  Gdk::SurfaceEdge::NORTH_EAST,

  Gdk::SurfaceEdge::WEST,

  Gdk::SurfaceEdge::EAST,

  Gdk::SurfaceEdge::SOUTH_WEST,

  Gdk::SurfaceEdge::SOUTH,

  Gdk::SurfaceEdge::SOUTH_EAST

}
 Determines a surface edge or corner. More...

 
enum  Gdk::FullscreenMode {

  Gdk::FullscreenMode::ON_CURRENT_MONITOR,

  Gdk::FullscreenMode::ON_ALL_MONITORS

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

 
enum  Gdk::Toplevel::State {

  Gdk::Toplevel::State::MINIMIZED = 1 << 0,

  Gdk::Toplevel::State::MAXIMIZED = 1 << 1,

  Gdk::Toplevel::State::STICKY = 1 << 2,

  Gdk::Toplevel::State::FULLSCREEN = 1 << 3,

  Gdk::Toplevel::State::ABOVE = 1 << 4,

  Gdk::Toplevel::State::BELOW = 1 << 5,

  Gdk::Toplevel::State::FOCUSED = 1 << 6,

  Gdk::Toplevel::State::TILED = 1 << 7,

  Gdk::Toplevel::State::TOP_TILED = 1 << 8,

  Gdk::Toplevel::State::TOP_RESIZABLE = 1 << 9,

  Gdk::Toplevel::State::RIGHT_TILED = 1 << 10,

  Gdk::Toplevel::State::RIGHT_RESIZABLE = 1 << 11,

  Gdk::Toplevel::State::BOTTOM_TILED = 1 << 12,

  Gdk::Toplevel::State::BOTTOM_RESIZABLE = 1 << 13,

  Gdk::Toplevel::State::LEFT_TILED = 1 << 14,

  Gdk::Toplevel::State::LEFT_RESIZABLE = 1 << 15

}
 Specifies the state of a toplevel surface. More...

 

Functions

AxisFlags Gdk::operator| (AxisFlags lhs, AxisFlags rhs)
 
AxisFlags Gdk::operator& (AxisFlags lhs, AxisFlags rhs)
 
AxisFlags Gdk::operator^ (AxisFlags lhs, AxisFlags rhs)
 
AxisFlags Gdk::operator~ (AxisFlags flags)
 
AxisFlags& Gdk::operator|= (AxisFlags& lhs, AxisFlags rhs)
 
AxisFlags& Gdk::operator&= (AxisFlags& lhs, AxisFlags rhs)
 
AxisFlags& Gdk::operator^= (AxisFlags& lhs, AxisFlags rhs)
 
DragAction Gdk::operator| (DragAction lhs, DragAction rhs)
 
DragAction Gdk::operator& (DragAction lhs, DragAction rhs)
 
DragAction Gdk::operator^ (DragAction lhs, DragAction rhs)
 
DragAction Gdk::operator~ (DragAction flags)
 
DragAction& Gdk::operator|= (DragAction& lhs, DragAction rhs)
 
DragAction& Gdk::operator&= (DragAction& lhs, DragAction rhs)
 
DragAction& Gdk::operator^= (DragAction& lhs, DragAction rhs)
 
ModifierType Gdk::operator| (ModifierType lhs, ModifierType rhs)
 
ModifierType Gdk::operator& (ModifierType lhs, ModifierType rhs)
 
ModifierType Gdk::operator^ (ModifierType lhs, ModifierType rhs)
 
ModifierType Gdk::operator~ (ModifierType flags)
 
ModifierType& Gdk::operator|= (ModifierType& lhs, ModifierType rhs)
 
ModifierType& Gdk::operator&= (ModifierType& lhs, ModifierType rhs)
 
ModifierType& Gdk::operator^= (ModifierType& lhs, ModifierType rhs)
 
FrameClock::Phase Gdk::operator| (FrameClock::Phase lhs, FrameClock::Phase rhs)
 
FrameClock::Phase Gdk::operator& (FrameClock::Phase lhs, FrameClock::Phase rhs)
 
FrameClock::Phase Gdk::operator^ (FrameClock::Phase lhs, FrameClock::Phase rhs)
 
FrameClock::Phase Gdk::operator~ (FrameClock::Phase flags)
 
FrameClock::Phase& Gdk::operator|= (FrameClock::Phase& lhs, FrameClock::Phase rhs)
 
FrameClock::Phase& Gdk::operator&= (FrameClock::Phase& lhs, FrameClock::Phase rhs)
 
FrameClock::Phase& Gdk::operator^= (FrameClock::Phase& lhs, FrameClock::Phase rhs)
 
Paintable::Flags Gdk::operator| (Paintable::Flags lhs, Paintable::Flags rhs)
 
Paintable::Flags Gdk::operator& (Paintable::Flags lhs, Paintable::Flags rhs)
 
Paintable::Flags Gdk::operator^ (Paintable::Flags lhs, Paintable::Flags rhs)
 
Paintable::Flags Gdk::operator~ (Paintable::Flags flags)
 
Paintable::FlagsGdk::operator|= (Paintable::Flags& lhs, Paintable::Flags rhs)
 
Paintable::FlagsGdk::operator&= (Paintable::Flags& lhs, Paintable::Flags rhs)
 
Paintable::FlagsGdk::operator^= (Paintable::Flags& lhs, Paintable::Flags rhs)
 
AnchorHints Gdk::operator| (AnchorHints lhs, AnchorHints rhs)
 
AnchorHints Gdk::operator& (AnchorHints lhs, AnchorHints rhs)
 
AnchorHints Gdk::operator^ (AnchorHints lhs, AnchorHints rhs)
 
AnchorHints Gdk::operator~ (AnchorHints flags)
 
AnchorHints& Gdk::operator|= (AnchorHints& lhs, AnchorHints rhs)
 
AnchorHints& Gdk::operator&= (AnchorHints& lhs, AnchorHints rhs)
 
AnchorHints& Gdk::operator^= (AnchorHints& lhs, AnchorHints rhs)
 
Seat::Capabilities Gdk::operator| (Seat::Capabilities lhs, Seat::Capabilities rhs)
 
Seat::Capabilities Gdk::operator& (Seat::Capabilities lhs, Seat::Capabilities rhs)
 
Seat::Capabilities Gdk::operator^ (Seat::Capabilities lhs, Seat::Capabilities rhs)
 
Seat::Capabilities Gdk::operator~ (Seat::Capabilities flags)
 
Seat::Capabilities& Gdk::operator|= (Seat::Capabilities& lhs, Seat::Capabilities rhs)
 
Seat::Capabilities& Gdk::operator&= (Seat::Capabilities& lhs, Seat::Capabilities rhs)
 
Seat::Capabilities& Gdk::operator^= (Seat::Capabilities& lhs, Seat::Capabilities rhs)
 
Toplevel::State Gdk::operator| (Toplevel::State lhs, Toplevel::State rhs)
 
Toplevel::State Gdk::operator& (Toplevel::State lhs, Toplevel::State rhs)
 
Toplevel::State Gdk::operator^ (Toplevel::State lhs, Toplevel::State rhs)
 
Toplevel::State Gdk::operator~ (Toplevel::State flags)
 
Toplevel::State& Gdk::operator|= (Toplevel::State& lhs, Toplevel::State rhs)
 
Toplevel::State& Gdk::operator&= (Toplevel::State& lhs, Toplevel::State rhs)
 
Toplevel::State& Gdk::operator^= (Toplevel::State& lhs, Toplevel::State rhs)
 

Detailed Description

Enumeration Type Documentation

enum Gdk::AnchorHints
strong

Positioning hints for aligning a surface relative to a rectangle.

These hints determine how the surface should be positioned in the case that the surface would fall off-screen if placed in its ideal position.

For example, Gdk::AnchorHints::FLIP_X will replace Gdk::Gravity::NORTH_WEST with Gdk::Gravity::NORTH_EAST and vice versa if the surface extends beyond the left or right edges of the monitor.

If Gdk::AnchorHints::SLIDE_X is set, the surface can be shifted horizontally to fit on-screen. If Gdk::AnchorHints::RESIZE_X is set, the surface can be shrunken horizontally to fit.

In general, when multiple flags are set, flipping should take precedence over sliding, which should take precedence over resizing.

Bitwise operators:
AnchorHints operator|(AnchorHints, AnchorHints)

AnchorHints operator&(AnchorHints, AnchorHints)

AnchorHints operator^(AnchorHints, AnchorHints)

AnchorHints operator~(AnchorHints)

AnchorHints& operator|=(AnchorHints&, AnchorHints)

AnchorHints& operator&=(AnchorHints&, AnchorHints)

AnchorHints& operator^=(AnchorHints&, AnchorHints)

Enumerator
FLIP_X 

Allow flipping anchors horizontally.

FLIP_Y 

Allow flipping anchors vertically.

SLIDE_X 

Allow sliding surface horizontally.

SLIDE_Y 

Allow sliding surface vertically.

RESIZE_X 

Allow resizing surface horizontally.

RESIZE_Y 

Allow resizing surface vertically.

FLIP 

Allow flipping anchors on both axes.

SLIDE 

Allow sliding surface on both axes.

RESIZE 

Allow resizing surface on both axes.

enum Gdk::AxisFlags
strong

Flags describing the current capabilities of a device/tool.

Bitwise operators:
AxisFlags operator|(AxisFlags, AxisFlags)

AxisFlags operator&(AxisFlags, AxisFlags)

AxisFlags operator^(AxisFlags, AxisFlags)

AxisFlags operator~(AxisFlags)

AxisFlags& operator|=(AxisFlags&, AxisFlags)

AxisFlags& operator&=(AxisFlags&, AxisFlags)

AxisFlags& operator^=(AxisFlags&, AxisFlags)

Enumerator

X axis is present.

The axis is used as the x axis.

Y axis is present.

The axis is used as the y axis.

DELTA_X 

Scroll X delta axis is present.

The axis is used as the scroll x delta.

DELTA_Y 

Scroll Y delta axis is present.

The axis is used as the scroll y delta.

PRESSURE 

Pressure axis is present.

The axis is used for pressure information.

XTILT 

X tilt axis is present.

The axis is used for x tilt information.

YTILT 

Y tilt axis is present.

The axis is used for y tilt information.

WHEEL 

Wheel axis is present.

The axis is used for wheel information.

DISTANCE 

Distance axis is present.

The axis is used for pen/tablet distance information.

ROTATION 

Z-axis rotation is present.

The axis is used for pen rotation information.

SLIDER 

Slider axis is present.

The axis is used for pen slider information.

enum Gdk::AxisUse
strong

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.

Enumerator
IGNORE 

The axis is ignored.

DELTA_X 
DELTA_Y 
PRESSURE 
XTILT 
YTILT 
WHEEL 
DISTANCE 
ROTATION 
SLIDER 
LAST 

A constant equal to the numerically highest axis value.

Flags describing the seat capabilities.

Bitwise operators:
Seat::Capabilities operator|(Seat::Capabilities, Seat::Capabilities)

Seat::Capabilities operator&(Seat::Capabilities, Seat::Capabilities)

Seat::Capabilities operator^(Seat::Capabilities, Seat::Capabilities)

Seat::Capabilities operator~(Seat::Capabilities)

Seat::Capabilities& operator|=(Seat::Capabilities&, Seat::Capabilities)

Seat::Capabilities& operator&=(Seat::Capabilities&, Seat::Capabilities)

Seat::Capabilities& operator^=(Seat::Capabilities&, Seat::Capabilities)

Enumerator
NONE 

No input capabilities.

POINTER 

The seat has a pointer (e.g.

mouse).

TOUCH 

The seat has touchscreen(s) attached.

TABLET_STYLUS 

The seat has drawing tablet(s) attached.

KEYBOARD 

The seat has keyboard(s) attached.

TABLET_PAD 

The seat has drawing tablet pad(s) attached.

ALL_POINTING 

The union of all pointing capabilities.

ALL 

The union of all capabilities.

enum Gdk::Colorspace
strong

This enumeration defines the color spaces that are supported by the gdk-pixbuf library.

Currently only RGB is supported.

Enumerator
RGB 

Indicates a red/green/blue additive color space.

enum Gdk::CrossingMode
strong

Specifies the crossing mode for enter and leave events.

Enumerator
NORMAL 

Crossing because of pointer motion.

GRAB 

Crossing because a grab is activated.

UNGRAB 

Crossing because a grab is deactivated.

GTK_GRAB 

Crossing because a GTK grab is activated.

GTK_UNGRAB 

Crossing because a GTK grab is deactivated.

STATE_CHANGED 

Crossing because a GTK widget changed state (e.g.

sensitivity).

TOUCH_BEGIN 

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

TOUCH_END 

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

DEVICE_SWITCH 

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 surface.

enum Gdk::DragAction
strong

Used in Gdk::Drop and Gdk::Drag to indicate the actions that the destination can and should do with the dropped data.

Bitwise operators:
DragAction operator|(DragAction, DragAction)

DragAction operator&(DragAction, DragAction)

DragAction operator^(DragAction, DragAction)

DragAction operator~(DragAction)

DragAction& operator|=(DragAction&, DragAction)

DragAction& operator&=(DragAction&, DragAction)

DragAction& operator^=(DragAction&, DragAction)

Enumerator
COPY 

Copy the data.

MOVE 

Move the data, i.e.

first copy it, then delete it from the source using the DELETE target of the X selection protocol.

LINK 

Add a link to the data.

Note that this is only useful if source and destination agree on what it means, and is not supported on all platforms.

ASK 

Ask the user what to do with the data.

enum Gdk::DragCancelReason
strong

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

Enumerator
NO_TARGET 

There is no suitable drop target.

USER_CANCELLED 

Drag cancelled by the user.

ERROR 

Unspecified error.

A pad feature.

Enumerator
BUTTON 

A button.

RING 

A ring-shaped interactive area.

STRIP 

A straight interactive area.

Gdk::MemoryFormat describes a format that bytes can have in memory.

It describes formats by listing the contents of the memory passed to it. So GDK_MEMORY_A8R8G8B8 will be 1 byte (8 bits) of alpha, followed by a byte each of red, green and blue. It is not endian-dependent, so CAIRO_FORMAT_ARGB32 is represented by different Gdk::MemoryFormats on architectures with different endiannesses.

Its naming is modelled after VkFormat (see https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.htmlVk::Format for details).

Enumerator
B8G8R8A8_PREMULTIPLIED 

4 bytes; for blue, green, red, alpha.

The color values are premultiplied with the alpha value.

A8R8G8B8_PREMULTIPLIED 

4 bytes; for alpha, red, green, blue.

The color values are premultiplied with the alpha value.

R8G8B8A8_PREMULTIPLIED 

4 bytes; for red, green, blue, alpha The color values are premultiplied with the alpha value.

B8G8R8A8 

4 bytes; for blue, green, red, alpha.

A8R8G8B8 

4 bytes; for alpha, red, green, blue.

R8G8B8A8 

4 bytes; for red, green, blue, alpha.

A8B8G8R8 

4 bytes; for alpha, blue, green, red.

R8G8B8 

3 bytes; for red, green, blue.

The data is opaque.

B8G8R8 

3 bytes; for blue, green, red.

The data is opaque.

N_FORMATS 

The number of formats.

This value will change as more formats get added, so do not rely on its concrete integer.

enum Gdk::FullscreenMode
strong

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

Enumerator
ON_CURRENT_MONITOR 

Fullscreen on current monitor only.

ON_ALL_MONITORS 

Span across all monitors when fullscreen.

enum Gdk::InputSource
strong

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

Enumerator
MOUSE 

The device is a mouse.

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

PEN 

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

KEYBOARD 

The device is a keyboard.

TOUCHSCREEN 

The device is a direct-input touch device, such as a touchscreen or tablet.

TOUCHPAD 

The device is an indirect touch device, such as a touchpad.

TRACKPOINT 

The device is a trackpoint.

TABLET_PAD 

The device is a "pad", a collection of buttons, rings and strips found in drawing tablets.

enum Gdk::InterpType
strong

This enumeration describes the different interpolation modes that can be used with the scaling functions.

GDK_INTERP_NEAREST is the fastest scaling method, but has horrible quality when scaling down. GDK_INTERP_BILINEAR is the best choice if you aren't sure what to choose, it has a good speed/quality balance.

Note: Cubic filtering is missing from the list; hyperbolic interpolation is just as fast and results in higher quality.

Enumerator
NEAREST 

Nearest neighbor sampling; this is the fastest and lowest quality mode.

Quality is normally unacceptable when scaling down, but may be OK when scaling up.

TILES 

This is an accurate simulation of the PostScript image operator without any interpolation enabled.

Each pixel is rendered as a tiny parallelogram of solid color, the edges of which are implemented with antialiasing. It resembles nearest neighbor for enlargement, and bilinear for reduction.

BILINEAR 

Best quality/speed balance; use this mode by default.

Bilinear interpolation. For enlargement, it is equivalent to point-sampling the ideal bilinear-interpolated image. For reduction, it is equivalent to laying down small tiles and integrating over the coverage area.

HYPER 

This is the slowest and highest quality reconstruction function.

It is derived from the hyperbolic filters in Wolberg's "Digital Image Warping", and is formally defined as the hyperbolic-filter sampling the ideal hyperbolic-filter interpolated image (the filter is designed to be idempotent for 1:1 pixel mapping). Deprecated: this interpolation filter is deprecated, as in reality it has a lower quality than the GDK_INTERP_BILINEAR filter (Since: 2.38).

enum Gdk::KeyMatch
strong

The possible return values from gdk_key_event_matches() describe how well an event matches a given keyval and modifiers.

Enumerator
NONE 

The key event does not match.

Not organized in this way.

PARTIAL 

The key event matches if keyboard state (specifically, the currently active group) is ignored.

EXACT 

The key event matches.

enum Gdk::ModifierType
strong

A set of bit-flags 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.

Note that GDK may add internal values to events which include values outside of this enumeration. Your code should preserve and ignore them. You can use Gdk::ModifierType::MODIFIER_MASK to remove all private values.

Bitwise operators:
ModifierType operator|(ModifierType, ModifierType)

ModifierType operator&(ModifierType, ModifierType)

ModifierType operator^(ModifierType, ModifierType)

ModifierType operator~(ModifierType)

ModifierType& operator|=(ModifierType&, ModifierType)

ModifierType& operator&=(ModifierType&, ModifierType)

ModifierType& operator^=(ModifierType&, ModifierType)

Enumerator
SHIFT_MASK 

The Shift key.

LOCK_MASK 

A Lock key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock).

CONTROL_MASK 

The Control key.

ALT_MASK 

The fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key).

BUTTON1_MASK 

The first mouse button.

BUTTON2_MASK 

The second mouse button.

BUTTON3_MASK 

The third mouse button.

BUTTON4_MASK 

The fourth mouse button.

BUTTON5_MASK 

The fifth mouse button.

SUPER_MASK 

The Super modifier.

HYPER_MASK 

The Hyper modifier.

META_MASK 

The Meta modifier.

enum Gdk::NotifyType
strong

Specifies the kind of crossing for enter and leave events.

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

Enumerator
ANCESTOR 

The surface is entered from an ancestor or left towards an ancestor.

VIRTUAL 

The pointer moves between an ancestor and an inferior of the surface.

INFERIOR 

The surface is entered from an inferior or left towards an inferior.

NONLINEAR 

The surface is entered from or left towards a surface which is neither an ancestor nor an inferior.

NONLINEAR_VIRTUAL 

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

UNKNOWN 

An unknown type of enter/leave event occurred.

The layout is not known.

Gdk::FrameClock::Phase is used to represent the different paint clock phases that can be requested.

The elements of the enumeration correspond to the signals of Gdk::FrameClock.

Bitwise operators:
FrameClock::Phase operator|(FrameClock::Phase, FrameClock::Phase)

FrameClock::Phase operator&(FrameClock::Phase, FrameClock::Phase)

FrameClock::Phase operator^(FrameClock::Phase, FrameClock::Phase)

FrameClock::Phase operator~(FrameClock::Phase)

FrameClock::Phase& operator|=(FrameClock::Phase&, FrameClock::Phase)

FrameClock::Phase& operator&=(FrameClock::Phase&, FrameClock::Phase)

FrameClock::Phase& operator^=(FrameClock::Phase&, FrameClock::Phase)

Enumerator
NONE 

No phase.

FLUSH_EVENTS 

Corresponds to GdkFrameClock::flush-events.

Should not be handled by applications.

BEFORE_PAINT 

Corresponds to GdkFrameClock::before-paint.

Should not be handled by applications.

UPDATE 

Corresponds to GdkFrameClock::update.

LAYOUT 

Corresponds to GdkFrameClock::layout.

Should not be handled by applicatiosn.

PAINT 

Corresponds to GdkFrameClock::paint.

RESUME_EVENTS 

Corresponds to GdkFrameClock::resume-events.

Should not be handled by applications.

AFTER_PAINT 

Corresponds to GdkFrameClock::after-paint.

Should not be handled by applications.

enum Gdk::Pixbuf::Rotation
strong

The possible rotations which can be passed to Gdk::Pixbuf::rotate_simple().

To make them easier to use, their numerical values are the actual degrees.

Enumerator
NONE 

No rotation.

COUNTERCLOCKWISE 

Rotate by 90 degrees.

UPSIDEDOWN 

Rotate by 180 degrees.

CLOCKWISE 

Rotate by 270 degrees.

enum Gdk::ScrollDirection
strong

Specifies the direction for scroll events.

Enumerator
UP 

The surface is scrolled up.

DOWN 

The surface is scrolled down.

LEFT 

The surface is scrolled to the left.

RIGHT 

The surface is scrolled to the right.

SMOOTH 

The scrolling is determined by the delta values in scroll events.

See gdk_scroll_event_get_deltas().

enum Gdk::Toplevel::State
strong

Specifies the state of a toplevel surface.

On platforms that support information about individual edges, the Gdk::Toplevel::State::TILED state will be set whenever any of the individual tiled states is set. On platforms that lack that support, the tiled state will give an indication of tiledness without any of the per-edge states being set.

Bitwise operators:
Toplevel::State operator|(Toplevel::State, Toplevel::State)

Toplevel::State operator&(Toplevel::State, Toplevel::State)

Toplevel::State operator^(Toplevel::State, Toplevel::State)

Toplevel::State operator~(Toplevel::State)

Toplevel::State& operator|=(Toplevel::State&, Toplevel::State)

Toplevel::State& operator&=(Toplevel::State&, Toplevel::State)

Toplevel::State& operator^=(Toplevel::State&, Toplevel::State)

Enumerator
MINIMIZED 

The surface is minimized.

MAXIMIZED 

The surface is maximized.

STICKY 

The surface is sticky.

FULLSCREEN 

The surface is maximized without decorations.

ABOVE 

The surface is kept above other surfaces.

BELOW 

The surface is kept below other surfaces.

FOCUSED 

The surface is presented as focused (with active decorations).

TILED 

The surface is in a tiled state.

TOP_TILED 

Whether the top edge is tiled.

TOP_RESIZABLE 

Whether the top edge is resizable.

RIGHT_TILED 

Whether the right edge is tiled.

RIGHT_RESIZABLE 

Whether the right edge is resizable.

BOTTOM_TILED 

Whether the bottom edge is tiled.

BOTTOM_RESIZABLE 

Whether the bottom edge is resizable.

LEFT_TILED 

Whether the left edge is tiled.

LEFT_RESIZABLE 

Whether the left edge is resizable.

enum Gdk::SubpixelLayout
strong

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

Enumerator
UNKNOWN 
NONE 
HORIZONTAL_RGB 

The layout is horizontal, the order is RGB.

HORIZONTAL_BGR 

The layout is horizontal, the order is BGR.

VERTICAL_RGB 

The layout is vertical, the order is RGB.

VERTICAL_BGR 

The layout is vertical, the order is BGR.

enum Gdk::SurfaceEdge
strong

Determines a surface edge or corner.

Enumerator
NORTH_WEST 
NORTH 
NORTH_EAST 
WEST 
EAST 
SOUTH_WEST 
SOUTH 
SOUTH_EAST 

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.

Enumerator
BEGIN 

The gesture has begun.

UPDATE 

The gesture has been updated.

END 

The gesture was finished, changes should be permanently applied.

CANCEL 

The gesture was cancelled, all changes should be undone.

enum Gdk::DeviceTool::Type
strong

Indicates the specific type of tool being used being a tablet.

Such as an airbrush, pencil, etc.

Enumerator
UNKNOWN 

Tool is of an unknown type.

PEN 

Tool is a standard tablet stylus.

ERASER 

Tool is standard tablet eraser.

BRUSH 

Tool is a brush stylus.

PENCIL 

Tool is a pencil stylus.

AIRBRUSH 

Tool is an airbrush stylus.

MOUSE 

Tool is a mouse.

LENS 

Tool is a lens cursor.

enum Gdk::Event::Type
strong

Specifies the type of the event.

Enumerator
DELETE 

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

MOTION_NOTIFY 

The pointer (usually a mouse) has moved.

BUTTON_PRESS 

A mouse button has been pressed.

BUTTON_RELEASE 

A mouse button has been released.

KEY_PRESS 

A key has been pressed.

KEY_RELEASE 

A key has been released.

ENTER_NOTIFY 

The pointer has entered the surface.

LEAVE_NOTIFY 

The pointer has left the surface.

FOCUS_CHANGE 

The keyboard focus has entered or left the surface.

PROXIMITY_IN 

An input device has moved into contact with a sensing surface (e.g.

a touchscreen or graphics tablet).

PROXIMITY_OUT 

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

DRAG_ENTER 

The mouse has entered the surface while a drag is in progress.

DRAG_LEAVE 

The mouse has left the surface while a drag is in progress.

DRAG_MOTION 

The mouse has moved in the surface while a drag is in progress.

DROP_START 

A drop operation onto the surface has started.

SCROLL 

The scroll wheel was turned.

GRAB_BROKEN 

A pointer or keyboard grab was broken.

TOUCH_BEGIN 

A new touch event sequence has just started.

TOUCH_UPDATE 

A touch event sequence has been updated.

TOUCH_END 

A touch event sequence has finished.

TOUCH_CANCEL 

A touch event sequence has been canceled.

TOUCHPAD_SWIPE 

A touchpad swipe gesture event, the current state is determined by its phase field.

TOUCHPAD_PINCH 

A touchpad pinch gesture event, the current state is determined by its phase field.

PAD_BUTTON_PRESS 

A tablet pad button press event.

PAD_BUTTON_RELEASE 

A tablet pad button release event.

PAD_RING 

A tablet pad axis event from a "ring".

PAD_STRIP 

A tablet pad axis event from a "strip".

PAD_GROUP_MODE 

A tablet pad group mode change.

EVENT_LAST 

Marks the end of the GdkEventType enumeration.

Function Documentation

AxisFlags Gdk::operator& ( AxisFlags  lhs,
AxisFlags  rhs 
)
inline
AnchorHints Gdk::operator& ( AnchorHints  lhs,
AnchorHints  rhs 
)
inline
Seat::Capabilities Gdk::operator& ( Seat::Capabilities  lhs,
Seat::Capabilities  rhs 
)
inline
DragAction Gdk::operator& ( DragAction  lhs,
DragAction  rhs 
)
inline
FrameClock::Phase Gdk::operator& ( FrameClock::Phase  lhs,
FrameClock::Phase  rhs 
)
inline
Paintable::Flags Gdk::operator& ( Paintable::Flags  lhs,
Paintable::Flags  rhs 
)
inline
ModifierType Gdk::operator& ( ModifierType  lhs,
ModifierType  rhs 
)
inline
Toplevel::State Gdk::operator& ( Toplevel::State  lhs,
Toplevel::State  rhs 
)
inline
AxisFlags& Gdk::operator&= ( AxisFlags lhs,
AxisFlags  rhs 
)
inline
AnchorHints& Gdk::operator&= ( AnchorHints lhs,
AnchorHints  rhs 
)
inline
Seat::Capabilities& Gdk::operator&= ( Seat::Capabilities lhs,
Seat::Capabilities  rhs 
)
inline
DragAction& Gdk::operator&= ( DragAction lhs,
DragAction  rhs 
)
inline
FrameClock::Phase& Gdk::operator&= ( FrameClock::Phase lhs,
FrameClock::Phase  rhs 
)
inline
Paintable::Flags& Gdk::operator&= ( Paintable::Flags lhs,
Paintable::Flags  rhs 
)
inline
ModifierType& Gdk::operator&= ( ModifierType lhs,
ModifierType  rhs 
)
inline
Toplevel::State& Gdk::operator&= ( Toplevel::State lhs,
Toplevel::State  rhs 
)
inline
AxisFlags Gdk::operator^ ( AxisFlags  lhs,
AxisFlags  rhs 
)
inline
AnchorHints Gdk::operator^ ( AnchorHints  lhs,
AnchorHints  rhs 
)
inline
Seat::Capabilities Gdk::operator^ ( Seat::Capabilities  lhs,
Seat::Capabilities  rhs 
)
inline
DragAction Gdk::operator^ ( DragAction  lhs,
DragAction  rhs 
)
inline
FrameClock::Phase Gdk::operator^ ( FrameClock::Phase  lhs,
FrameClock::Phase  rhs 
)
inline
Paintable::Flags Gdk::operator^ ( Paintable::Flags  lhs,
Paintable::Flags  rhs 
)
inline
ModifierType Gdk::operator^ ( ModifierType  lhs,
ModifierType  rhs 
)
inline
Toplevel::State Gdk::operator^ ( Toplevel::State  lhs,
Toplevel::State  rhs 
)
inline
AxisFlags& Gdk::operator^= ( AxisFlags lhs,
AxisFlags  rhs 
)
inline
AnchorHints& Gdk::operator^= ( AnchorHints lhs,
AnchorHints  rhs 
)
inline
Seat::Capabilities& Gdk::operator^= ( Seat::Capabilities lhs,
Seat::Capabilities  rhs 
)
inline
DragAction& Gdk::operator^= ( DragAction lhs,
DragAction  rhs 
)
inline
FrameClock::Phase& Gdk::operator^= ( FrameClock::Phase lhs,
FrameClock::Phase  rhs 
)
inline
Paintable::Flags& Gdk::operator^= ( Paintable::Flags lhs,
Paintable::Flags  rhs 
)
inline
ModifierType& Gdk::operator^= ( ModifierType lhs,
ModifierType  rhs 
)
inline
Toplevel::State& Gdk::operator^= ( Toplevel::State lhs,
Toplevel::State  rhs 
)
inline
AxisFlags Gdk::operator| ( AxisFlags  lhs,
AxisFlags  rhs 
)
inline
AnchorHints Gdk::operator| ( AnchorHints  lhs,
AnchorHints  rhs 
)
inline
Seat::Capabilities Gdk::operator| ( Seat::Capabilities  lhs,
Seat::Capabilities  rhs 
)
inline
DragAction Gdk::operator| ( DragAction  lhs,
DragAction  rhs 
)
inline
FrameClock::Phase Gdk::operator| ( FrameClock::Phase  lhs,
FrameClock::Phase  rhs 
)
inline
Paintable::Flags Gdk::operator| ( Paintable::Flags  lhs,
Paintable::Flags  rhs 
)
inline
ModifierType Gdk::operator| ( ModifierType  lhs,
ModifierType  rhs 
)
inline
Toplevel::State Gdk::operator| ( Toplevel::State  lhs,
Toplevel::State  rhs 
)
inline
AxisFlags& Gdk::operator|= ( AxisFlags lhs,
AxisFlags  rhs 
)
inline
AnchorHints& Gdk::operator|= ( AnchorHints lhs,
AnchorHints  rhs 
)
inline
Seat::Capabilities& Gdk::operator|= ( Seat::Capabilities lhs,
Seat::Capabilities  rhs 
)
inline
DragAction& Gdk::operator|= ( DragAction lhs,
DragAction  rhs 
)
inline
FrameClock::Phase& Gdk::operator|= ( FrameClock::Phase lhs,
FrameClock::Phase  rhs 
)
inline
Paintable::Flags& Gdk::operator|= ( Paintable::Flags lhs,
Paintable::Flags  rhs 
)
inline
ModifierType& Gdk::operator|= ( ModifierType lhs,
ModifierType  rhs 
)
inline
Toplevel::State& Gdk::operator|= ( Toplevel::State lhs,
Toplevel::State  rhs 
)
inline
AxisFlags Gdk::operator~ ( AxisFlags  flags)
inline
AnchorHints Gdk::operator~ ( AnchorHints  flags)
inline
Seat::Capabilities Gdk::operator~ ( Seat::Capabilities  flags)
inline
DragAction Gdk::operator~ ( DragAction  flags)
inline
FrameClock::Phase Gdk::operator~ ( FrameClock::Phase  flags)
inline
Paintable::Flags Gdk::operator~ ( Paintable::Flags  flags)
inline
ModifierType Gdk::operator~ ( ModifierType  flags)
inline
Toplevel::State Gdk::operator~ ( Toplevel::State  flags)
inline