gtkmm
3.97.1
|
|
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.
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)
|
strong |
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)
|
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. |
X | |
Y | |
PRESSURE | |
XTILT | |
YTILT | |
WHEEL | |
DISTANCE | |
ROTATION | |
SLIDER | |
LAST | A constant equal to the numerically highest axis value. |
|
strong |
Flags describing the seat capabilities.
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)
|
strong |
|
strong |
Specifies the crossing mode for enter and leave events.
|
strong |
Used in Gdk::Drop and Gdk::Drag to indicate the actions that the destination can and 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)
|
strong |
|
strong |
A set of bit-flags to indicate which events a surface is to receive. Most of these masks map onto one or more of the Gdk::Event::Type event types above.
See the [input handling overview][chap-input-handling] for details of [event masks][event-masks] and [event propagation][event-propagation].
If Gdk::EventMask::TOUCH_MASK is enabled, the surface will receive touch events from touch-enabled devices. Those will come as sequences of Gdk::EventTouch with type Gdk::Event::Type::TOUCH_UPDATE, enclosed by two events with type Gdk::Event::Type::TOUCH_BEGIN and Gdk::Event::Type::TOUCH_END (or Gdk::Event::Type::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)
|
strong |
|
strong |
Flags about this object. Implementations use these for optimizations such as caching.
Paintable::Flags operator|(Paintable::Flags, Paintable::Flags)
Paintable::Flags operator&(Paintable::Flags, Paintable::Flags)
Paintable::Flags operator^(Paintable::Flags, Paintable::Flags)
Paintable::Flags operator~(Paintable::Flags)
Paintable::Flags& operator|=(Paintable::Flags&, Paintable::Flags)
Paintable::Flags& operator&=(Paintable::Flags&, Paintable::Flags)
Paintable::Flags& operator^=(Paintable::Flags&, Paintable::Flags)
|
strong |
|
strong |
Returned by gdk_device_grab() to indicate success or the reason for the failure of the grab attempt.
|
strong |
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.
Surface::Hints operator|(Surface::Hints, Surface::Hints)
Surface::Hints operator&(Surface::Hints, Surface::Hints)
Surface::Hints operator^(Surface::Hints, Surface::Hints)
Surface::Hints operator~(Surface::Hints)
Surface::Hints& operator|=(Surface::Hints&, Surface::Hints)
Surface::Hints& operator&=(Surface::Hints&, Surface::Hints)
Surface::Hints& operator^=(Surface::Hints&, Surface::Hints)
Enumerator | |
---|---|
POS | Indicates that the program has positioned the surface. |
MIN_SIZE | Min size fields are set. |
MAX_SIZE | Max size fields are set. |
BASE_SIZE | Base size fields are set. |
ASPECT | Aspect ratio fields are set. |
RESIZE_INC | Resize increment fields are set. |
WIN_GRAVITY | Surface gravity field is set. |
USER_POS | Indicates that the surface’s position was explicitly set by the user. |
USER_SIZE | Indicates that the surface’s size was explicitly set by the user. |
|
strong |
An enumeration that describes the mode of an input device.
|
strong |
An enumeration describing the type of an input device in general terms.
|
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.
|
strong |
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).
Enumerator | |
---|---|
PRIMARY_ACCELERATOR | The primary modifier used to invoke menu accelerators. |
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. |
EXTEND_SELECTION | The modifier used to extend selections using |
MODIFY_SELECTION | The modifier used to modify selections, which in most cases means toggling the clicked item into or out of the selection. |
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. |
SHIFT_GROUP | The modifier that switches between keyboard groups (AltGr on X11/Windows and Option/Alt on OS X). |
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. |
|
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.
Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
GDK recognizes which of the Meta, Super or Hyper keys are mapped to Mod2 - Mod5, and indicates this by setting Gdk::ModifierType::SUPER_MASK, Gdk::ModifierType::HYPER_MASK or Gdk::ModifierType::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::ModifierType::MODIFIER_RESERVED_13_MASK. Your code should preserve and ignore them. You can use Gdk::ModifierType::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::ModifierType::BUTTON4_MASK and Gdk::ModifierType::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)
|
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.
|
strong |
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.
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)
|
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. |
|
strong |
Specifies the direction for scroll events.
|
strong |
Specifies the state of a toplevel surface.
On platforms that support information about individual edges, the Gdk::Surface::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.
Surface::State operator|(Surface::State, Surface::State)
Surface::State operator&(Surface::State, Surface::State)
Surface::State operator^(Surface::State, Surface::State)
Surface::State operator~(Surface::State)
Surface::State& operator|=(Surface::State&, Surface::State)
Surface::State& operator&=(Surface::State&, Surface::State)
Surface::State& operator^=(Surface::State&, Surface::State)
|
strong |
This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.
|
strong |
Determines a surface edge or corner.
|
strong |
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.
|
strong |
Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc.
|
strong |
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.
|
strong |
|
strong |
Describes the kind of surface.
Enumerator | |
---|---|
TOPLEVEL | Toplevel window (used to implement Gtk::Window). |
TEMP | Override redirect temporary surface (used to implement Gtk::Menu). |
POPUP | Popup window with semantics like xdg-popover. |
|
strong |
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.
|
strong |
These are hints originally defined by the Motif toolkit. The window manager can use them when determining how to decorate the surface. The hint must be set before mapping the surface.
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)
|
strong |
These are hints originally defined by the Motif toolkit. The window manager can use them when determining the functions to offer for the surface. The hint must be set before mapping the surface.
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)
Enumerator | |
---|---|
ALL | |
RESIZE | The surface should be resizable. Allow resizing surface on both axes. |
MOVE | |
MINIMIZE | |
MAXIMIZE | |
CLOSE | The surface should be closable. |
|
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 |