gtkmm 3.24.7
|
enum Gdk::AnchorHints |
Positioning hints for aligning a window relative to a rectangle.
These hints determine how the window should be positioned in the case that the window would fall off-screen if placed in its ideal position.
For example, Gdk::ANCHOR_FLIP_X will replace Gdk::GRAVITY_NORTH_WEST with Gdk::GRAVITY_NORTH_EAST and vice versa if the window extends beyond the left or right edges of the monitor.
If Gdk::ANCHOR_SLIDE_X is set, the window can be shifted horizontally to fit on-screen. If Gdk::ANCHOR_RESIZE_X is set, the window 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.
Since: 3.22 Stability: Unstable
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)
enum Gdk::AxisFlags |
Flags describing the current capabilities of a device/tool.
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)
enum Gdk::AxisUse |
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.
enum Gdk::ByteOrder |
A set of values describing the possible byte-orders for storing pixel values in memory.
enum Gdk::Colorspace |
enum Gdk::CursorType |
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().
enum Gdk::DeviceType |
Indicates the device type.
See [above][GdkDeviceManager.description] for more information about the meaning of these device types.
Enumerator | |
---|---|
DEVICE_TYPE_MASTER | Device is a master (or virtual) device. There will be an associated focus indicator on the screen. |
DEVICE_TYPE_SLAVE | Device is a slave (or physical) device. |
DEVICE_TYPE_FLOATING | Device is a physical device, currently not attached to any virtual device. |
enum Gdk::DragAction |
Used in Gdk::DragContext to indicate what the destination should do with the dropped data.
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)
enum Gdk::DragProtocol |
Used in Gdk::DragContext to indicate the protocol according to which DND is done.
enum Gdk::EventMask |
A 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.
See the [input handling overview][chap-input-handling] for details of [event masks][event-masks] and [event propagation][event-propagation].
Gdk::POINTER_MOTION_HINT_MASK is deprecated. It is a special mask to reduce the number of Gdk::MOTION_NOTIFY events received. When using Gdk::POINTER_MOTION_HINT_MASK, fewer Gdk::MOTION_NOTIFY events will be sent, some of which are marked as a hint (the is_hint member is true
). To receive more motion events after a motion hint event, the application needs to asks for more, by calling Gdk::Event::request_motions().
Since GTK 3.8, motion events are already compressed by default, independent of this mechanism. This compression can be disabled with Gdk::Window::set_event_compression(). See the documentation of that function for details.
If Gdk::TOUCH_MASK is enabled, the window will receive touch events from touch-enabled devices. Those will come as sequences of Gdk::EventTouch with type Gdk::TOUCH_UPDATE, enclosed by two events with type Gdk::TOUCH_BEGIN and Gdk::TOUCH_END (or Gdk::TOUCH_CANCEL). Gdk::Event::get_event_sequence() returns the event sequence for these events, so different sequences may be distinguished.
EventMask operator|(EventMask, EventMask)
EventMask operator&(EventMask, EventMask)
EventMask operator^(EventMask, EventMask)
EventMask operator~(EventMask)
EventMask& operator|=(EventMask&, EventMask)
EventMask& operator&=(EventMask&, EventMask)
EventMask& operator^=(EventMask&, EventMask)
enum Gdk::EventType |
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::2BUTTON_PRESS and Gdk::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::DOUBLE_BUTTON_PRESS and Gdk::TRIPLE_BUTTON_PRESS can be used instead.
Enumerator | |
---|---|
NOTHING | A special code to indicate a null event. |
DELETE | 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 | The window has been destroyed. |
EXPOSE | All or part of the window has become visible and needs to be redrawn. |
MOTION_NOTIFY | The pointer (usually a mouse) has moved. |
BUTTON_PRESS | A mouse button has been pressed. |
DOUBLE_BUTTON_PRESS | A mouse button has been double-clicked (clicked twice within a short period of time). Note that each click also generates a Gdk::BUTTON_PRESS event. |
TRIPLE_BUTTON_PRESS | A mouse button has been clicked 3 times in a short period of time. Note that each click also generates a Gdk::BUTTON_PRESS event. |
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 window. |
LEAVE_NOTIFY | The pointer has left the window. |
FOCUS_CHANGE | The keyboard focus has entered or left the window. |
CONFIGURE | The size, position or stacking order of the window has changed. Note that GTK+ discards these events for Gdk::WINDOW_CHILD windows. |
MAP | The window has been mapped. |
UNMAP | The window has been unmapped. |
PROPERTY_NOTIFY | A property on the window has been changed or deleted. |
SELECTION_CLEAR | The application has lost ownership of a selection. |
SELECTION_REQUEST | Another application has requested a selection. |
SELECTION_NOTIFY | A selection has been received. |
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 window while a drag is in progress. |
DRAG_LEAVE | The mouse has left the window while a drag is in progress. |
DRAG_MOTION | The mouse has moved in the window while a drag is in progress. |
DRAG_STATUS | The status of the drag operation initiated by the window has changed. |
DROP_START | A drop operation onto the window has started. |
DROP_FINISHED | The drop operation initiated by the window has completed. |
CLIENT_EVENT | A message has been received from another application. |
VISIBILITY_NOTIFY | The window visibility status has changed. |
SCROLL | The scroll wheel was turned. |
WINDOW_STATE | The state of a window has changed. See Gdk::WindowState for the possible window states. |
SETTING | A setting has been modified. |
OWNER_CHANGE | The owner of a selection has changed. This event type was added in 2.6. |
GRAB_BROKEN | A pointer or keyboard grab was broken. This event type was added in 2.8. |
DAMAGE | The content of the window has been changed. This event type was added in 2.14. |
TOUCH_BEGIN | A new touch event sequence has just started. This event type was added in 3.4. |
TOUCH_UPDATE | A touch event sequence has been updated. This event type was added in 3.4. |
TOUCH_END | A touch event sequence has finished. This event type was added in 3.4. |
TOUCH_CANCEL | A touch event sequence has been canceled. This event type was added in 3.4. |
TOUCHPAD_SWIPE | A touchpad swipe gesture event, the current state is determined by its phase field. This event type was added in 3.18. |
TOUCHPAD_PINCH | 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 | A tablet pad button press event. This event type was added in 3.22. |
PAD_BUTTON_RELEASE | A tablet pad button release event. This event type was added in 3.22. |
PAD_RING | A tablet pad axis event from a "ring". This event type was added in 3.22. |
PAD_STRIP | A tablet pad axis event from a "strip". This event type was added in 3.22. |
PAD_GROUP_MODE | A tablet pad group mode change. This event type was added in 3.22. |
EVENT_LAST | Marks the end of the GdkEventType enumeration. Added in 2.18. |
enum Gdk::FrameClockPhase |
Gdk::FrameClockPhase 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.
FrameClockPhase operator|(FrameClockPhase, FrameClockPhase)
FrameClockPhase operator&(FrameClockPhase, FrameClockPhase)
FrameClockPhase operator^(FrameClockPhase, FrameClockPhase)
FrameClockPhase operator~(FrameClockPhase)
FrameClockPhase& operator|=(FrameClockPhase&, FrameClockPhase)
FrameClockPhase& operator&=(FrameClockPhase&, FrameClockPhase)
FrameClockPhase& operator^=(FrameClockPhase&, FrameClockPhase)
enum Gdk::FullscreenMode |
enum Gdk::GrabOwnership |
enum Gdk::GrabStatus |
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.
enum Gdk::Gravity |
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.
enum Gdk::InputMode |
An enumeration that describes the mode of an input device.
enum Gdk::InputSource |
An enumeration describing the type of an input device in general terms.
enum Gdk::InterpType |
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.
enum Gdk::ModifierIntent |
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::CONTROL_MASK and Gdk::MOD2_MASK, respectively).
Enumerator | |
---|---|
MODIFIER_INTENT_PRIMARY_ACCELERATOR | The primary modifier used to invoke menu accelerators. |
MODIFIER_INTENT_CONTEXT_MENU | 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. |
MODIFIER_INTENT_EXTEND_SELECTION | The modifier used to extend selections using |
MODIFIER_INTENT_MODIFY_SELECTION | The modifier used to modify selections, which in most cases means toggling the clicked item into or out of the selection. |
MODIFIER_INTENT_NO_TEXT_INPUT | 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. |
MODIFIER_INTENT_SHIFT_GROUP | The modifier that switches between keyboard groups (AltGr on X11/Windows and Option/Alt on OS X). |
MODIFIER_INTENT_DEFAULT_MOD_MASK | 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. |
enum Gdk::ModifierType |
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.
Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped to Mod2 - Mod5, and indicates this by setting Gdk::SUPER_MASK, Gdk::HYPER_MASK or Gdk::META_MASK in the state field of key events.
Note that GDK may add internal values to events which include reserved values such as Gdk::MODIFIER_RESERVED_13_MASK. Your code should preserve and ignore them. You can use Gdk::MODIFIER_MASK to remove all reserved values.
Also note that the GDK X backend interprets button press events for button 4-7 as scroll events, so Gdk::BUTTON4_MASK and Gdk::BUTTON5_MASK will never be set.
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)
enum Gdk::PixbufAlphaMode |
These values can be passed to gdk_pixbuf_xlib_render_to_drawable_alpha() to control how the alpha channel of an image should be handled.
This function can create a bilevel clipping mask (black and white) and use it while painting the image. In the future, when the X Window System gets an alpha channel extension, it will be possible to do full alpha compositing onto arbitrary drawables. For now both cases fall back to a bilevel clipping mask.
Enumerator | |
---|---|
PIXBUF_ALPHA_BILEVEL | A bilevel clipping mask (black and white) will be created and used to draw the image. Pixels below 0.5 opacity will be considered fully transparent, and all others will be considered fully opaque. |
PIXBUF_ALPHA_FULL | For now falls back to Gdk::PIXBUF_ALPHA_BILEVEL. In the future it will do full alpha compositing. |
enum Gdk::PixbufRotation |
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 | |
---|---|
PIXBUF_ROTATE_NONE | No rotation. |
PIXBUF_ROTATE_COUNTERCLOCKWISE | Rotate by 90 degrees. |
PIXBUF_ROTATE_UPSIDEDOWN | Rotate by 180 degrees. |
PIXBUF_ROTATE_CLOCKWISE | Rotate by 270 degrees. |
Flags describing the seat capabilities.
SeatCapabilities operator|(SeatCapabilities, SeatCapabilities)
SeatCapabilities operator&(SeatCapabilities, SeatCapabilities)
SeatCapabilities operator^(SeatCapabilities, SeatCapabilities)
SeatCapabilities operator~(SeatCapabilities)
SeatCapabilities& operator|=(SeatCapabilities&, SeatCapabilities)
SeatCapabilities& operator&=(SeatCapabilities&, SeatCapabilities)
SeatCapabilities& operator^=(SeatCapabilities&, SeatCapabilities)
enum Gdk::Status |
enum Gdk::SubpixelLayout |
This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.
enum Gdk::VisualType |
A set of values that describe the manner in which the pixel values for a visual are converted into RGB values for display.
Enumerator | |
---|---|
VISUAL_STATIC_GRAY | Each pixel value indexes a grayscale value directly. |
VISUAL_GRAYSCALE | 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. |
VISUAL_STATIC_COLOR | Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values. |
VISUAL_PSEUDO_COLOR | 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. |
VISUAL_TRUE_COLOR | 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. |
VISUAL_DIRECT_COLOR | Each pixel value contains red, green, and blue components as for Gdk::VISUAL_TRUE_COLOR, but the components are mapped via a color table into the final output table instead of being converted directly. |
Used to indicate which fields in the Gdk::WindowAttr struct should be honored.
For example, if you filled in the “cursor” and “x” fields of Gdk::WindowAttr, pass “ GDK_WA_X | GDK_WA_CURSOR” to Gdk::Window::new(). Fields in Gdk::WindowAttr not covered by a bit in this enum are required; for example, the width/ height, wclass, and window_type fields are required, they have no corresponding flag in Gdk::WindowAttributesType.
WindowAttributesType operator|(WindowAttributesType, WindowAttributesType)
WindowAttributesType operator&(WindowAttributesType, WindowAttributesType)
WindowAttributesType operator^(WindowAttributesType, WindowAttributesType)
WindowAttributesType operator~(WindowAttributesType)
WindowAttributesType& operator|=(WindowAttributesType&, WindowAttributesType)
WindowAttributesType& operator&=(WindowAttributesType&, WindowAttributesType)
WindowAttributesType& operator^=(WindowAttributesType&, WindowAttributesType)
enum Gdk::WindowEdge |
Determines a window edge or corner.
enum Gdk::WindowHints |
Used to indicate which fields of a Gdk::Geometry struct should be paid attention to.
Also, the presence/absence of GDK_HINT_POS, GDK_HINT_USER_POS, and GDK_HINT_USER_SIZE is significant, though they don't directly refer to Gdk::Geometry fields. GDK_HINT_USER_POS will be set automatically by Gtk::Window if you call gtk_window_move(). GDK_HINT_USER_POS and GDK_HINT_USER_SIZE should be set if the user specified a size/position using a –geometry command-line argument; gtk_window_parse_geometry() automatically sets these flags.
WindowHints operator|(WindowHints, WindowHints)
WindowHints operator&(WindowHints, WindowHints)
WindowHints operator^(WindowHints, WindowHints)
WindowHints operator~(WindowHints)
WindowHints& operator|=(WindowHints&, WindowHints)
WindowHints& operator&=(WindowHints&, WindowHints)
WindowHints& operator^=(WindowHints&, WindowHints)
Enumerator | |
---|---|
HINT_POS | Indicates that the program has positioned the window. |
HINT_MIN_SIZE | Min size fields are set. |
HINT_MAX_SIZE | Max size fields are set. |
HINT_BASE_SIZE | Base size fields are set. |
HINT_ASPECT | Aspect ratio fields are set. |
HINT_RESIZE_INC | Resize increment fields are set. |
HINT_WIN_GRAVITY | Window gravity field is set. |
HINT_USER_POS | Indicates that the window’s position was explicitly set by the user. |
HINT_USER_SIZE | Indicates that the window’s size was explicitly set by the user. |
enum Gdk::WindowState |
Specifies the state of a toplevel window.
WindowState operator|(WindowState, WindowState)
WindowState operator&(WindowState, WindowState)
WindowState operator^(WindowState, WindowState)
WindowState operator~(WindowState)
WindowState& operator|=(WindowState&, WindowState)
WindowState& operator&=(WindowState&, WindowState)
WindowState& operator^=(WindowState&, WindowState)
enum Gdk::WindowType |
Describes the kind of window.
Enumerator | |
---|---|
WINDOW_ROOT | Root window; this window has no parent, covers the entire screen, and is created by the window system. |
WINDOW_TOPLEVEL | Toplevel window (used to implement Gtk::Window). |
WINDOW_CHILD | Child window (used to implement e.g. |
WINDOW_TEMP | Override redirect temporary window (used to implement Gtk::Menu). |
WINDOW_FOREIGN | Foreign window (see gdk_window_foreign_new()). |
WINDOW_OFFSCREEN | Offscreen window (see [Offscreen Windows][OFFSCREEN-WINDOWS]). |
WINDOW_SUBSURFACE | 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. |
enum Gdk::WindowTypeHint |
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.
Enumerator | |
---|---|
WINDOW_TYPE_HINT_NORMAL | Normal toplevel window. |
WINDOW_TYPE_HINT_DIALOG | Dialog window. |
WINDOW_TYPE_HINT_MENU | Window used to implement a menu; GTK+ uses this hint only for torn-off menus, see Gtk::TearoffMenuItem. |
WINDOW_TYPE_HINT_TOOLBAR | Window used to implement toolbars. |
WINDOW_TYPE_HINT_SPLASHSCREEN | Window used to display a splash screen during application startup. |
WINDOW_TYPE_HINT_UTILITY | Utility windows which are not detached toolbars or dialogs. |
WINDOW_TYPE_HINT_DOCK | Used for creating dock or panel windows. |
WINDOW_TYPE_HINT_DESKTOP | Used for creating the desktop background window. |
WINDOW_TYPE_HINT_DROPDOWN_MENU | A menu that belongs to a menubar. |
WINDOW_TYPE_HINT_POPUP_MENU | A menu that does not belong to a menubar, e.g. a context menu. |
WINDOW_TYPE_HINT_TOOLTIP | A tooltip. |
WINDOW_TYPE_HINT_NOTIFICATION | A notification - typically a “bubble” that belongs to a status icon. |
WINDOW_TYPE_HINT_COMBO | A popup from a combo box. |
WINDOW_TYPE_HINT_DND | A window that is used to implement a DND cursor. |
enum Gdk::WMDecoration |
These are hints originally defined by the Motif toolkit.
The window manager can use them when determining how to decorate the window. The hint must be set before mapping the window.
WMDecoration operator|(WMDecoration, WMDecoration)
WMDecoration operator&(WMDecoration, WMDecoration)
WMDecoration operator^(WMDecoration, WMDecoration)
WMDecoration operator~(WMDecoration)
WMDecoration& operator|=(WMDecoration&, WMDecoration)
WMDecoration& operator&=(WMDecoration&, WMDecoration)
WMDecoration& operator^=(WMDecoration&, WMDecoration)
enum Gdk::WMFunction |
These 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.
WMFunction operator|(WMFunction, WMFunction)
WMFunction operator&(WMFunction, WMFunction)
WMFunction operator^(WMFunction, WMFunction)
WMFunction operator~(WMFunction)
WMFunction& operator|=(WMFunction&, WMFunction)
WMFunction& operator&=(WMFunction&, WMFunction)
WMFunction& operator^=(WMFunction&, WMFunction)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |