1 //Auto-generated by kalyptus. DO NOT EDIT.
8 /// @class PushButton plasma/widgets/pushbutton.h <Plasma/Widgets/PushButton>
9 /// See <see cref="IPushButtonSignals"></see> for signals emitted by PushButton
10 /// </remarks> <short> Provides a plasma-themed KPushButton. </short>
11 [SmokeClass("Plasma::PushButton")]
12 public class PushButton
: QGraphicsProxyWidget
, IDisposable
{
13 protected PushButton(Type dummy
) : base((Type
) null) {}
14 protected new void CreateProxy() {
15 interceptor
= new SmokeInvocation(typeof(PushButton
), this);
17 [Q_PROPERTY("QGraphicsWidget*", "parentWidget")]
18 public QGraphicsWidget ParentWidget
{
19 get { return (QGraphicsWidget) interceptor.Invoke("parentWidget", "parentWidget()", typeof(QGraphicsWidget)); }
21 [Q_PROPERTY("QString", "text")]
23 get { return (string) interceptor.Invoke("text", "text()", typeof(string)); }
24 set { interceptor.Invoke("setText$", "setText(QString)", typeof(void), typeof(string), value); }
26 [Q_PROPERTY("QString", "image")]
28 get { return (string) interceptor.Invoke("image", "image()", typeof(string)); }
29 set { interceptor.Invoke("setImage$", "setImage(QString)", typeof(void), typeof(string), value); }
31 [Q_PROPERTY("QString", "stylesheet")]
32 public string Stylesheet
{
33 get { return (string) interceptor.Invoke("styleSheet", "styleSheet()", typeof(string)); }
34 set { interceptor.Invoke("setStyleSheet$", "setStyleSheet(QString)", typeof(void), typeof(string), value); }
36 [Q_PROPERTY("KPushButton*", "nativeWidget")]
37 public KPushButton NativeWidget
{
38 get { return (KPushButton) interceptor.Invoke("nativeWidget", "nativeWidget()", typeof(KPushButton)); }
40 public PushButton(QGraphicsWidget parent
) : this((Type
) null) {
42 interceptor
.Invoke("PushButton#", "PushButton(QGraphicsWidget*)", typeof(void), typeof(QGraphicsWidget
), parent
);
44 public PushButton() : this((Type
) null) {
46 interceptor
.Invoke("PushButton", "PushButton()", typeof(void));
48 [SmokeMethod("paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)")]
49 protected new virtual void Paint(QPainter painter
, QStyleOptionGraphicsItem option
, QWidget widget
) {
50 interceptor
.Invoke("paint###", "paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)", typeof(void), typeof(QPainter
), painter
, typeof(QStyleOptionGraphicsItem
), option
, typeof(QWidget
), widget
);
52 [SmokeMethod("paint(QPainter*, const QStyleOptionGraphicsItem*)")]
53 protected new virtual void Paint(QPainter painter
, QStyleOptionGraphicsItem option
) {
54 interceptor
.Invoke("paint##", "paint(QPainter*, const QStyleOptionGraphicsItem*)", typeof(void), typeof(QPainter
), painter
, typeof(QStyleOptionGraphicsItem
), option
);
56 [SmokeMethod("resizeEvent(QGraphicsSceneResizeEvent*)")]
57 protected override void ResizeEvent(QGraphicsSceneResizeEvent arg1
) {
58 interceptor
.Invoke("resizeEvent#", "resizeEvent(QGraphicsSceneResizeEvent*)", typeof(void), typeof(QGraphicsSceneResizeEvent
), arg1
);
60 [SmokeMethod("hoverEnterEvent(QGraphicsSceneHoverEvent*)")]
61 protected override void HoverEnterEvent(QGraphicsSceneHoverEvent arg1
) {
62 interceptor
.Invoke("hoverEnterEvent#", "hoverEnterEvent(QGraphicsSceneHoverEvent*)", typeof(void), typeof(QGraphicsSceneHoverEvent
), arg1
);
64 [SmokeMethod("hoverLeaveEvent(QGraphicsSceneHoverEvent*)")]
65 protected override void HoverLeaveEvent(QGraphicsSceneHoverEvent arg1
) {
66 interceptor
.Invoke("hoverLeaveEvent#", "hoverLeaveEvent(QGraphicsSceneHoverEvent*)", typeof(void), typeof(QGraphicsSceneHoverEvent
), arg1
);
69 interceptor
.Invoke("~PushButton", "~PushButton()", typeof(void));
71 public new void Dispose() {
72 interceptor
.Invoke("~PushButton", "~PushButton()", typeof(void));
74 protected new IPushButtonSignals Emit
{
75 get { return (IPushButtonSignals) Q_EMIT; }
79 public interface IPushButtonSignals
: IQGraphicsProxyWidgetSignals
{
80 [Q_SIGNAL("void clicked()")]