1 /*****************************************************************************
2 * gtk2_bitmap.h: GTK2 implementation of the Bitmap class
3 *****************************************************************************
4 * Copyright (C) 2003 VideoLAN
5 * $Id: gtk2_bitmap.h,v 1.2 2003/04/13 20:07:34 asmax Exp $
7 * Authors: Cyril Deguet <asmax@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111,
23 *****************************************************************************/
26 #ifndef VLC_GTK2_BITMAP
27 #define VLC_GTK2_BITMAP
29 //--- GTK2 -----------------------------------------------------------------
32 //--- GENERAL ---------------------------------------------------------------
36 //---------------------------------------------------------------------------
41 //---------------------------------------------------------------------------
42 class GTK2Bitmap : public Bitmap
49 GTK2Bitmap( intf_thread_t *p_intf, string FileName, int AColor );
50 GTK2Bitmap( intf_thread_t *p_intf, Graphics *from, int x, int y,
51 int w, int h, int AColor );
52 GTK2Bitmap( intf_thread_t *p_intf, Bitmap *c );
55 virtual ~GTK2Bitmap();
57 virtual void DrawBitmap( int x, int y, int w, int h, int xRef, int yRef,
59 virtual bool Hit( int x, int y );
61 virtual int GetBmpPixel( int x, int y );
62 virtual void SetBmpPixel( int x, int y, int color );
64 GdkBitmap *GetBmpDC() { return bmpDC; }
66 //---------------------------------------------------------------------------