Пример #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;
 }
Пример #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);
        }
Пример #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));
 }
Пример #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));
 }
Пример #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);
 }
Пример #7
0
 public QStyleOptionViewItem(QStyleOptionViewItem other)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QStyleOptionViewItem#", "QStyleOptionViewItem(const QStyleOptionViewItem&)", typeof(void), typeof(QStyleOptionViewItem), other);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #19
0
 public abstract void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index);
Пример #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);
 }
Пример #21
0
 public new abstract QSize SizeHint(QStyleOptionViewItem option, QModelIndex index);
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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));
 }
Пример #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);
 }
Пример #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);
 }
Пример #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));
 }
Пример #31
0
 public QStyleOptionViewItem(QStyleOptionViewItem other) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QStyleOptionViewItem#", "QStyleOptionViewItem(const QStyleOptionViewItem&)", typeof(void), typeof(QStyleOptionViewItem), other);
 }
Пример #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));
 }
Пример #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);
 }
Пример #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);
 }
Пример #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));
 }
Пример #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);
 }
Пример #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);
 }
Пример #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));
 }
Пример #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);
 }
Пример #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));
 }
Пример #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));
 }
Пример #43
0
 public abstract void Paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index);
Пример #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);
 }
Пример #45
0
 public new abstract QSize SizeHint(QStyleOptionViewItem option, QModelIndex index);
Пример #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);
 }
Пример #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));
 }
Пример #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);
 }
Пример #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);
 }