diff options
author | akir <akir> | 2004-09-10 15:46:08 (GMT) |
---|---|---|
committer | akir <akir> | 2004-09-10 15:46:08 (GMT) |
commit | a7967dfb25c2f6df31e84d3ffdab952d44efaab1 (patch) | |
tree | 65e2e531851c2bff003e2f11400d0c44082d2efd /src/FbTk/FbDrawable.hh | |
parent | 631dfbbc6377b0338b56131e51b37fe836ff96bf (diff) | |
download | fluxbox_pavel-a7967dfb25c2f6df31e84d3ffdab952d44efaab1.zip fluxbox_pavel-a7967dfb25c2f6df31e84d3ffdab952d44efaab1.tar.bz2 |
put App::instance()->display() to FbDrawable::s_display to avoid too much
unnecessary calls
Diffstat (limited to 'src/FbTk/FbDrawable.hh')
-rw-r--r-- | src/FbTk/FbDrawable.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbTk/FbDrawable.hh b/src/FbTk/FbDrawable.hh index 06c7a9d..4469f84 100644 --- a/src/FbTk/FbDrawable.hh +++ b/src/FbTk/FbDrawable.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: FbDrawable.hh,v 1.4 2003/12/16 17:06:49 fluxgen Exp $ | 22 | // $Id: FbDrawable.hh,v 1.5 2004/09/10 15:46:08 akir Exp $ |
23 | #ifndef FBTK_FBDRAWABLE_HH | 23 | #ifndef FBTK_FBDRAWABLE_HH |
24 | #define FBTK_FBDRAWABLE_HH | 24 | #define FBTK_FBDRAWABLE_HH |
25 | 25 | ||
@@ -30,6 +30,7 @@ namespace FbTk { | |||
30 | /// Basic drawing functions for X drawables | 30 | /// Basic drawing functions for X drawables |
31 | class FbDrawable { | 31 | class FbDrawable { |
32 | public: | 32 | public: |
33 | FbDrawable(); | ||
33 | virtual ~FbDrawable() { } | 34 | virtual ~FbDrawable() { } |
34 | virtual void copyArea(Drawable src, GC gc, | 35 | virtual void copyArea(Drawable src, GC gc, |
35 | int src_x, int src_y, | 36 | int src_x, int src_y, |
@@ -55,6 +56,8 @@ public: | |||
55 | virtual Drawable drawable() const = 0; | 56 | virtual Drawable drawable() const = 0; |
56 | virtual unsigned int width() const = 0; | 57 | virtual unsigned int width() const = 0; |
57 | virtual unsigned int height() const = 0; | 58 | virtual unsigned int height() const = 0; |
59 | protected: | ||
60 | static Display *s_display; // display connection // display connection | ||
58 | }; | 61 | }; |
59 | 62 | ||
60 | } // end namespace FbTk | 63 | } // end namespace FbTk |