Exemplo n.º 1
0
            public override QSize SizeHint(Qyoto.QStyleOptionViewItem option, Qyoto.QModelIndex index)
            {
                var hint = base.SizeHint(option, index);

                hint.SetHeight(hint.Height() + 12);
                return(hint);
            }
 public override QSize SizeHint(QStyleOptionViewItem option, QModelIndex index)
 {
     GCHandle ret = (GCHandle) QAbstractItemDelegateSizeHint((IntPtr) GCHandle.Alloc(this),
                                 (IntPtr) GCHandle.Alloc(option),
                                 (IntPtr) GCHandle.Alloc(index));
     QSize s = (QSize) ret.Target;
     ret.Free();
     return s;
 }
Exemplo n.º 3
0
        public override QSize SizeHint(QStyleOptionViewItem option, QModelIndex index)
        {
            GCHandle ret = (GCHandle)QAbstractItemDelegateSizeHint((IntPtr)GCHandle.Alloc(this),
                                                                   (IntPtr)GCHandle.Alloc(option),
                                                                   (IntPtr)GCHandle.Alloc(index));
            QSize s = (QSize)ret.Target;

            ret.SynchronizedFree();
            return(s);
        }
Exemplo n.º 4
0
 protected QPixmap Decoration(QStyleOptionViewItem option, QVariant variant)
 {
     return((QPixmap)interceptor.Invoke("decoration##", "decoration(const QStyleOptionViewItem&, const QVariant&) const", typeof(QPixmap), typeof(QStyleOptionViewItem), option, typeof(QVariant), variant));
 }
Exemplo n.º 5
0
 protected QRect Rect(QStyleOptionViewItem option, QModelIndex index, int role)
 {
     return((QRect)interceptor.Invoke("rect##$", "rect(const QStyleOptionViewItem&, const QModelIndex&, int) const", typeof(QRect), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index, typeof(int), role));
 }
Exemplo n.º 6
0
 protected void DrawBackground(QPainter painter, QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("drawBackground###", "drawBackground(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 7
0
 public QStyleOptionViewItem(QStyleOptionViewItem other)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QStyleOptionViewItem#", "QStyleOptionViewItem(const QStyleOptionViewItem&)", typeof(void), typeof(QStyleOptionViewItem), other);
 }
Exemplo n.º 8
0
 public override QWidget CreateEditor(QWidget parent, QStyleOptionViewItem option, QModelIndex index)
 {
     return (QWidget) interceptor.Invoke("createEditor###", "createEditor(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(QWidget), typeof(QWidget), parent, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 9
0
 public override QSize SizeHint(QStyleOptionViewItem option, QModelIndex index)
 {
     return (QSize) interceptor.Invoke("sizeHint##", "sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const", typeof(QSize), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 10
0
 protected void DrawBackground(QPainter painter, QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("drawBackground###", "drawBackground(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 11
0
 protected QStyleOptionViewItem SetOptions(QModelIndex index, QStyleOptionViewItem option)
 {
     return (QStyleOptionViewItem) interceptor.Invoke("setOptions##", "setOptions(const QModelIndex&, const QStyleOptionViewItem&) const", typeof(QStyleOptionViewItem), typeof(QModelIndex), index, typeof(QStyleOptionViewItem), option);
 }
Exemplo n.º 12
0
 protected QRect Rect(QStyleOptionViewItem option, QModelIndex index, int role)
 {
     return (QRect) interceptor.Invoke("rect##$", "rect(const QStyleOptionViewItem&, const QModelIndex&, int) const", typeof(QRect), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index, typeof(int), role);
 }
Exemplo n.º 13
0
 protected virtual void DrawFocus(QPainter painter, QStyleOptionViewItem option, QRect rect)
 {
     interceptor.Invoke("drawFocus###", "drawFocus(QPainter*, const QStyleOptionViewItem&, const QRect&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect);
 }
Exemplo n.º 14
0
 protected virtual void DrawDisplay(QPainter painter, QStyleOptionViewItem option, QRect rect, string text)
 {
     interceptor.Invoke("drawDisplay###$", "drawDisplay(QPainter*, const QStyleOptionViewItem&, const QRect&, const QString&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect, typeof(string), text);
 }
Exemplo n.º 15
0
 protected virtual void DrawDecoration(QPainter painter, QStyleOptionViewItem option, QRect rect, QPixmap pixmap)
 {
     interceptor.Invoke("drawDecoration####", "drawDecoration(QPainter*, const QStyleOptionViewItem&, const QRect&, const QPixmap&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect, typeof(QPixmap), pixmap);
 }
Exemplo n.º 16
0
 protected virtual void DrawCheck(QPainter painter, QStyleOptionViewItem option, QRect rect, Qt.CheckState state)
 {
     interceptor.Invoke("drawCheck###$", "drawCheck(QPainter*, const QStyleOptionViewItem&, const QRect&, Qt::CheckState) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect, typeof(Qt.CheckState), state);
 }
Exemplo n.º 17
0
 protected virtual void DrawDisplay(QPainter painter, QStyleOptionViewItem option, QRect rect, string text)
 {
     interceptor.Invoke("drawDisplay###$", "drawDisplay(QPainter*, const QStyleOptionViewItem&, const QRect&, const QString&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect, typeof(string), text);
 }
Exemplo n.º 18
0
 protected virtual void DrawFocus(QPainter painter, QStyleOptionViewItem option, QRect rect)
 {
     interceptor.Invoke("drawFocus###", "drawFocus(QPainter*, const QStyleOptionViewItem&, const QRect&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect);
 }
Exemplo n.º 19
0
 public abstract void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index);
Exemplo n.º 20
0
 protected virtual void InitStyleOption(QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("initStyleOption##", "initStyleOption(QStyleOptionViewItem*, const QModelIndex&) const", typeof(void), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 21
0
 public new abstract QSize SizeHint(QStyleOptionViewItem option, QModelIndex index);
Exemplo n.º 22
0
 protected new virtual bool EditorEvent(QEvent arg1, QAbstractItemModel model, QStyleOptionViewItem option, QModelIndex index)
 {
     return (bool) interceptor.Invoke("editorEvent####", "editorEvent(QEvent*, QAbstractItemModel*, const QStyleOptionViewItem&, const QModelIndex&)", typeof(bool), typeof(QEvent), arg1, typeof(QAbstractItemModel), model, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 23
0
 protected virtual void DrawRow(QPainter painter, QStyleOptionViewItem options, QModelIndex index)
 {
     interceptor.Invoke("drawRow###", "drawRow(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), options, typeof(QModelIndex), index);
 }
Exemplo n.º 24
0
 protected QPixmap Decoration(QStyleOptionViewItem option, QVariant variant)
 {
     return (QPixmap) interceptor.Invoke("decoration##", "decoration(const QStyleOptionViewItem&, const QVariant&) const", typeof(QPixmap), typeof(QStyleOptionViewItem), option, typeof(QVariant), variant);
 }
Exemplo n.º 25
0
 public new bool HelpEvent(QHelpEvent arg1, QAbstractItemView view, QStyleOptionViewItem option, QModelIndex index)
 {
     return (bool) interceptor.Invoke("helpEvent####", "helpEvent(QHelpEvent*, QAbstractItemView*, const QStyleOptionViewItem&, const QModelIndex&)", typeof(bool), typeof(QHelpEvent), arg1, typeof(QAbstractItemView), view, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 26
0
 protected virtual void DrawCheck(QPainter painter, QStyleOptionViewItem option, QRect rect, Qt.CheckState state)
 {
     interceptor.Invoke("drawCheck###$", "drawCheck(QPainter*, const QStyleOptionViewItem&, const QRect&, Qt::CheckState) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect, typeof(Qt.CheckState), state);
 }
Exemplo n.º 27
0
 public override void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index)
 {
     QAbstractItemDelegatePaint((IntPtr)GCHandle.Alloc(this), (IntPtr)GCHandle.Alloc(painter),
                                (IntPtr)GCHandle.Alloc(option), (IntPtr)GCHandle.Alloc(index));
 }
Exemplo n.º 28
0
 protected void DoLayout(QStyleOptionViewItem option, QRect checkRect, QRect iconRect, QRect textRect, bool hint)
 {
     interceptor.Invoke("doLayout####$", "doLayout(const QStyleOptionViewItem&, QRect*, QRect*, QRect*, bool) const", typeof(void), typeof(QStyleOptionViewItem), option, typeof(QRect), checkRect, typeof(QRect), iconRect, typeof(QRect), textRect, typeof(bool), hint);
 }
Exemplo n.º 29
0
 protected virtual void DrawRow(QPainter painter, QStyleOptionViewItem options, QModelIndex index)
 {
     interceptor.Invoke("drawRow###", "drawRow(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), options, typeof(QModelIndex), index);
 }
Exemplo n.º 30
0
 protected QStyleOptionViewItem SetOptions(QModelIndex index, QStyleOptionViewItem option)
 {
     return((QStyleOptionViewItem)interceptor.Invoke("setOptions##", "setOptions(const QModelIndex&, const QStyleOptionViewItem&) const", typeof(QStyleOptionViewItem), typeof(QModelIndex), index, typeof(QStyleOptionViewItem), option));
 }
Exemplo n.º 31
0
 public QStyleOptionViewItem(QStyleOptionViewItem other) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QStyleOptionViewItem#", "QStyleOptionViewItem(const QStyleOptionViewItem&)", typeof(void), typeof(QStyleOptionViewItem), other);
 }
Exemplo n.º 32
0
 protected QRect Check(QStyleOptionViewItem option, QRect bounding, QVariant variant)
 {
     return((QRect)interceptor.Invoke("check###", "check(const QStyleOptionViewItem&, const QRect&, const QVariant&) const", typeof(QRect), typeof(QStyleOptionViewItem), option, typeof(QRect), bounding, typeof(QVariant), variant));
 }
Exemplo n.º 33
0
 public override void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("paint###", "paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 34
0
 protected virtual void DrawDecoration(QPainter painter, QStyleOptionViewItem option, QRect rect, QPixmap pixmap)
 {
     interceptor.Invoke("drawDecoration####", "drawDecoration(QPainter*, const QStyleOptionViewItem&, const QRect&, const QPixmap&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QRect), rect, typeof(QPixmap), pixmap);
 }
Exemplo n.º 35
0
 public override QWidget CreateEditor(QWidget parent, QStyleOptionViewItem option, QModelIndex index)
 {
     return((QWidget)interceptor.Invoke("createEditor###", "createEditor(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(QWidget), typeof(QWidget), parent, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index));
 }
Exemplo n.º 36
0
 /// <remarks>
 ///  Returns the empty area after both the title and the subtitle.
 ///  The height is the height of the item.
 ///  It can be used by subclasses that wants to paint additional data
 /// <param> name="option" options for the title and subtitle text
 /// </param><param> name="index" model index that we want to compute the free area
 ///      </param></remarks>        <short>    Returns the empty area after both the title and the subtitle.</short>
 protected QRect EmptyRect(QStyleOptionViewItem option, QModelIndex index)
 {
     return (QRect) interceptor.Invoke("emptyRect##", "emptyRect(const QStyleOptionViewItem&, const QModelIndex&) const", typeof(QRect), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 37
0
 protected void DoLayout(QStyleOptionViewItem option, QRect checkRect, QRect iconRect, QRect textRect, bool hint)
 {
     interceptor.Invoke("doLayout####$", "doLayout(const QStyleOptionViewItem&, QRect*, QRect*, QRect*, bool) const", typeof(void), typeof(QStyleOptionViewItem), option, typeof(QRect), checkRect, typeof(QRect), iconRect, typeof(QRect), textRect, typeof(bool), hint);
 }
Exemplo n.º 38
0
 public override QSize SizeHint(QStyleOptionViewItem option, QModelIndex index)
 {
     return((QSize)interceptor.Invoke("sizeHint##", "sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const", typeof(QSize), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index));
 }
Exemplo n.º 39
0
 /// <remarks>
 ///  Returns the empty area after the title.
 ///  The height is the height of the subtitle.
 ///  It can be used by subclasses that wants to paint additional data after
 ///  calling the paint function of the superclass.
 /// <param> name="option" options for the title text
 /// </param><param> name="index" model index that we want to compute the free area
 ///      </param></remarks>        <short>    Returns the empty area after the title.</short>
 protected QRect RectAfterTitle(QStyleOptionViewItem option, QModelIndex index)
 {
     return (QRect) interceptor.Invoke("rectAfterTitle##", "rectAfterTitle(const QStyleOptionViewItem&, const QModelIndex&) const", typeof(QRect), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 40
0
 public override void UpdateEditorGeometry(QWidget editor, QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("updateEditorGeometry###", "updateEditorGeometry(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QWidget), editor, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
 public override void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index)
 {
     QAbstractItemDelegatePaint((IntPtr) GCHandle.Alloc(this), (IntPtr) GCHandle.Alloc(painter),
                     (IntPtr) GCHandle.Alloc(option), (IntPtr) GCHandle.Alloc(index));
 }
Exemplo n.º 42
0
 protected new virtual bool EditorEvent(QEvent arg1, QAbstractItemModel model, QStyleOptionViewItem option, QModelIndex index)
 {
     return((bool)interceptor.Invoke("editorEvent####", "editorEvent(QEvent*, QAbstractItemModel*, const QStyleOptionViewItem&, const QModelIndex&)", typeof(bool), typeof(QEvent), arg1, typeof(QAbstractItemModel), model, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index));
 }
Exemplo n.º 43
0
 public abstract void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index);
Exemplo n.º 44
0
 public override void UpdateEditorGeometry(QWidget editor, QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("updateEditorGeometry###", "updateEditorGeometry(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QWidget), editor, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 45
0
 public new abstract QSize SizeHint(QStyleOptionViewItem option, QModelIndex index);
Exemplo n.º 46
0
 protected virtual void InitStyleOption(QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("initStyleOption##", "initStyleOption(QStyleOptionViewItem*, const QModelIndex&) const", typeof(void), typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 47
0
 public bool HelpEvent(QHelpEvent arg1, QAbstractItemView view, QStyleOptionViewItem option, QModelIndex index)
 {
     return((bool)interceptor.Invoke("helpEvent####", "helpEvent(QHelpEvent*, QAbstractItemView*, const QStyleOptionViewItem&, const QModelIndex&)", typeof(bool), typeof(QHelpEvent), arg1, typeof(QAbstractItemView), view, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index));
 }
Exemplo n.º 48
0
 public override void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index)
 {
     interceptor.Invoke("paint###", "paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const", typeof(void), typeof(QPainter), painter, typeof(QStyleOptionViewItem), option, typeof(QModelIndex), index);
 }
Exemplo n.º 49
0
 protected QRect Check(QStyleOptionViewItem option, QRect bounding, QVariant variant)
 {
     return (QRect) interceptor.Invoke("check###", "check(const QStyleOptionViewItem&, const QRect&, const QVariant&) const", typeof(QRect), typeof(QStyleOptionViewItem), option, typeof(QRect), bounding, typeof(QVariant), variant);
 }