• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/mac/classic/
1/////////////////////////////////////////////////////////////////////////////
2// Name:        bmpbuttn.h
3// Purpose:     wxBitmapButton class
4// Author:      Stefan Csomor
5// Modified by:
6// Created:     1998-01-01
7// RCS-ID:      $Id: bmpbuttn.h 36891 2006-01-16 14:59:55Z MR $
8// Copyright:   (c) Stefan Csomor
9// Licence:     wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BMPBUTTN_H_
13#define _WX_BMPBUTTN_H_
14
15#include "wx/button.h"
16
17WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
18
19#define wxDEFAULT_BUTTON_MARGIN 4
20
21class WXDLLEXPORT wxBitmapButton: public wxBitmapButtonBase
22{
23    DECLARE_DYNAMIC_CLASS(wxBitmapButton)
24
25public:
26    wxBitmapButton()
27        {
28            SetMargins(wxDEFAULT_BUTTON_MARGIN, wxDEFAULT_BUTTON_MARGIN);
29        }
30
31    wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
32                   const wxPoint& pos = wxDefaultPosition,
33                   const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
34                   const wxValidator& validator = wxDefaultValidator,
35                   const wxString& name = wxButtonNameStr)
36        {
37            Create(parent, id, bitmap, pos, size, style, validator, name);
38        }
39
40    bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
41                const wxPoint& pos = wxDefaultPosition,
42                const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
43                const wxValidator& validator = wxDefaultValidator,
44                const wxString& name = wxButtonNameStr);
45
46    virtual void SetBitmapLabel(const wxBitmap& bitmap);
47
48/*
49  // TODO: Implementation
50  virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
51  virtual void DrawFace( WXHDC dc, int left, int top, int right, int bottom, bool sel );
52  virtual void DrawButtonFocus( WXHDC dc, int left, int top, int right, int bottom, bool sel );
53  virtual void DrawButtonDisable( WXHDC dc, int left, int top, int right, int bottom, bool with_marg );
54*/
55
56protected:
57    virtual wxSize DoGetBestSize() const;
58};
59
60#endif
61    // _WX_BMPBUTTN_H_
62