]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/statbmp.h
Motif compile fixes
[wxWidgets.git] / include / wx / motif / statbmp.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbmp.h
3// Purpose: wxStaticBitmap class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_STATBMP_H_
13#define _WX_STATBMP_H_
14
15#ifdef __GNUG__
16#pragma interface "statbmp.h"
17#endif
18
19#include "wx/control.h"
20
21WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr;
22
bfc6fde4 23class WXDLLEXPORT wxStaticBitmap : public wxControl
9b6dbb09 24{
bfc6fde4
VZ
25DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
26
27public:
28 wxStaticBitmap() { }
29 ~wxStaticBitmap();
30
31 wxStaticBitmap(wxWindow *parent, wxWindowID id,
32 const wxBitmap& label,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = 0,
36 const wxString& name = wxStaticBitmapNameStr)
37 {
38 Create(parent, id, label, pos, size, style, name);
39 }
40
41 bool Create(wxWindow *parent, wxWindowID id,
42 const wxBitmap& label,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = 0,
46 const wxString& name = wxStaticBitmapNameStr);
47
48 virtual void SetBitmap(const wxBitmap& bitmap);
49
50 virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
51 virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
52
53 wxBitmap& GetBitmap() const { return (wxBitmap&) m_messageBitmap; }
54
55 // overriden base class virtuals
56 virtual bool AcceptsFocus() const { return FALSE; }
57
58 // Implementation
59 virtual void ChangeFont(bool keepOriginalSize = TRUE);
60 virtual void ChangeBackgroundColour();
61 virtual void ChangeForegroundColour();
62
63protected:
64 wxBitmap m_messageBitmap;
9b6dbb09
JS
65};
66
67#endif
68 // _WX_STATBMP_H_