diff options
Diffstat (limited to 'src/IconBar.hh')
-rw-r--r-- | src/IconBar.hh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/IconBar.hh b/src/IconBar.hh index 4bd0a8e..4da0d07 100644 --- a/src/IconBar.hh +++ b/src/IconBar.hh | |||
@@ -32,9 +32,10 @@ public: | |||
32 | ~IconBarObj(); | 32 | ~IconBarObj(); |
33 | inline Window getIconWin(void) { return m_iconwin; } | 33 | inline Window getIconWin(void) { return m_iconwin; } |
34 | inline FluxboxWindow *getFluxboxWin(void) { return m_fluxboxwin; } | 34 | inline FluxboxWindow *getFluxboxWin(void) { return m_fluxboxwin; } |
35 | unsigned int getWidth(void); | ||
35 | private: | 36 | private: |
36 | Window m_iconwin; | ||
37 | FluxboxWindow *m_fluxboxwin; | 37 | FluxboxWindow *m_fluxboxwin; |
38 | Window m_iconwin; | ||
38 | }; | 39 | }; |
39 | 40 | ||
40 | class IconBar | 41 | class IconBar |
@@ -42,21 +43,24 @@ class IconBar | |||
42 | public: | 43 | public: |
43 | IconBar(BScreen *scrn, Window parent); | 44 | IconBar(BScreen *scrn, Window parent); |
44 | ~IconBar(); | 45 | ~IconBar(); |
45 | void draw(); | 46 | void draw(); //TODO |
46 | void reconfigure(); | 47 | void reconfigure(); |
47 | Window addIcon(FluxboxWindow *fluxboxwin); | 48 | Window addIcon(FluxboxWindow *fluxboxwin); |
48 | Window delIcon(FluxboxWindow *fluxboxwin); | 49 | Window delIcon(FluxboxWindow *fluxboxwin); |
49 | void buttonPressEvent(XButtonEvent *be); | 50 | void buttonPressEvent(XButtonEvent *be); |
50 | FluxboxWindow *findWindow(Window w); | 51 | FluxboxWindow *findWindow(Window w); |
52 | IconBarObj *findIcon(FluxboxWindow *fluxboxwin); | ||
51 | void exposeEvent(XExposeEvent *ee); | 53 | void exposeEvent(XExposeEvent *ee); |
54 | |||
55 | void draw(IconBarObj *obj, int width); | ||
52 | private: | 56 | private: |
53 | typedef LinkedList<IconBarObj> IconList; | 57 | typedef LinkedList<IconBarObj> IconList; |
54 | typedef LinkedListIterator<IconBarObj> IconListIterator; | 58 | typedef LinkedListIterator<IconBarObj> IconListIterator; |
55 | 59 | ||
56 | void draw(IconBarObj *obj, int width); | 60 | // void draw(IconBarObj *obj, int width); |
57 | void loadTheme(unsigned int width, unsigned int height); | 61 | void loadTheme(unsigned int width, unsigned int height); |
58 | void decorate(Window win); | 62 | void decorate(Window win); |
59 | IconBarObj *findIcon(FluxboxWindow *fluxboxwin); | 63 | // IconBarObj *findIcon(FluxboxWindow *fluxboxwin); |
60 | void repositionIcons(void); | 64 | void repositionIcons(void); |
61 | Window createIconWindow(FluxboxWindow *fluxboxwin, Window parent); | 65 | Window createIconWindow(FluxboxWindow *fluxboxwin, Window parent); |
62 | BScreen *m_screen; | 66 | BScreen *m_screen; |