2001-06-26 20:59:19 +00: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
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 20:59:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_STATBMP_H_BASE_
|
|
|
|
#define _WX_STATBMP_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2001-06-26 20:59:19 +00:00
|
|
|
#pragma interface "statbmpbase.h"
|
|
|
|
#endif
|
|
|
|
|
2003-07-09 21:48:53 +00:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#if wxUSE_STATBMP
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxIcon;
|
|
|
|
class WXDLLEXPORT wxBitmap;
|
|
|
|
|
2005-01-21 18:48:22 +00:00
|
|
|
extern WXDLLEXPORT_DATA(const wxChar*) wxStaticBitmapNameStr;
|
2001-06-26 20:59:19 +00:00
|
|
|
|
|
|
|
// a control showing an icon or a bitmap
|
|
|
|
class WXDLLEXPORT wxStaticBitmapBase : public wxControl
|
|
|
|
{
|
2003-07-22 00:24:07 +00:00
|
|
|
public:
|
|
|
|
wxStaticBitmapBase() { }
|
2002-01-07 21:52:28 +00:00
|
|
|
virtual ~wxStaticBitmapBase();
|
2004-09-22 14:38:52 +00:00
|
|
|
|
2001-06-26 20:59:19 +00: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
|
2004-09-22 14:38:52 +00:00
|
|
|
virtual bool AcceptsFocus() const { return false; }
|
2001-06-26 20:59:19 +00:00
|
|
|
|
|
|
|
protected:
|
2004-04-07 21:47:04 +00:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
2003-07-22 00:24:07 +00:00
|
|
|
|
|
|
|
DECLARE_NO_COPY_CLASS(wxStaticBitmapBase)
|
2001-06-26 20:59:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/statbmp.h"
|
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/statbmp.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/motif/statbmp.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXGTK__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/gtk/statbmp.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/mac/statbmp.h"
|
2003-03-22 06:18:36 +00:00
|
|
|
#elif defined(__WXCOCOA__)
|
|
|
|
#include "wx/cocoa/statbmp.h"
|
1999-07-28 03:38:12 +00:00
|
|
|
#elif defined(__WXPM__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/os2/statbmp.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#endif // wxUSE_STATBMP
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_STATBMP_H_BASE_
|