diff options
author | fluxgen <fluxgen> | 2002-12-04 00:02:52 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-12-04 00:02:52 (GMT) |
commit | 67e963a40c58e579bbd290ddbbaa8df7c37bac7c (patch) | |
tree | 4af8905d7356b7eb6c53684a0c1910ac70310c23 /src/FbTk/FbWindow.hh | |
parent | 044713cd751ce8e476d0dd162f4cc5e2ce4263b9 (diff) | |
download | fluxbox-67e963a40c58e579bbd290ddbbaa8df7c37bac7c.zip fluxbox-67e963a40c58e579bbd290ddbbaa8df7c37bac7c.tar.bz2 |
comparsion operator
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r-- | src/FbTk/FbWindow.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index fbd6d85..732ab83 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbWindow.hh,v 1.1 2002/12/03 16:25:25 fluxgen Exp $ | 22 | // $Id: FbWindow.hh,v 1.2 2002/12/04 00:02:52 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_FBWINDOW_HH | 24 | #ifndef FBTK_FBWINDOW_HH |
25 | #define FBTK_FBWINDOW_HH | 25 | #define FBTK_FBWINDOW_HH |
@@ -77,6 +77,8 @@ public: | |||
77 | size_t height() const { return m_height; } | 77 | size_t height() const { return m_height; } |
78 | /// compare X window | 78 | /// compare X window |
79 | bool operator == (Window win) const { return m_window == win; } | 79 | bool operator == (Window win) const { return m_window == win; } |
80 | /// compare two windows | ||
81 | bool operator == (const FbWindow &win) const { return m_window == win.m_window; } | ||
80 | private: | 82 | private: |
81 | void updateGeometry(); | 83 | void updateGeometry(); |
82 | void create(Window parent, int x, int y, size_t width, size_t height, long eventmask, | 84 | void create(Window parent, int x, int y, size_t width, size_t height, long eventmask, |