//Auto-generated by kalyptus. DO NOT EDIT.
namespace Plasma {
    using Plasma;
    using System;
    using Kimono;
    using Qyoto;
    /// <remarks>
    ///  @class ToolButton plasma/widgets/pushbutton.h <Plasma/Widgets/ToolButton>
    ///  See <see cref="IToolButtonSignals"></see> for signals emitted by ToolButton
    /// </remarks>        <short> Provides a plasma-themed QToolButton.  </short>
    [SmokeClass("Plasma::ToolButton")]
    public class ToolButton : QGraphicsProxyWidget, IDisposable {
        protected ToolButton(Type dummy) : base((Type) null) {}
        protected new void CreateProxy() {
            interceptor = new SmokeInvocation(typeof(ToolButton), this);
        }
        [Q_PROPERTY("QGraphicsWidget*", "parentWidget")]
        public QGraphicsWidget ParentWidget {
            get { return (QGraphicsWidget) interceptor.Invoke("parentWidget", "parentWidget()", typeof(QGraphicsWidget)); }
        }
        [Q_PROPERTY("QString", "text")]
        public string Text {
            get { return (string) interceptor.Invoke("text", "text()", typeof(string)); }
            set { interceptor.Invoke("setText$", "setText(QString)", typeof(void), typeof(string), value); }
        }
        [Q_PROPERTY("bool", "autoRaise")]
        public bool AutoRaise {
            get { return (bool) interceptor.Invoke("autoRaise", "autoRaise()", typeof(bool)); }
            set { interceptor.Invoke("setAutoRaise$", "setAutoRaise(bool)", typeof(void), typeof(bool), value); }
        }
        [Q_PROPERTY("QString", "image")]
        public string Image {
            get { return (string) interceptor.Invoke("image", "image()", typeof(string)); }
            set { interceptor.Invoke("setImage$", "setImage(QString)", typeof(void), typeof(string), value); }
        }
        [Q_PROPERTY("QString", "stylesheet")]
        public string Stylesheet {
            get { return (string) interceptor.Invoke("styleSheet", "styleSheet()", typeof(string)); }
            set { interceptor.Invoke("setStyleSheet$", "setStyleSheet(QString)", typeof(void), typeof(string), value); }
        }
        [Q_PROPERTY("QToolButton*", "nativeWidget")]
        public QToolButton NativeWidget {
            get { return (QToolButton) interceptor.Invoke("nativeWidget", "nativeWidget()", typeof(QToolButton)); }
        }
        [Q_PROPERTY("QAction*", "action")]
        public QAction Action {
            get { return (QAction) interceptor.Invoke("action", "action()", typeof(QAction)); }
            set { interceptor.Invoke("setAction#", "setAction(QAction*)", typeof(void), typeof(QAction), value); }
        }
        public ToolButton(QGraphicsWidget parent) : this((Type) null) {
            CreateProxy();
            interceptor.Invoke("ToolButton#", "ToolButton(QGraphicsWidget*)", typeof(void), typeof(QGraphicsWidget), parent);
        }
        public ToolButton() : this((Type) null) {
            CreateProxy();
            interceptor.Invoke("ToolButton", "ToolButton()", typeof(void));
        }
        /// <remarks>
        ///  sets the icon for this toolbutton
        ///  @arg icon the icon we want to use
        /// </remarks>        <short>    sets the icon for this toolbutton </short>
        public void SetIcon(QIcon icon) {
            interceptor.Invoke("setIcon#", "setIcon(const QIcon&)", typeof(void), typeof(QIcon), icon);
        }
        /// <remarks>
        /// </remarks>        <return> the icon of this button
        /// </return>
        ///         <short>   </short>
        public QIcon Icon() {
            return (QIcon) interceptor.Invoke("icon", "icon() const", typeof(QIcon));
        }
        [SmokeMethod("paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)")]
        protected new virtual void Paint(QPainter painter, QStyleOptionGraphicsItem option, QWidget widget) {
            interceptor.Invoke("paint###", "paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionGraphicsItem), option, typeof(QWidget), widget);
        }
        [SmokeMethod("paint(QPainter*, const QStyleOptionGraphicsItem*)")]
        protected new virtual void Paint(QPainter painter, QStyleOptionGraphicsItem option) {
            interceptor.Invoke("paint##", "paint(QPainter*, const QStyleOptionGraphicsItem*)", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionGraphicsItem), option);
        }
        [SmokeMethod("resizeEvent(QGraphicsSceneResizeEvent*)")]
        protected override void ResizeEvent(QGraphicsSceneResizeEvent arg1) {
            interceptor.Invoke("resizeEvent#", "resizeEvent(QGraphicsSceneResizeEvent*)", typeof(void), typeof(QGraphicsSceneResizeEvent), arg1);
        }
        [SmokeMethod("hoverEnterEvent(QGraphicsSceneHoverEvent*)")]
        protected override void HoverEnterEvent(QGraphicsSceneHoverEvent arg1) {
            interceptor.Invoke("hoverEnterEvent#", "hoverEnterEvent(QGraphicsSceneHoverEvent*)", typeof(void), typeof(QGraphicsSceneHoverEvent), arg1);
        }
        [SmokeMethod("hoverLeaveEvent(QGraphicsSceneHoverEvent*)")]
        protected override void HoverLeaveEvent(QGraphicsSceneHoverEvent arg1) {
            interceptor.Invoke("hoverLeaveEvent#", "hoverLeaveEvent(QGraphicsSceneHoverEvent*)", typeof(void), typeof(QGraphicsSceneHoverEvent), arg1);
        }
        ~ToolButton() {
            interceptor.Invoke("~ToolButton", "~ToolButton()", typeof(void));
        }
        public new void Dispose() {
            interceptor.Invoke("~ToolButton", "~ToolButton()", typeof(void));
        }
        protected new IToolButtonSignals Emit {
            get { return (IToolButtonSignals) Q_EMIT; }
        }
    }

    public interface IToolButtonSignals : IQGraphicsProxyWidgetSignals {
        [Q_SIGNAL("void clicked()")]
        void Clicked();
    }
}
