23#include <tqwindowdefs.h>
26#include "tdelibs_export.h"
159 static void setMainWindow( TQWidget* subwindow, WId mainwindow );
173 class WindowInfoPrivate;
187 static WindowInfo windowInfo( WId win,
unsigned long properties = 0,
unsigned long properties2 = 0 );
221 static TQPixmap
icon( WId win,
int width = -1,
int height = -1,
bool scale =
false );
251 static TQPixmap icon( WId win,
int width,
int height,
bool scale,
int flags );
259 static void setIcons( WId win,
const TQPixmap& icon,
const TQPixmap& miniIcon );
280 static void setState( WId win,
unsigned long state );
293 static void clearState( WId win,
unsigned long state );
305 static void setOpacity( WId win, uint percent );
317 static void setShadowSize( WId win, uint percent );
327 static void setOnAllDesktops( WId win,
bool b );
335 static void setOnDesktop( WId win,
int desktop);
358 static void setExtendedStrut( WId win,
int left_width,
int left_start,
int left_end,
359 int right_width,
int right_start,
int right_end,
int top_width,
int top_start,
int top_end,
360 int bottom_width,
int bottom_start,
int bottom_end );
372 static void setStrut( WId win,
int left,
int right,
int top,
int bottom );
377 static int currentDesktop();
384 static int numberOfDesktops();
391 static void setCurrentDesktop(
int desktop );
400 static void setCurrentDesktopViewport(
int desktop, TQPoint viewport );
410 static void iconifyWindow( WId win,
bool animation =
true );
420 static void deIconifyWindow( WId win,
bool animation =
true );
429 static void raiseWindow( WId win );
438 static void lowerWindow( WId win );
445 static bool icccmCompliantMappingState();
451 static bool allowedActionsSupported();
458 static TQString readNameProperty( WId window,
unsigned long atom );
464 static bool compositingActive();
477 bool isIconified()
const;
498 TQString visibleNameWithState()
const;
505 static Info info( WId win ) TDE_DEPRECATED;
528 WindowInfo( WId window,
unsigned long properties,
unsigned long properties2 );
537 bool valid(
bool withdrawn_is_valid =
false )
const;
546 unsigned long state()
const;
560 bool isMinimized()
const;
590 TQString visibleName()
const;
600 TQString visibleNameWithState()
const;
606 TQString name()
const;
613 TQString visibleIconName()
const;
624 TQString visibleIconNameWithState()
const;
631 TQString iconName()
const;
636 bool isOnCurrentDesktop()
const;
641 bool isOnDesktop(
int desktop )
const;
647 bool onAllDesktops()
const;
658 TQRect geometry()
const;
663 TQRect frameGeometry()
const;
682 TQCString windowClassClass()
const;
690 TQCString windowClassName()
const;
697 TQCString windowRole()
const;
704 TQCString clientMachine()
const;
716 WindowInfoPrivate* d;
Information about a window.
bool valid(bool withdrawn_is_valid=false) const
Returns false if this window info is not valid (most probably the given window doesn't exist).
WId win() const
Returns the window identifier.
WindowInfo(WId window, unsigned long properties, unsigned long properties2)
Reads all the info about the given window.
bool hasState(unsigned long s) const
Returns true if the window has the given state flag set (see the NET::State enum for details).
unsigned long state() const
Returns the window's state flags (see the NET::State enum for details).
Convenience access to certain properties and features of the window manager.
static WId groupLeader(WId window)
Returns the leader window for the group the given window is in, if any.
static void activateWindow(WId win, long time=0)
Requests that window win is activated.
static WId transientFor(WId window)
Returns the WM_TRANSIENT_FOR property for the given window, i.e.
static void appStarted() TDE_DEPRECATED
static void demandAttention(WId win, bool set=true)
When application finishes some operation and wants to notify the user about it, it can call demandAtt...
static void setUserTime(WId win, long time)
Sets user timestamp time on window win.
IconSource
Masks specifying from which sources to read an icon.
@ WMHints
read from WMHints property
@ NETWM
read from property from the window manager specification
@ ClassHint
load icon after getting name from the classhint
@ XApp
load the standard X icon (last fallback)
static void forceActiveWindow(WId win, long time=0)
Sets window win to be the active window.
static WindowInfo windowInfo(WId win, unsigned long properties=0, unsigned long properties2=0)
Returns information about window win.
static void setMainWindow(TQWidget *subwindow, WId mainwindow)
Sets the parent window of subwindow to be mainwindow.
static Info info(WId win) TDE_DEPRECATED
static void setActiveWindow(WId win) TDE_DEPRECATED
static void setSystemTrayWindowFor(WId trayWin, WId forWin)
Makes trayWin a system tray window for forWin.
static void invokeContextHelp()
Invokes interactive context help.
static TQPixmap icon(WId win, int width=-1, int height=-1, bool scale=false)
Returns an icon for window win.
Action
Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
MappingState
Client window mapping state.
TQRect frameGeometry
Position and size of the window's frame.
pid_t pid
The process id of the window's owner.
TQRect geometry
Position and size of the window contents.
long unsigned int state
The window's state.
int desktop
The number of the window's desktop.
bool isMinimized() const
The mapping state.
NET::WindowType windowType
The window type.
bool onAllDesktops
true if the window is on all desktops.
TQString visibleName
The visible name of the window.
TQString name
The name of the window.
Partial strut class for NET classes.