2001-06-26 16:59:19 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/statbmp.h
|
|
|
|
// Purpose: wxStaticBitmap class interface
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 25.08.00
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2000 Vadim Zeitlin
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_STATBMP_H_BASE_
|
|
|
|
#define _WX_STATBMP_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2002-08-31 07:29:13 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#pragma interface "statbmpbase.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if wxUSE_STATBMP
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxIcon;
|
|
|
|
class WXDLLEXPORT wxBitmap;
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
|
|
|
|
|
|
|
|
// a control showing an icon or a bitmap
|
|
|
|
class WXDLLEXPORT wxStaticBitmapBase : public wxControl
|
|
|
|
{
|
2001-06-30 06:14:48 -04:00
|
|
|
public:
|
2002-01-07 16:52:28 -05:00
|
|
|
virtual ~wxStaticBitmapBase();
|
2001-06-30 06:14:48 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
// our interface
|
|
|
|
virtual void SetIcon(const wxIcon& icon) = 0;
|
|
|
|
virtual void SetBitmap(const wxBitmap& bitmap) = 0;
|
|
|
|
virtual wxBitmap GetBitmap() const = 0;
|
|
|
|
|
|
|
|
// overriden base class virtuals
|
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual wxSize DoGetBestClientSize() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/statbmp.h"
|
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/statbmp.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/motif/statbmp.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXGTK__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/gtk/statbmp.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMAC__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/mac/statbmp.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#elif defined(__WXPM__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/os2/statbmp.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXSTUBS__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/stubs/statbmp.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#endif // wxUSE_STATBMP
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_STATBMP_H_BASE_
|