aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-04-04 13:19:10 (GMT)
committerfluxgen <fluxgen>2002-04-04 13:19:10 (GMT)
commite4d3840f267f95c50299ca725b2dfb1202a09801 (patch)
tree6fbde1b292cfb64736c6558db44ddefddac8dcc5 /src/Window.hh
parent1717c112802ac6828ced2890fd8cfe99ba96cd96 (diff)
downloadfluxbox-e4d3840f267f95c50299ca725b2dfb1202a09801.zip
fluxbox-e4d3840f267f95c50299ca725b2dfb1202a09801.tar.bz2
added startMoving, stopMoving, startResizing and stopResizing and fixed bug 528101
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh67
1 files changed, 37 insertions, 30 deletions
diff --git a/src/Window.hh b/src/Window.hh
index 73612d9..7d61873 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.hh,v 1.15 2002/04/03 23:01:04 fluxgen Exp $ 25// $Id: Window.hh,v 1.16 2002/04/04 13:19:10 fluxgen Exp $
26 26
27#ifndef WINDOW_HH 27#ifndef WINDOW_HH
28#define WINDOW_HH 28#define WINDOW_HH
@@ -120,22 +120,23 @@ public:
120 FluxboxWindow(Window, BScreen * = 0); 120 FluxboxWindow(Window, BScreen * = 0);
121 virtual ~FluxboxWindow(void); 121 virtual ~FluxboxWindow(void);
122 122
123 inline const bool isTransient(void) const { return ((transient) ? true : false); } 123 inline bool isTransient(void) const { return ((transient) ? true : false); }
124 inline const bool hasTransient(void) const { return ((client.transient) ? true : false); } 124 inline bool hasTransient(void) const { return ((client.transient) ? true : false); }
125 inline const bool isManaged() const { return managed; } 125 inline bool isManaged() const { return managed; }
126 inline const bool isFocused(void) const { return focused; } 126 inline bool isFocused(void) const { return focused; }
127 inline const bool isVisible(void) const { return visible; } 127 inline bool isVisible(void) const { return visible; }
128 inline const bool isIconic(void) const { return iconic; } 128 inline bool isIconic(void) const { return iconic; }
129 inline const bool isShaded(void) const { return shaded; } 129 inline bool isShaded(void) const { return shaded; }
130 inline const bool isMaximized(void) const { return maximized; } 130 inline bool isMaximized(void) const { return maximized; }
131 inline const bool isIconifiable(void) const { return functions.iconify; } 131 inline bool isIconifiable(void) const { return functions.iconify; }
132 inline const bool isMaximizable(void) const { return functions.maximize; } 132 inline bool isMaximizable(void) const { return functions.maximize; }
133 inline const bool isResizable(void) const { return functions.resize; } 133 inline bool isResizable(void) const { return functions.resize; }
134 inline const bool isClosable(void) const { return functions.close; } 134 inline bool isClosable(void) const { return functions.close; }
135 inline const bool isStuck(void) const { return stuck; } 135 inline bool isStuck(void) const { return stuck; }
136 inline const bool hasTitlebar(void) const { return decorations.titlebar; } 136 inline bool hasTitlebar(void) const { return decorations.titlebar; }
137 inline const bool hasTab(void) const { return (tab!=0 ? true : false); } 137 inline bool hasTab(void) const { return (tab!=0 ? true : false); }
138 static void showError(FluxboxWindow::Error error); 138 inline bool isMoving(void) const { return moving; }
139 inline bool isResizing(void) const { return resizing; }
139 inline BScreen *getScreen(void) const { return screen; } 140 inline BScreen *getScreen(void) const { return screen; }
140 inline Tab *getTab(void) const { return tab; } 141 inline Tab *getTab(void) const { return tab; }
141 inline FluxboxWindow *getTransient(void) const { return client.transient; } 142 inline FluxboxWindow *getTransient(void) const { return client.transient; }
@@ -148,18 +149,18 @@ public:
148 149
149 inline const std::string &getTitle(void) const { return client.title; } 150 inline const std::string &getTitle(void) const { return client.title; }
150 inline const std::string &getIconTitle(void) const { return client.icon_title; } 151 inline const std::string &getIconTitle(void) const { return client.icon_title; }
151 inline const int getXFrame(void) const { return frame.x; } 152 inline int getXFrame(void) const { return frame.x; }
152 inline const int getYFrame(void) const { return frame.y; } 153 inline int getYFrame(void) const { return frame.y; }
153 inline const int getXClient(void) const { return client.x; } 154 inline int getXClient(void) const { return client.x; }
154 inline const int getYClient(void) const { return client.y; } 155 inline int getYClient(void) const { return client.y; }
155 inline const unsigned int getWorkspaceNumber(void) const { return workspace_number; } 156 inline unsigned int getWorkspaceNumber(void) const { return workspace_number; }
156 inline const int getWindowNumber(void) const { return window_number; } 157 inline int getWindowNumber(void) const { return window_number; }
157 inline const WinLayer getLayer(void) const { return m_layer; } 158 inline WinLayer getLayer(void) const { return m_layer; }
158 inline const unsigned int getWidth(void) const { return frame.width; } 159 inline unsigned int getWidth(void) const { return frame.width; }
159 inline const unsigned int getHeight(void) const { return frame.height; } 160 inline unsigned int getHeight(void) const { return frame.height; }
160 inline const unsigned int getClientHeight(void) const { return client.height; } 161 inline unsigned int getClientHeight(void) const { return client.height; }
161 inline const unsigned int getClientWidth(void) const { return client.width; } 162 inline unsigned int getClientWidth(void) const { return client.width; }
162 inline const unsigned int getTitleHeight(void) const { return frame.title_h; } 163 inline unsigned int getTitleHeight(void) const { return frame.title_h; }
163 164
164 inline void setWindowNumber(int n) { window_number = n; } 165 inline void setWindowNumber(int n) { window_number = n; }
165 166
@@ -197,6 +198,8 @@ public:
197 void exposeEvent(XExposeEvent *); 198 void exposeEvent(XExposeEvent *);
198 void configureRequestEvent(XConfigureRequestEvent *); 199 void configureRequestEvent(XConfigureRequestEvent *);
199 200
201 static void showError(FluxboxWindow::Error error);
202
200 #ifdef SHAPE 203 #ifdef SHAPE
201 void shapeEvent(XShapeEvent *); 204 void shapeEvent(XShapeEvent *);
202 #endif // SHAPE 205 #endif // SHAPE
@@ -212,6 +215,7 @@ public:
212 void setGnomeState(int state); 215 void setGnomeState(int state);
213 inline int getGnomeHints() const { return gnome_hints; } 216 inline int getGnomeHints() const { return gnome_hints; }
214 #endif 217 #endif
218
215private: 219private:
216 BImageControl *image_ctrl; 220 BImageControl *image_ctrl;
217 221
@@ -302,7 +306,10 @@ private:
302 void grabButtons(); 306 void grabButtons();
303 307
304 void createButton(int type, ButtonEventProc, ButtonEventProc, ButtonDrawProc); 308 void createButton(int type, ButtonEventProc, ButtonEventProc, ButtonDrawProc);
305 309 void startMoving(Window win);
310 void stopMoving();
311 void startResizing(XMotionEvent *me, bool left);
312 void stopResizing(Window win=0);
306 #ifdef GNOME 313 #ifdef GNOME
307 314
308 void updateGnomeAtoms(); 315 void updateGnomeAtoms();