From d2959aeb6b86b4a43168a9f9fbd123a68c1f821e Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sun, 7 Dec 2003 16:32:12 +0000
Subject: usePixmap accessor

---
 src/FbTk/Texture.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/FbTk/Texture.hh b/src/FbTk/Texture.hh
index 9c1df6f..b7add3f 100644
--- a/src/FbTk/Texture.hh
+++ b/src/FbTk/Texture.hh
@@ -22,7 +22,7 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: Texture.hh,v 1.4 2003/08/12 11:44:19 fluxgen Exp $
+// $Id: Texture.hh,v 1.5 2003/12/07 16:32:12 fluxgen Exp $
 
 #ifndef FBTK_TEXTURE_HH
 #define FBTK_TEXTURE_HH
@@ -89,7 +89,7 @@ public:
     const Color &loColor() const { return m_locolor; }
     const FbTk::FbPixmap &pixmap() const { return m_pixmap; }
     inline unsigned long type() const { return m_type; }
-
+    inline bool usePixmap() const { return !( type() == (FLAT | SOLID) && pixmap().drawable() == 0); }
 
 private:
     FbTk::Color m_color, m_color_to, m_hicolor, m_locolor;
-- 
cgit v0.11.2