1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_plaf_basic_BasicButtonUI__
|
5 |
|
|
#define __javax_swing_plaf_basic_BasicButtonUI__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/plaf/ButtonUI.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace java
|
13 |
|
|
{
|
14 |
|
|
namespace awt
|
15 |
|
|
{
|
16 |
|
|
class Dimension;
|
17 |
|
|
class Graphics;
|
18 |
|
|
class Insets;
|
19 |
|
|
class Rectangle;
|
20 |
|
|
}
|
21 |
|
|
}
|
22 |
|
|
namespace javax
|
23 |
|
|
{
|
24 |
|
|
namespace swing
|
25 |
|
|
{
|
26 |
|
|
class AbstractButton;
|
27 |
|
|
class Icon;
|
28 |
|
|
class JComponent;
|
29 |
|
|
namespace plaf
|
30 |
|
|
{
|
31 |
|
|
class ComponentUI;
|
32 |
|
|
namespace basic
|
33 |
|
|
{
|
34 |
|
|
class BasicButtonListener;
|
35 |
|
|
class BasicButtonUI;
|
36 |
|
|
}
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
}
|
40 |
|
|
}
|
41 |
|
|
|
42 |
|
|
class javax::swing::plaf::basic::BasicButtonUI : public ::javax::swing::plaf::ButtonUI
|
43 |
|
|
{
|
44 |
|
|
|
45 |
|
|
public:
|
46 |
|
|
BasicButtonUI();
|
47 |
|
|
static ::javax::swing::plaf::ComponentUI * createUI(::javax::swing::JComponent *);
|
48 |
|
|
virtual jint getDefaultTextIconGap(::javax::swing::AbstractButton *);
|
49 |
|
|
public: // actually protected
|
50 |
|
|
virtual void clearTextShiftOffset();
|
51 |
|
|
virtual jint getTextShiftOffset();
|
52 |
|
|
virtual void setTextShiftOffset();
|
53 |
|
|
virtual ::java::lang::String * getPropertyPrefix();
|
54 |
|
|
virtual void installDefaults(::javax::swing::AbstractButton *);
|
55 |
|
|
virtual void uninstallDefaults(::javax::swing::AbstractButton *);
|
56 |
|
|
virtual ::javax::swing::plaf::basic::BasicButtonListener * createButtonListener(::javax::swing::AbstractButton *);
|
57 |
|
|
virtual void installListeners(::javax::swing::AbstractButton *);
|
58 |
|
|
virtual void uninstallListeners(::javax::swing::AbstractButton *);
|
59 |
|
|
virtual void installKeyboardActions(::javax::swing::AbstractButton *);
|
60 |
|
|
virtual void uninstallKeyboardActions(::javax::swing::AbstractButton *);
|
61 |
|
|
public:
|
62 |
|
|
virtual void installUI(::javax::swing::JComponent *);
|
63 |
|
|
virtual void uninstallUI(::javax::swing::JComponent *);
|
64 |
|
|
virtual ::java::awt::Dimension * getMinimumSize(::javax::swing::JComponent *);
|
65 |
|
|
virtual ::java::awt::Dimension * getMaximumSize(::javax::swing::JComponent *);
|
66 |
|
|
virtual ::java::awt::Dimension * getPreferredSize(::javax::swing::JComponent *);
|
67 |
|
|
public: // actually package-private
|
68 |
|
|
static ::javax::swing::Icon * currentIcon(::javax::swing::AbstractButton *);
|
69 |
|
|
public:
|
70 |
|
|
virtual void paint(::java::awt::Graphics *, ::javax::swing::JComponent *);
|
71 |
|
|
public: // actually protected
|
72 |
|
|
virtual void paintFocus(::java::awt::Graphics *, ::javax::swing::AbstractButton *, ::java::awt::Rectangle *, ::java::awt::Rectangle *, ::java::awt::Rectangle *);
|
73 |
|
|
virtual void paintIcon(::java::awt::Graphics *, ::javax::swing::JComponent *, ::java::awt::Rectangle *);
|
74 |
|
|
virtual void paintButtonPressed(::java::awt::Graphics *, ::javax::swing::AbstractButton *);
|
75 |
|
|
virtual void paintText(::java::awt::Graphics *, ::javax::swing::JComponent *, ::java::awt::Rectangle *, ::java::lang::String *);
|
76 |
|
|
virtual void paintText(::java::awt::Graphics *, ::javax::swing::AbstractButton *, ::java::awt::Rectangle *, ::java::lang::String *);
|
77 |
|
|
private:
|
78 |
|
|
::javax::swing::plaf::basic::BasicButtonListener * getButtonListener(::javax::swing::AbstractButton *);
|
79 |
|
|
public: // actually package-private
|
80 |
|
|
static ::java::awt::Rectangle * viewR;
|
81 |
|
|
static ::java::awt::Rectangle * iconR;
|
82 |
|
|
static ::java::awt::Rectangle * textR;
|
83 |
|
|
static ::java::awt::Insets * cachedInsets;
|
84 |
|
|
private:
|
85 |
|
|
static ::javax::swing::plaf::basic::BasicButtonUI * sharedUI;
|
86 |
|
|
static ::javax::swing::plaf::basic::BasicButtonListener * sharedListener;
|
87 |
|
|
public: // actually protected
|
88 |
|
|
jint __attribute__((aligned(__alignof__( ::javax::swing::plaf::ButtonUI)))) defaultTextIconGap;
|
89 |
|
|
jint defaultTextShiftOffset;
|
90 |
|
|
private:
|
91 |
|
|
jint textShiftOffset;
|
92 |
|
|
public:
|
93 |
|
|
static ::java::lang::Class class$;
|
94 |
|
|
};
|
95 |
|
|
|
96 |
|
|
#endif // __javax_swing_plaf_basic_BasicButtonUI__
|