• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | Protected Member Functions | List of all members
NETWinInfo2 Class Reference

#include <netwm.h>

Inheritance diagram for NETWinInfo2:
Inheritance graph
[legend]

Public Member Functions

 NETWinInfo2 (Display *display, Window window, Window rootWindow, const unsigned long properties[], int properties_size, Role role=Client)
 
 NETWinInfo2 (Display *display, Window window, Window rootWindow, unsigned long properties, Role role=Client)
 
NETFullscreenMonitors fullscreenMonitors () const
 
void setFullscreenMonitors (NETFullscreenMonitors topology)
 
- Public Member Functions inherited from NETWinInfo
 NETWinInfo (Display *display, Window window, Window rootWindow, const unsigned long properties[], int properties_size, Role role=Client)
 
 NETWinInfo (Display *display, Window window, Window rootWindow, unsigned long properties, Role role=Client)
 
 NETWinInfo (const NETWinInfo &wininfo)
 
virtual ~NETWinInfo ()
 
const char * activities () const
 
unsigned long allowedActions () const
 
const char * clientMachine () const
 
int desktop (bool ignore_viewport=false) const
 
void event (XEvent *event, unsigned long *properties, int properties_size)
 
unsigned long event (XEvent *event)
 
NETExtendedStrut extendedStrut () const
 
NETStrut frameExtents () const
 
NETStrut frameOverlap () const
 
Window groupLeader () const
 
Bool handledIcons () const
 
bool hasNETSupport () const
 
bool hasWindowType () const
 
NETIcon icon (int width=-1, int height=-1) const
 
NETRect iconGeometry () const
 
const char * iconName () const
 
const int * iconSizes () const
 
bool isBlockingCompositing () const
 
void kdeGeometry (NETRect &frame, NETRect &window)
 
MappingState mappingState () const
 
const char * name () const
 
unsigned long opacity () const
 
const NETWinInfo & operator= (const NETWinInfo &wintinfo)
 
const unsigned long * passedProperties () const
 
int pid () const
 
void setAllowedActions (unsigned long actions)
 
void setBlockingCompositing (bool active)
 
void setDesktop (int desktop, bool ignore_viewport=false)
 
void setExtendedStrut (const NETExtendedStrut &extended_strut)
 
void setFrameExtents (NETStrut strut)
 
void setFrameOverlap (NETStrut strut)
 
void setHandledIcons (Bool handled)
 
void setIcon (NETIcon icon, Bool replace=True)
 
void setIconGeometry (NETRect geometry)
 
void setIconName (const char *name)
 
void setName (const char *name)
 
void setOpacity (unsigned long opacity)
 
void setPid (int pid)
 
void setStartupId (const char *startup_id)
 
void setState (unsigned long state, unsigned long mask)
 
void setStrut (NETStrut strut)
 
void setUserTime (Time time)
 
void setVisibleIconName (const char *name)
 
void setVisibleName (const char *visibleName)
 
void setWindowType (WindowType type)
 
const char * startupId () const
 
unsigned long state () const
 
NETStrut strut () const
 
Window transientFor () const
 
Time userTime () const
 
const char * visibleIconName () const
 
const char * visibleName () const
 
const char * windowClassClass () const
 
const char * windowClassName () const
 
const char * windowRole () const
 
WindowType windowType (unsigned long supported_types) const
 

Protected Member Functions

virtual void changeFullscreenMonitors (NETFullscreenMonitors topology)
 
- Protected Member Functions inherited from NETWinInfo
virtual void changeDesktop (int desktop)
 
virtual void changeState (unsigned long state, unsigned long mask)
 
virtual void virtual_hook (int id, void *data)
 

Additional Inherited Members

- Public Types inherited from NETWinInfo
enum  { PROTOCOLS, PROTOCOLS2, PROPERTIES_SIZE }
 
- Public Types inherited from NET
enum  { OnAllDesktops = -1 }
 
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  DesktopLayoutCorner { DesktopLayoutCornerTopLeft = 0, DesktopLayoutCornerTopRight = 1, DesktopLayoutCornerBottomLeft = 2, DesktopLayoutCornerBottomRight = 3 }
 
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 = 1, Withdrawn = 0, Iconic = 3 }
 
enum  Orientation { OrientationHorizontal = 0, OrientationVertical = 1 }
 
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,
  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, XAWMState = 1<<27, WMFrameExtents = 1<<28, 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, WM2Opacity = 1<<14, WM2DesktopLayout = 1<<15,
  WM2FullPlacement = 1<<16, WM2FullscreenMonitors = 1<<17, WM2FrameOverlap = 1<<18, WM2Activities = 1<<19,
  WM2BlockCompositing = 1<<20, WM2KDEShadow = 1<<21
}
 
enum  RequestSource { FromUnknown = 0, FromApplication = 1, FromTool = 2 }
 
enum  Role { Client, WindowManager }
 
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  WindowType {
  Unknown = -1, Normal = 0, Desktop = 1, Dock = 2,
  Toolbar = 3, Menu = 4, Dialog = 5, Override = 6,
  TopMenu = 7, 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,
  AllTypesMask = 0LU-1
}
 
- Static Public Member Functions inherited from NET
static int timestampCompare (unsigned long time1, unsigned long time2)
 
static int timestampDiff (unsigned long time1, unsigned long time2)
 
static bool typeMatchesMask (WindowType type, unsigned long mask)
 
- Static Public Attributes inherited from NETWinInfo
static const int OnAllDesktops = NET::OnAllDesktops
 

Detailed Description

This class is an extension of the NETWinInfo class, and exists solely for binary compatibility reasons (adds new virtual methods) until KDE5.

Simply use it instead of NETWinInfo and override also the added virtual methods.

Since
4.2

Definition at line 1381 of file netwm.h.

Constructor & Destructor Documentation

NETWinInfo2::NETWinInfo2 ( Display *  display,
Window  window,
Window  rootWindow,
const unsigned long  properties[],
int  properties_size,
Role  role = Client 
)

Definition at line 2886 of file netwm.cpp.

NETWinInfo2::NETWinInfo2 ( Display *  display,
Window  window,
Window  rootWindow,
unsigned long  properties,
Role  role = Client 
)

Definition at line 2892 of file netwm.cpp.

Member Function Documentation

virtual void NETWinInfo2::changeFullscreenMonitors ( NETFullscreenMonitors  topology)
inlineprotectedvirtual

A Window Manager should subclass NETWinInfo2 and reimplement this function when it wants to know when a Client made a request to change the fullscreen monitor topology for its fullscreen state.

Parameters
topologyA structure (top, bottom, left, right) representing the fullscreen monitor topology.

Definition at line 1426 of file netwm.h.

NETFullscreenMonitors NETWinInfo2::fullscreenMonitors ( ) const

Returns the desired fullscreen monitor topology for this client, should it be in fullscreen state.

See _NET_WM_FULLSCREEN_MONITORS in the spec.

Definition at line 4571 of file netwm.cpp.

void NETWinInfo2::setFullscreenMonitors ( NETFullscreenMonitors  topology)

Sets the desired multiple-monitor topology (4 monitor indices indicating the top, bottom, left, and right edges of the window) when the fullscreen state is enabled.

The indices are from the set returned by the Xinerama extension. See _NET_WM_FULLSCREEN_MONITORS for details.

Parameters
topologyA struct that models the desired monitor topology, namely: top is the monitor whose top edge defines the top edge of the fullscreen window, bottom is the monitor whose bottom edge defines the bottom edge of the fullscreen window, left is the monitor whose left edge defines the left edge of the fullscreen window, and right is the monitor whose right edge defines the right edge of the fullscreen window.

Definition at line 3052 of file netwm.cpp.


The documentation for this class was generated from the following files:
  • netwm.h
  • netwm.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal