public override QModelIndex IndexAt(QPoint point)
 {
     GCHandle ret = (GCHandle) QAbstractItemViewIndexAt((IntPtr) GCHandle.Alloc(this),
                                 (IntPtr) GCHandle.Alloc(point));
     QModelIndex i = (QModelIndex) ret.Target;
     ret.Free();
     return i;
 }
        public override QModelIndex IndexAt(QPoint point)
        {
            GCHandle ret = (GCHandle)QAbstractItemViewIndexAt((IntPtr)GCHandle.Alloc(this),
                                                              (IntPtr)GCHandle.Alloc(point));
            QModelIndex i = (QModelIndex)ret.Target;

            ret.SynchronizedFree();
            return(i);
        }
示例#3
0
文件: cannonfield.cs 项目: KDE/qyoto
 public CannonField(QWidget parent)
     : base(parent)
 {
     currentAngle = 45;
     currentForce = 0;
     timerCount = 0;
     autoShootTimer = new QTimer(this);
     Connect(autoShootTimer, SIGNAL("timeout()"), this, SLOT("moveShot()"));
     shootAngle = 0;
     shootForce = 0;
     target = new QPoint(0, 0);
     Palette = new QPalette(new QColor(250, 250, 200));
     AutoFillBackground = true;
     newTarget();
 }
示例#4
0
文件: QLine.cs 项目: micro-chen/qyoto
 public void SetP1(QPoint p1)
 {
     interceptor.Invoke("setP1#", "setP1(const QPoint&)", typeof(void), typeof(QPoint), p1);
 }
示例#5
0
 public static void SetPos(QPoint p)
 {
     staticInterceptor.Invoke("setPos#", "setPos(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
示例#6
0
文件: Qt.cs 项目: KDE/qyoto
 public static void QDrawShadeLine(QPainter p, QPoint p1, QPoint p2, QPalette pal)
 {
     staticInterceptor.Invoke("qDrawShadeLine####", "qDrawShadeLine(QPainter*, const QPoint&, const QPoint&, const QPalette&)", typeof(void), typeof(QPainter), p, typeof(QPoint), p1, typeof(QPoint), p2, typeof(QPalette), pal);
 }
示例#7
0
文件: Qt.cs 项目: KDE/qyoto
 public static QDBusArgument Write(QDBusArgument a, QPoint pt)
 {
     return (QDBusArgument) staticInterceptor.Invoke("operator<<##", "operator<<(QDBusArgument&, const QPoint&)", typeof(QDBusArgument), typeof(QDBusArgument), a, typeof(QPoint), pt);
 }
示例#8
0
文件: cannonfield.cs 项目: KDE/qyoto
    public void newTarget()
    {
        if (firstTime) {
            firstTime = false;
            QTime midnight = new QTime(0, 0, 0);
            RandomClass = new Random();
        }

         		target = new QPoint(200 + RandomClass.Next(190), 10 + RandomClass.Next(255));
        Update();
    }
示例#9
0
 public QPoint Map(QPoint point)
 {
     return (QPoint) interceptor.Invoke("map#", "map(const QPoint&) const", typeof(QPoint), typeof(QPoint), point);
 }
示例#10
0
 public void SetHotSpot(QPoint hotspot)
 {
     interceptor.Invoke("setHotSpot#", "setHotSpot(const QPoint&)", typeof(void), typeof(QPoint), hotspot);
 }
示例#11
0
 public QTextCursor CursorForPosition(QPoint pos)
 {
     return((QTextCursor)interceptor.Invoke("cursorForPosition#", "cursorForPosition(const QPoint&) const", typeof(QTextCursor), typeof(QPoint), pos));
 }
示例#12
0
 public static void ShowText(QPoint pos, string text, QWidget w)
 {
     staticInterceptor.Invoke("showText#$#", "showText(const QPoint&, const QString&, QWidget*)", typeof(void), typeof(QPoint), pos, typeof(string), text, typeof(QWidget), w);
 }
示例#13
0
 public static void ShowText(QPoint pos, string text)
 {
     staticInterceptor.Invoke("showText#$", "showText(const QPoint&, const QString&)", typeof(void), typeof(QPoint), pos, typeof(string), text);
 }
示例#14
0
文件: QLine.cs 项目: micro-chen/qyoto
 public QLine Translated(QPoint p)
 {
     return((QLine)interceptor.Invoke("translated#", "translated(const QPoint&) const", typeof(QLine), typeof(QPoint), p));
 }
示例#15
0
文件: QLine.cs 项目: micro-chen/qyoto
 public void Translate(QPoint p)
 {
     interceptor.Invoke("translate#", "translate(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
示例#16
0
文件: QLine.cs 项目: micro-chen/qyoto
 public QLine(QPoint pt1, QPoint pt2) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QLine##", "QLine(const QPoint&, const QPoint&)", typeof(void), typeof(QPoint), pt1, typeof(QPoint), pt2);
 }
示例#17
0
文件: QMouseEvent.cs 项目: KDE/qyoto
 public QMouseEvent(QEvent.TypeOf type, QPoint pos, QPoint globalPos, Qt.MouseButton button, uint buttons, uint modifiers)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QMouseEvent$##$$$", "QMouseEvent(QEvent::Type, const QPoint&, const QPoint&, Qt::MouseButton, Qt::MouseButtons, Qt::KeyboardModifiers)", typeof(void), typeof(QEvent.TypeOf), type, typeof(QPoint), pos, typeof(QPoint), globalPos, typeof(Qt.MouseButton), button, typeof(uint), buttons, typeof(uint), modifiers);
 }
示例#18
0
 public QWebHitTestResult HitTestContent(QPoint pos)
 {
     return((QWebHitTestResult)interceptor.Invoke("hitTestContent#", "hitTestContent(const QPoint&) const", typeof(QWebHitTestResult), typeof(QPoint), pos));
 }
示例#19
0
 public QTextCursor CursorForPosition(QPoint pos)
 {
     return (QTextCursor) interceptor.Invoke("cursorForPosition#", "cursorForPosition(const QPoint&) const", typeof(QTextCursor), typeof(QPoint), pos);
 }
示例#20
0
 public int TabAt(QPoint pos)
 {
     return((int)interceptor.Invoke("tabAt#", "tabAt(const QPoint&) const", typeof(int), typeof(QPoint), pos));
 }
示例#21
0
 protected override bool HitButton(QPoint pos)
 {
     return((bool)interceptor.Invoke("hitButton#", "hitButton(const QPoint&) const", typeof(bool), typeof(QPoint), pos));
 }
示例#22
0
 public QTabletEvent(QEvent.TypeOf t, QPoint pos, QPoint globalPos, QPointF hiResGlobalPos, int device, int pointerType, double pressure, int xTilt, int yTilt, double tangentialPressure, double rotation, int z, uint keyState, long uniqueID) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QTabletEvent$###$$$$$$$$$$", "QTabletEvent(QEvent::Type, const QPoint&, const QPoint&, const QPointF&, int, int, qreal, int, int, qreal, qreal, int, Qt::KeyboardModifiers, qint64)", typeof(void), typeof(QEvent.TypeOf), t, typeof(QPoint), pos, typeof(QPoint), globalPos, typeof(QPointF), hiResGlobalPos, typeof(int), device, typeof(int), pointerType, typeof(double), pressure, typeof(int), xTilt, typeof(int), yTilt, typeof(double), tangentialPressure, typeof(double), rotation, typeof(int), z, typeof(uint), keyState, typeof(long), uniqueID);
 }
示例#23
0
文件: QLine.cs 项目: micro-chen/qyoto
 public void SetPoints(QPoint p1, QPoint p2)
 {
     interceptor.Invoke("setPoints##", "setPoints(const QPoint&, const QPoint&)", typeof(void), typeof(QPoint), p1, typeof(QPoint), p2);
 }
示例#24
0
 public QTestMouseEvent(QTest.MouseAction action, Qt.MouseButton button, uint modifiers, QPoint position, int delay) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QTestMouseEvent$$$#$", "QTestMouseEvent(QTest::MouseAction, Qt::MouseButton, Qt::KeyboardModifiers, QPoint, int)", typeof(void), typeof(QTest.MouseAction), action, typeof(Qt.MouseButton), button, typeof(uint), modifiers, typeof(QPoint), position, typeof(int), delay);
 }
示例#25
0
文件: Qt.cs 项目: KDE/qyoto
 public static void QDrawShadeLine(QPainter p, QPoint p1, QPoint p2, QPalette pal, bool sunken, int lineWidth, int midLineWidth)
 {
     staticInterceptor.Invoke("qDrawShadeLine####$$$", "qDrawShadeLine(QPainter*, const QPoint&, const QPoint&, const QPalette&, bool, int, int)", typeof(void), typeof(QPainter), p, typeof(QPoint), p1, typeof(QPoint), p2, typeof(QPalette), pal, typeof(bool), sunken, typeof(int), lineWidth, typeof(int), midLineWidth);
 }
示例#26
0
 public QRect AvailableGeometry(QPoint point)
 {
     return((QRect)interceptor.Invoke("availableGeometry#", "availableGeometry(const QPoint&) const", typeof(QRect), typeof(QPoint), point));
 }
示例#27
0
文件: Qt.cs 项目: KDE/qyoto
 public static QDBusArgument Read(QDBusArgument a, QPoint pt)
 {
     return (QDBusArgument) staticInterceptor.Invoke("operator>>##", "operator>>(const QDBusArgument&, QPoint&)", typeof(QDBusArgument), typeof(QDBusArgument), a, typeof(QPoint), pt);
 }
示例#28
0
 public int ScreenNumber(QPoint arg1)
 {
     return((int)interceptor.Invoke("screenNumber#", "screenNumber(const QPoint&) const", typeof(int), typeof(QPoint), arg1));
 }
示例#29
0
文件: QWebPage.cs 项目: KDE/qyoto
 public void UpdatePositionDependentActions(QPoint pos)
 {
     interceptor.Invoke("updatePositionDependentActions#", "updatePositionDependentActions(const QPoint&)", typeof(void), typeof(QPoint), pos);
 }
示例#30
0
 public QRect ScreenGeometry(QPoint point)
 {
     return((QRect)interceptor.Invoke("screenGeometry#", "screenGeometry(const QPoint&) const", typeof(QRect), typeof(QPoint), point));
 }
示例#31
0
 protected QPixmap SourcePixmap(Qt.CoordinateSystem system, QPoint offset)
 {
     return (QPixmap) interceptor.Invoke("sourcePixmap$#", "sourcePixmap(Qt::CoordinateSystem, QPoint*) const", typeof(QPixmap), typeof(Qt.CoordinateSystem), system, typeof(QPoint), offset);
 }
示例#32
0
 public QTreeWidgetItem ItemAt(QPoint p)
 {
     return((QTreeWidgetItem)interceptor.Invoke("itemAt#", "itemAt(const QPoint&) const", typeof(QTreeWidgetItem), typeof(QPoint), p));
 }
        public void ActionSimContactsMenu(QPoint point)
		{
			menuSimActions[2].Enabled = false;
			menuSimActions[1].Enabled = false;
			if ((mainwindow_Ui.LstSimContacts.SelectedItems().Count > 0) &&
				(mainwindow_Ui.LstFileContacts.Enabled))
			{
				menuSimActions[2].Enabled = true;
			}
			
			if (mainwindow_Ui.LstSimContacts.SelectedItems().Count > 0)
			{
				menuSimActions[1].Enabled = true;
			}
			
			menuSimItem.Popup(mainwindow_Ui.LstSimContacts.MapToGlobal(point));
		}		
示例#34
0
 public QDropEvent(QPoint pos, uint actions, QMimeData data, uint buttons, uint modifiers) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QDropEvent#$#$$", "QDropEvent(const QPoint&, Qt::DropActions, const QMimeData*, Qt::MouseButtons, Qt::KeyboardModifiers)", typeof(void), typeof(QPoint), pos, typeof(uint), actions, typeof(QMimeData), data, typeof(uint), buttons, typeof(uint), modifiers);
 }
示例#35
0
文件: QMouseEvent.cs 项目: KDE/qyoto
 public static QMouseEvent CreateExtendedMouseEvent(QEvent.TypeOf type, QPointF pos, QPoint globalPos, Qt.MouseButton button, uint buttons, uint modifiers)
 {
     return (QMouseEvent) staticInterceptor.Invoke("createExtendedMouseEvent$##$$$", "createExtendedMouseEvent(QEvent::Type, const QPointF&, const QPoint&, Qt::MouseButton, Qt::MouseButtons, Qt::KeyboardModifiers)", typeof(QMouseEvent), typeof(QEvent.TypeOf), type, typeof(QPointF), pos, typeof(QPoint), globalPos, typeof(Qt.MouseButton), button, typeof(uint), buttons, typeof(uint), modifiers);
 }
示例#36
0
 public QPointF(QPoint p) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QPointF#", "QPointF(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
示例#37
0
 public QMenu CreateStandardContextMenu(QPoint position)
 {
     return((QMenu)interceptor.Invoke("createStandardContextMenu#", "createStandardContextMenu(const QPoint&)", typeof(QMenu), typeof(QPoint), position));
 }
示例#38
0
 public abstract QStyle.SubControl HitTestComplexControl(QStyle.ComplexControl cc, QStyleOptionComplex opt, QPoint pt, QWidget widget);
示例#39
0
 public string AnchorAt(QPoint pos)
 {
     return((string)interceptor.Invoke("anchorAt#", "anchorAt(const QPoint&) const", typeof(string), typeof(QPoint), pos));
 }
示例#40
0
 public int CursorPositionAt(QPoint pos)
 {
     return((int)interceptor.Invoke("cursorPositionAt#", "cursorPositionAt(const QPoint&)", typeof(int), typeof(QPoint), pos));
 }
示例#41
0
 public static QWidget TopLevelAt(QPoint p)
 {
     return((QWidget)staticInterceptor.Invoke("topLevelAt#", "topLevelAt(const QPoint&)", typeof(QWidget), typeof(QPoint), p));
 }
示例#42
0
 /// <remarks>
 ///  Get the rating that would be selected if the user clicked position pos
 ///  within rect if the rating has been drawn with paintRating() using the same
 ///  rect and align values.
 ///  \return The new rating or -1 if pos is outside of the rating area.
 ///      </remarks>        <short>    Get the rating that would be selected if the user clicked position pos  within rect if the rating has been drawn with paintRating() using the same  rect and align values.</short>
 public static int GetRatingFromPosition(QRect rect, uint align, Qt.LayoutDirection direction, QPoint pos)
 {
     return (int) staticInterceptor.Invoke("getRatingFromPosition#$$#", "getRatingFromPosition(const QRect&, Qt::Alignment, Qt::LayoutDirection, const QPoint&)", typeof(int), typeof(QRect), rect, typeof(uint), align, typeof(Qt.LayoutDirection), direction, typeof(QPoint), pos);
 }
示例#43
0
 public static QPoint VisualPos(Qt.LayoutDirection direction, QRect boundingRect, QPoint logicalPos)
 {
     return((QPoint)staticInterceptor.Invoke("visualPos$##", "visualPos(Qt::LayoutDirection, const QRect&, const QPoint&)", typeof(QPoint), typeof(Qt.LayoutDirection), direction, typeof(QRect), boundingRect, typeof(QPoint), logicalPos));
 }
示例#44
0
文件: QLine.cs 项目: micro-chen/qyoto
 public void SetP2(QPoint p2)
 {
     interceptor.Invoke("setP2#", "setP2(const QPoint&)", typeof(void), typeof(QPoint), p2);
 }
示例#45
0
 /// <remarks>
 ///  Calculate the rating value from mouse position pos.
 ///  \return The rating corresponding to pos or -1 if pos is
 ///  outside of the configured rect.
 ///      </remarks>        <short>    Calculate the rating value from mouse position pos.</short>
 public int RatingFromPosition(QRect rect, QPoint pos)
 {
     return (int) interceptor.Invoke("ratingFromPosition##", "ratingFromPosition(const QRect&, const QPoint&) const", typeof(int), typeof(QRect), rect, typeof(QPoint), pos);
 }
示例#46
0
 public QPoint MapToParent(QPoint arg1)
 {
     return (QPoint) interceptor.Invoke("mapToParent#", "mapToParent(const QPoint&) const", typeof(QPoint), typeof(QPoint), arg1);
 }
示例#47
0
 public void SetScreenPos(QPoint pos)
 {
     interceptor.Invoke("setScreenPos#", "setScreenPos(const QPoint&)", typeof(void), typeof(QPoint), pos);
 }
示例#48
0
 public void Render(IQPaintDevice target, QPoint targetOffset)
 {
     interceptor.Invoke("render##", "render(QPaintDevice*, const QPoint&)", typeof(void), typeof(IQPaintDevice), target, typeof(QPoint), targetOffset);
 }
示例#49
0
 public QTestMouseEvent(QTest.MouseAction action, Qt.MouseButton button, uint modifiers, QPoint position, int delay)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QTestMouseEvent$$$#$", "QTestMouseEvent(QTest::MouseAction, Qt::MouseButton, Qt::KeyboardModifiers, QPoint, int)", typeof(void), typeof(QTest.MouseAction), action, typeof(Qt.MouseButton), button, typeof(uint), modifiers, typeof(QPoint), position, typeof(int), delay);
 }
示例#50
0
 public void Render(QPainter painter, QPoint targetOffset, QRegion sourceRegion, uint renderFlags)
 {
     interceptor.Invoke("render###$", "render(QPainter*, const QPoint&, const QRegion&, QWidget::RenderFlags)", typeof(void), typeof(QPainter), painter, typeof(QPoint), targetOffset, typeof(QRegion), sourceRegion, typeof(uint), renderFlags);
 }
示例#51
0
文件: Qt.cs 项目: KDE/qyoto
 public static void QDrawShadeLine(QPainter p, QPoint p1, QPoint p2, QPalette pal, bool sunken)
 {
     staticInterceptor.Invoke("qDrawShadeLine####$", "qDrawShadeLine(QPainter*, const QPoint&, const QPoint&, const QPalette&, bool)", typeof(void), typeof(QPainter), p, typeof(QPoint), p1, typeof(QPoint), p2, typeof(QPalette), pal, typeof(bool), sunken);
 }
示例#52
0
 public void Render(QPainter painter, QPoint targetOffset, QRegion sourceRegion)
 {
     interceptor.Invoke("render###", "render(QPainter*, const QPoint&, const QRegion&)", typeof(void), typeof(QPainter), painter, typeof(QPoint), targetOffset, typeof(QRegion), sourceRegion);
 }
示例#53
0
文件: Qt.cs 项目: KDE/qyoto
 public static QDataStream Read(QDataStream arg1, QPoint arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QPoint&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPoint), arg2);
 }
示例#54
0
 public void Render(QPainter painter, QPoint targetOffset)
 {
     interceptor.Invoke("render##", "render(QPainter*, const QPoint&)", typeof(void), typeof(QPainter), painter, typeof(QPoint), targetOffset);
 }
示例#55
0
文件: Qt.cs 项目: KDE/qyoto
 public static QDataStream Write(QDataStream arg1, QPoint arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QPoint&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPoint), arg2);
 }
示例#56
0
 /// <remarks>
 ///  Starts a standard animation on a QGraphicsItem.
 ///  @arg item the item to animate in some fashion
 ///  @arg anim the type of animation to perform
 /// </remarks>        <return> the id of the animation
 /// </return>
 ///         <short>    Starts a standard animation on a QGraphicsItem.</short>
 public int MoveItem(IQGraphicsItem item, Plasma.Animator.Movement movement, QPoint destination)
 {
     return (int) interceptor.Invoke("moveItem#$#", "moveItem(QGraphicsItem*, Plasma::Animator::Movement, const QPoint&)", typeof(int), typeof(IQGraphicsItem), item, typeof(Plasma.Animator.Movement), movement, typeof(QPoint), destination);
 }
示例#57
0
文件: QRubberBand.cs 项目: KDE/qyoto
 public void Move(QPoint p)
 {
     interceptor.Invoke("move#", "move(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
示例#58
0
 public int LineAt(QPoint pos)
 {
     return (int) interceptor.Invoke("lineAt#", "lineAt(const QPoint&) const", typeof(int), typeof(QPoint), pos);
 }
示例#59
0
 public QVector2D(QPoint point)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QVector2D#", "QVector2D(const QPoint&)", typeof(void), typeof(QPoint), point);
 }
示例#60
0
 protected QPixmap SourcePixmap(Qt.CoordinateSystem system, QPoint offset, QGraphicsEffect.PixmapPadMode mode)
 {
     return (QPixmap) interceptor.Invoke("sourcePixmap$#$", "sourcePixmap(Qt::CoordinateSystem, QPoint*, QGraphicsEffect::PixmapPadMode) const", typeof(QPixmap), typeof(Qt.CoordinateSystem), system, typeof(QPoint), offset, typeof(QGraphicsEffect.PixmapPadMode), mode);
 }