NET Class Reference
#include <netwm_def.h>
Detailed Description
Base namespace class.The NET API is an implementation of the NET Window Manager Specification.
This class is the base class for the NETRootInfo and NETWinInfo classes, which are used to retrieve and modify the properties of windows. To keep the namespace relatively clean, all enums are defined here.
Definition at line 235 of file netwm_def.h.
Public Types | |
enum | Role { Client, WindowManager } |
enum | WindowType { Unknown = -1, Normal = 0, Desktop = 1, Dock = 2, Toolbar = 3, Menu = 4, Dialog = 5, Override = 6, TopMenu = 7, Tool = Toolbar, Utility = 8, Splash = 9, DropdownMenu = 10, PopupMenu = 11, Tooltip = 12, Notification = 13, ComboBox = 14, DNDIcon = 15 } |
enum | WindowTypeMask { NormalMask = 1<<0, DesktopMask = 1<<1, DockMask = 1<<2, ToolbarMask = 1<<3, MenuMask = 1<<4, DialogMask = 1<<5, OverrideMask = 1<<6, TopMenuMask = 1<<7, UtilityMask = 1<<8, SplashMask = 1<<9, DropdownMenuMask = 1<<10, PopupMenuMask = 1<<11, TooltipMask = 1<<12, NotificationMask = 1<<13, ComboBoxMask = 1<<14, DNDIconMask = 1<<15 } |
enum | { AllTypesMask = 0LU-1 } |
enum | State { Modal = 1<<0, Sticky = 1<<1, MaxVert = 1<<2, MaxHoriz = 1<<3, Max = MaxVert | MaxHoriz, Shaded = 1<<4, SkipTaskbar = 1<<5, KeepAbove = 1<<6, StaysOnTop = KeepAbove, SkipPager = 1<<7, Hidden = 1<<8, FullScreen = 1<<9, KeepBelow = 1<<10, DemandsAttention = 1<<11 } |
enum | Direction { TopLeft = 0, Top = 1, TopRight = 2, Right = 3, BottomRight = 4, Bottom = 5, BottomLeft = 6, Left = 7, Move = 8, KeyboardSize = 9, KeyboardMove = 10, MoveResizeCancel = 11 } |
enum | MappingState { Visible, Withdrawn, Iconic } |
enum | Action { ActionMove = 1<<0, ActionResize = 1<<1, ActionMinimize = 1<<2, ActionShade = 1<<3, ActionStick = 1<<4, ActionMaxVert = 1<<5, ActionMaxHoriz = 1<<6, ActionMax = ActionMaxVert | ActionMaxHoriz, ActionFullScreen = 1<<7, ActionChangeDesktop = 1<<8, ActionClose = 1<<9 } |
enum | Property { Supported = 1<<0, ClientList = 1<<1, ClientListStacking = 1<<2, NumberOfDesktops = 1<<3, DesktopGeometry = 1<<4, DesktopViewport = 1<<5, CurrentDesktop = 1<<6, DesktopNames = 1<<7, ActiveWindow = 1<<8, WorkArea = 1<<9, SupportingWMCheck = 1<<10, VirtualRoots = 1<<11, KDESystemTrayWindows = 1<<12, CloseWindow = 1<<13, WMMoveResize = 1<<14, WMName = 1<<15, WMVisibleName = 1<<16, WMDesktop = 1<<17, WMWindowType = 1<<18, WMState = 1<<19, WMStrut = 1<<20, WMIconGeometry = 1<<21, WMIcon = 1<<22, WMPid = 1<<23, WMHandledIcons = 1<<24, WMPing = 1<<25, WMKDESystemTrayWinFor = 1<<26, XAWMState = 1<<27, WMFrameExtents = 1<<28, WMKDEFrameStrut = WMFrameExtents, WMIconName = 1<<29, WMVisibleIconName = 1<<30, WMGeometry = 1<<31 } |
enum | Property2 { WM2UserTime = 1<<0, WM2StartupId = 1<<1, WM2TransientFor = 1<<2, WM2GroupLeader = 1<<3, WM2AllowedActions = 1<<4, WM2RestackWindow = 1<<5, WM2MoveResizeWindow = 1<<6, WM2ExtendedStrut = 1<<7, WM2TakeActivity = 1<<8, WM2KDETemporaryRules = 1<<9, WM2WindowClass = 1<<10, WM2WindowRole = 1<<11, WM2ClientMachine = 1<<12, WM2ShowingDesktop = 1<<13, WM2DesktopLayout = 1<<15 } |
enum | { OnAllDesktops = -1 } |
enum | RequestSource { FromUnknown, FromApplication, FromTool } |
enum | Orientation { OrientationHorizontal = 0, OrientationVertical = 1 } |
enum | DesktopLayoutCorner { DesktopLayoutCornerTopLeft = 0, DesktopLayoutCornerTopRight = 1, DesktopLayoutCornerBottomLeft = 2, DesktopLayoutCornerBottomRight = 3 } |
Static Public Member Functions | |
static bool | typeMatchesMask (WindowType type, unsigned long mask) |
static int | timestampCompare (unsigned long time1, unsigned long time2) |
static int | timestampDiff (unsigned long time1_, unsigned long time2_) |
Member Enumeration Documentation
|
Sentinel value to indicate that the client wishes to be visible on all desktops.
Definition at line 621 of file netwm_def.h. |
|
Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
Definition at line 474 of file netwm_def.h. |
|
Starting corner for desktop layout.
Definition at line 647 of file netwm_def.h. |
|
Direction for WMMoveResize. When a client wants the Window Manager to start a WMMoveResize, it should specify one of:
Definition at line 425 of file netwm_def.h. |
|
Client window mapping state. The class automatically watches the mapping state of the client windows, and uses the mapping state to determine how to set/change different properties.
Definition at line 464 of file netwm_def.h. |
|
Orientation.
Definition at line 639 of file netwm_def.h. |
|
Supported properties. Clients and Window Managers must define which properties/protocols it wants to support. Root/Desktop window properties and protocols:
Definition at line 534 of file netwm_def.h. |
|
Supported properties. This enum is an extension to NET::Property, because them enum is limited only to 32 bits. Client window properties and protocols:
Definition at line 598 of file netwm_def.h. |
|
Source of the request.
Definition at line 630 of file netwm_def.h. |
|
Application role. This is used internally to determine how several action should be performed (if at all).
Definition at line 247 of file netwm_def.h. |
|
Window state.
Definition at line 389 of file netwm_def.h. |
|
Window type.
Definition at line 294 of file netwm_def.h. |
|
Values for WindowType when they should be OR'ed together, e.g. for the properties argument of the NETRootInfo constructor.
Definition at line 320 of file netwm_def.h. |
Member Function Documentation
|
Compares two X timestamps, taking into account wrapping and 64bit architectures. Return value is like with strcmp(), 0 for equal, -1 for time1 < time2, 1 for time1 > time2.
|
|
Returns a difference of two X timestamps, time2 - time1, where time2 must be later than time1, as returned by timestampCompare().
|
|
Returns true if the given window type matches the mask given using WindowTypeMask flags.
|
The documentation for this class was generated from the following file: