22 #include <sys/types.h>
23 #include <tqwindowdefs.h>
26 #include "kdelibs_export.h"
30 #include <netwm_def.h>
92 static void activateWindow( WId win,
long time = 0 );
108 static void forceActiveWindow( WId win,
long time = 0 );
113 static void setActiveWindow( WId win ) KDE_DEPRECATED;
126 static void demandAttention( WId win,
bool set =
true );
138 static void setUserTime( WId win,
long time );
143 static void invokeContextHelp();
159 static void setMainWindow( TQWidget* subwindow, WId mainwindow );
170 static void setSystemTrayWindowFor( WId trayWin, WId forWin );
173 class WindowInfoPrivate;
187 static WindowInfo windowInfo( WId win,
unsigned long properties = 0,
unsigned long properties2 = 0 );
196 static WId transientFor( WId window );
203 static WId groupLeader( WId window );
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();
476 bool isMinimized()
const;
477 bool isIconified()
const;
498 TQString visibleNameWithState()
const;
505 static Info info( WId win ) KDE_DEPRECATED;
514 static void appStarted() KDE_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;
552 bool hasState(
unsigned long s )
const {
return ( state() & s ) == s; }
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;
669 WId transientFor()
const;
674 WId groupLeader()
const;
682 TQCString windowClassClass()
const;
690 TQCString windowClassName()
const;
697 TQCString windowRole()
const;
704 TQCString clientMachine()
const;
713 WindowInfo(
const WindowInfo& );
714 WindowInfo& operator=(
const WindowInfo& );
716 WindowInfoPrivate* d;