aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2001-12-17 00:37:07 (GMT)
committerfluxgen <fluxgen>2001-12-17 00:37:07 (GMT)
commitc93fa789daed6f72682ed92ccd39b5e6e3d0c089 (patch)
treed08aef6c59364bfb1c31d85d6db663f48d378536
parent05cec54a399f8b5fde81f04bfc30f60fa4e8afe3 (diff)
downloadfluxbox_paul-c93fa789daed6f72682ed92ccd39b5e6e3d0c089.zip
fluxbox_paul-c93fa789daed6f72682ed92ccd39b5e6e3d0c089.tar.bz2
Added getLast, last and first functions
-rw-r--r--src/Tab.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Tab.hh b/src/Tab.hh
index c20b6ba..41a6d90 100644
--- a/src/Tab.hh
+++ b/src/Tab.hh
@@ -42,6 +42,9 @@ public:
42 void draw(bool pressed); 42 void draw(bool pressed);
43 inline Tab *next() const { return m_next; } 43 inline Tab *next() const { return m_next; }
44 inline Tab *prev() const { return m_prev; } 44 inline Tab *prev() const { return m_prev; }
45 inline Tab *last() { return getLast(this); }
46 inline Tab *first() { return getFirst(this); }
47
45 inline FluxboxWindow *getWindow() const { return m_win; } 48 inline FluxboxWindow *getWindow() const { return m_win; }
46 inline unsigned int getTabWidth() const { return m_size_w; } 49 inline unsigned int getTabWidth() const { return m_size_w; }
47 inline unsigned int getTabHeight() const { return m_size_h; } 50 inline unsigned int getTabHeight() const { return m_size_h; }
@@ -62,6 +65,7 @@ public:
62 void exposeEvent(XExposeEvent *ee); 65 void exposeEvent(XExposeEvent *ee);
63 void motionNotifyEvent(XMotionEvent *me); 66 void motionNotifyEvent(XMotionEvent *me);
64 static Tab *getFirst(Tab *current); 67 static Tab *getFirst(Tab *current);
68 static Tab *getLast(Tab *current);
65 void disconnect(); 69 void disconnect();
66 70
67 enum { PTop = 0, PBottom = 5, PLeft = 10, PRight = 15, pnone = 20}; 71 enum { PTop = 0, PBottom = 5, PLeft = 10, PRight = 15, pnone = 20};