From 662d1a459c15fb1616b5075a41529048520f7606 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 6 Oct 2004 06:50:27 +0000 Subject: setTile for X Drawable --- src/FbTk/GContext.hh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/FbTk/GContext.hh b/src/FbTk/GContext.hh index d3dde35..58e9f3d 100644 --- a/src/FbTk/GContext.hh +++ b/src/FbTk/GContext.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: GContext.hh,v 1.11 2004/09/11 23:00:44 fluxgen Exp $ +// $Id: GContext.hh,v 1.12 2004/10/06 06:50:27 fluxgen Exp $ #ifndef FBTK_GCONTEXT_HH #define FBTK_GCONTEXT_HH @@ -66,8 +66,12 @@ public: XSetBackground(m_display, m_gc, pixel_value); } + inline void setTile(Drawable draw) { + XSetTile(m_display, m_gc, draw); + } + inline void setTile(const FbTk::FbPixmap &draw) { - XSetTile(m_display, m_gc, draw.drawable()); + setTile(draw.drawable()); } /// not implemented -- cgit v0.11.2