• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • twin
 

twin

  • twin
group.h
1 /*****************************************************************
2  KWin - the KDE window manager
3  This file is part of the KDE project.
4 
5 Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
6 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
7 
8 You can Freely distribute this program under the GNU General Public
9 License. See the file "COPYING" for the exact licensing terms.
10 ******************************************************************/
11 
12 #ifndef KWIN_GROUP_H
13 #define KWIN_GROUP_H
14 
15 #include "utils.h"
16 #include <X11/X.h>
17 #include <netwm.h>
18 
19 namespace KWinInternal
20 {
21 
22 class Client;
23 class Workspace;
24 
25 class Group
26  {
27  public:
28  Group( Window leader, Workspace* workspace );
29  ~Group();
30  Window leader() const;
31  const Client* leaderClient() const;
32  Client* leaderClient();
33  const ClientList& members() const;
34  TQPixmap icon() const;
35  TQPixmap miniIcon() const;
36  void addMember( Client* member );
37  void removeMember( Client* member );
38  void gotLeader( Client* leader );
39  void lostLeader();
40  Workspace* workspace();
41  bool groupEvent( XEvent* e );
42  void updateUserTime( Time time = CurrentTime );
43  Time userTime() const;
44  void ref();
45  void deref();
46  private:
47  void getIcons();
48  void startupIdChanged();
49  ClientList _members;
50  Client* leader_client;
51  Window leader_wid;
52  Workspace* _workspace;
53  NETWinInfo* leader_info;
54  Time user_time;
55  int refcount;
56  };
57 
58 inline Window Group::leader() const
59  {
60  return leader_wid;
61  }
62 
63 inline const Client* Group::leaderClient() const
64  {
65  return leader_client;
66  }
67 
68 inline Client* Group::leaderClient()
69  {
70  return leader_client;
71  }
72 
73 inline const ClientList& Group::members() const
74  {
75  return _members;
76  }
77 
78 inline Workspace* Group::workspace()
79  {
80  return _workspace;
81  }
82 
83 inline Time Group::userTime() const
84  {
85  return user_time;
86  }
87 
88 } // namespace
89 
90 #endif
KWinInternal
Definition: activation.cpp:34

twin

Skip menu "twin"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

twin

Skip menu "twin"
  • kate
  • libkonq
  • twin
  •   lib
Generated for twin by doxygen 1.8.13
This website is maintained by Timothy Pearson.