gtkmm: gdkmm Enums and Flags
Functions | |
EventMask | Gdk::operator| (EventMask lhs, EventMask rhs) |
EventMask | Gdk::operator& (EventMask lhs, EventMask rhs) |
EventMask | Gdk::operator^ (EventMask lhs, EventMask rhs) |
EventMask | Gdk::operator~ (EventMask flags) |
EventMask& | Gdk::operator|= (EventMask& lhs, EventMask rhs) |
EventMask& | Gdk::operator&= (EventMask& lhs, EventMask rhs) |
EventMask& | Gdk::operator^= (EventMask& lhs, EventMask 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) |
WindowState | Gdk::operator| (WindowState lhs, WindowState rhs) |
WindowState | Gdk::operator& (WindowState lhs, WindowState rhs) |
WindowState | Gdk::operator^ (WindowState lhs, WindowState rhs) |
WindowState | Gdk::operator~ (WindowState flags) |
WindowState& | Gdk::operator|= (WindowState& lhs, WindowState rhs) |
WindowState& | Gdk::operator&= (WindowState& lhs, WindowState rhs) |
WindowState& | Gdk::operator^= (WindowState& lhs, WindowState rhs) |
WindowAttributesType | Gdk::operator| (WindowAttributesType lhs, WindowAttributesType rhs) |
WindowAttributesType | Gdk::operator& (WindowAttributesType lhs, WindowAttributesType rhs) |
WindowAttributesType | Gdk::operator^ (WindowAttributesType lhs, WindowAttributesType rhs) |
WindowAttributesType | Gdk::operator~ (WindowAttributesType flags) |
WindowAttributesType& | Gdk::operator|= (WindowAttributesType& lhs, WindowAttributesType rhs) |
WindowAttributesType& | Gdk::operator&= (WindowAttributesType& lhs, WindowAttributesType rhs) |
WindowAttributesType& | Gdk::operator^= (WindowAttributesType& lhs, WindowAttributesType rhs) |
WindowHints | Gdk::operator| (WindowHints lhs, WindowHints rhs) |
WindowHints | Gdk::operator& (WindowHints lhs, WindowHints rhs) |
WindowHints | Gdk::operator^ (WindowHints lhs, WindowHints rhs) |
WindowHints | Gdk::operator~ (WindowHints flags) |
WindowHints& | Gdk::operator|= (WindowHints& lhs, WindowHints rhs) |
WindowHints& | Gdk::operator&= (WindowHints& lhs, WindowHints rhs) |
WindowHints& | Gdk::operator^= (WindowHints& lhs, WindowHints rhs) |
WMDecoration | Gdk::operator| (WMDecoration lhs, WMDecoration rhs) |
WMDecoration | Gdk::operator& (WMDecoration lhs, WMDecoration rhs) |
WMDecoration | Gdk::operator^ (WMDecoration lhs, WMDecoration rhs) |
WMDecoration | Gdk::operator~ (WMDecoration flags) |
WMDecoration& | Gdk::operator|= (WMDecoration& lhs, WMDecoration rhs) |
WMDecoration& | Gdk::operator&= (WMDecoration& lhs, WMDecoration rhs) |
WMDecoration& | Gdk::operator^= (WMDecoration& lhs, WMDecoration rhs) |
WMFunction | Gdk::operator| (WMFunction lhs, WMFunction rhs) |
WMFunction | Gdk::operator& (WMFunction lhs, WMFunction rhs) |
WMFunction | Gdk::operator^ (WMFunction lhs, WMFunction rhs) |
WMFunction | Gdk::operator~ (WMFunction flags) |
WMFunction& | Gdk::operator|= (WMFunction& lhs, WMFunction rhs) |
WMFunction& | Gdk::operator&= (WMFunction& lhs, WMFunction rhs) |
WMFunction& | Gdk::operator^= (WMFunction& lhs, WMFunction rhs) |
Detailed Description
Enumeration Type Documentation
enum Gdk::AxisUse |
An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK+ understands.
enum Gdk::ByteOrder |
A set of values describing the possible byte-orders for storing pixel values in memory.
enum Gdk::Colorspace |
enum Gdk::CursorType |
The standard cursors available.
enum Gdk::DeviceType |
Indicates the device type.
See above for more information about the meaning of these device types.
Enumerator | |
---|---|
DEVICE_TYPE_MASTER |
Device is a master (or virtual) device. There willbe 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 toany virtual device. |
enum Gdk::DragAction |
Used in Gdk::DragContext to indicate what the destination 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)
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.
Gdk::POINTER_MOTION_HINT_MASK is a special mask which is used to reduce the number of Gdk::MOTION_NOTIFY events received. Normally a Gdk::MOTION_NOTIFY event is received each time the mouse moves. However, if the application spends a lot of time processing the event (updating the display, for example), it can lag behind the position of the mouse. 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().
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.
- Bitwise operators:
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.
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::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. </note>
enum Gdk::ModifierIntent |
This enum is used with Gdk::Keymap::get_modifier_mask() and gdk_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).
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.
- 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)
enum Gdk::PixbufAlphaMode |
These values can be passed to gdk_pixbuf_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.
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. |
enum Gdk::Status |
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 valuedirectly. |
VISUAL_GRAYSCALE |
Each pixel is an index into a color map thatmaps pixel values into grayscale values. The color map can bechanged 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 thatmaps pixel values into rgb values. The color map can be changed byan 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 intoa pixel value. |
VISUAL_DIRECT_COLOR |
Each pixel value contains red, green, and bluecomponents as for Visual::TRUE_COLOR, but the components aremapped via a color table into the final output table instead ofbeing 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 " @a GDK_WA_X | @a 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.
- Bitwise operators:
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.
- Bitwise operators:
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)
enum Gdk::WindowState |
Specifies the state of a toplevel window.
- Bitwise operators:
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.
A Gtk::Window can be one of these types.
Most things you'd consider a "window" should have type Gtk::WINDOW_TOPLEVEL; windows with this type are managed by the window manager and have a frame by default (call Gtk::Window::set_decorated() to toggle the frame). Windows with type Gtk::WINDOW_POPUP are ignored by the window manager; window manager keybindings won't work on them, the window manager won't decorate the window with a frame, many GTK+ features that rely on the window manager will not work (e.g. resize grips and maximization/minimization). Gtk::WINDOW_POPUP is used to implement widgets such as Gtk::Menu or tooltips that you normally don't think of as windows per se. Nearly all windows should be Gtk::WINDOW_TOPLEVEL. In particular, do not use Gtk::WINDOW_POPUP just to turn off the window borders; use Gtk::Window::set_decorated() for that.
Enumerator | |
---|---|
WINDOW_ROOT |
root window; this window has no parent, covers the entirescreen, 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 implementGtk::Menu). |
WINDOW_FOREIGN |
foreign window (see gdk_window_foreign_new()). |
WINDOW_OFFSCREEN |
offscreen window (see<xref linkend="OFFSCREEN-WINDOWS">). Since 2.18. |
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+ usesthis 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 splashscreen during application startup. |
WINDOW_TYPE_HINT_UTILITY |
Utility windows which are not detachedtoolbars or dialogs. |
WINDOW_TYPE_HINT_DOCK |
Used for creating dock or panel windows. |
WINDOW_TYPE_HINT_DESKTOP |
Used for creating the desktop backgroundwindow. |
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.
- Bitwise operators:
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.
- Bitwise operators:
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)
Function Documentation
|
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 |