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);
        }
Exemple #3
0
 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();
 }
Exemple #4
0
 public void SetP1(QPoint p1)
 {
     interceptor.Invoke("setP1#", "setP1(const QPoint&)", typeof(void), typeof(QPoint), p1);
 }
Exemple #5
0
 public static void SetPos(QPoint p)
 {
     staticInterceptor.Invoke("setPos#", "setPos(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
Exemple #6
0
Fichier : Qt.cs Projet : 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);
 }
Exemple #7
0
Fichier : Qt.cs Projet : 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);
 }
Exemple #8
0
    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();
    }
Exemple #9
0
 public QPoint Map(QPoint point)
 {
     return (QPoint) interceptor.Invoke("map#", "map(const QPoint&) const", typeof(QPoint), typeof(QPoint), point);
 }
Exemple #10
0
 public void SetHotSpot(QPoint hotspot)
 {
     interceptor.Invoke("setHotSpot#", "setHotSpot(const QPoint&)", typeof(void), typeof(QPoint), hotspot);
 }
Exemple #11
0
 public QTextCursor CursorForPosition(QPoint pos)
 {
     return((QTextCursor)interceptor.Invoke("cursorForPosition#", "cursorForPosition(const QPoint&) const", typeof(QTextCursor), typeof(QPoint), pos));
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #14
0
 public QLine Translated(QPoint p)
 {
     return((QLine)interceptor.Invoke("translated#", "translated(const QPoint&) const", typeof(QLine), typeof(QPoint), p));
 }
Exemple #15
0
 public void Translate(QPoint p)
 {
     interceptor.Invoke("translate#", "translate(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
Exemple #16
0
 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);
 }
Exemple #17
0
 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);
 }
Exemple #18
0
 public QWebHitTestResult HitTestContent(QPoint pos)
 {
     return((QWebHitTestResult)interceptor.Invoke("hitTestContent#", "hitTestContent(const QPoint&) const", typeof(QWebHitTestResult), typeof(QPoint), pos));
 }
Exemple #19
0
 public QTextCursor CursorForPosition(QPoint pos)
 {
     return (QTextCursor) interceptor.Invoke("cursorForPosition#", "cursorForPosition(const QPoint&) const", typeof(QTextCursor), typeof(QPoint), pos);
 }
Exemple #20
0
 public int TabAt(QPoint pos)
 {
     return((int)interceptor.Invoke("tabAt#", "tabAt(const QPoint&) const", typeof(int), typeof(QPoint), pos));
 }
Exemple #21
0
 protected override bool HitButton(QPoint pos)
 {
     return((bool)interceptor.Invoke("hitButton#", "hitButton(const QPoint&) const", typeof(bool), typeof(QPoint), pos));
 }
Exemple #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);
 }
Exemple #23
0
 public void SetPoints(QPoint p1, QPoint p2)
 {
     interceptor.Invoke("setPoints##", "setPoints(const QPoint&, const QPoint&)", typeof(void), typeof(QPoint), p1, typeof(QPoint), p2);
 }
Exemple #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);
 }
Exemple #25
0
Fichier : Qt.cs Projet : 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);
 }
Exemple #26
0
 public QRect AvailableGeometry(QPoint point)
 {
     return((QRect)interceptor.Invoke("availableGeometry#", "availableGeometry(const QPoint&) const", typeof(QRect), typeof(QPoint), point));
 }
Exemple #27
0
Fichier : Qt.cs Projet : 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);
 }
Exemple #28
0
 public int ScreenNumber(QPoint arg1)
 {
     return((int)interceptor.Invoke("screenNumber#", "screenNumber(const QPoint&) const", typeof(int), typeof(QPoint), arg1));
 }
Exemple #29
0
 public void UpdatePositionDependentActions(QPoint pos)
 {
     interceptor.Invoke("updatePositionDependentActions#", "updatePositionDependentActions(const QPoint&)", typeof(void), typeof(QPoint), pos);
 }
Exemple #30
0
 public QRect ScreenGeometry(QPoint point)
 {
     return((QRect)interceptor.Invoke("screenGeometry#", "screenGeometry(const QPoint&) const", typeof(QRect), typeof(QPoint), point));
 }
Exemple #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);
 }
Exemple #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));
		}		
Exemple #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);
 }
Exemple #35
0
 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);
 }
Exemple #36
0
 public QPointF(QPoint p) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QPointF#", "QPointF(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
Exemple #37
0
 public QMenu CreateStandardContextMenu(QPoint position)
 {
     return((QMenu)interceptor.Invoke("createStandardContextMenu#", "createStandardContextMenu(const QPoint&)", typeof(QMenu), typeof(QPoint), position));
 }
Exemple #38
0
 public abstract QStyle.SubControl HitTestComplexControl(QStyle.ComplexControl cc, QStyleOptionComplex opt, QPoint pt, QWidget widget);
Exemple #39
0
 public string AnchorAt(QPoint pos)
 {
     return((string)interceptor.Invoke("anchorAt#", "anchorAt(const QPoint&) const", typeof(string), typeof(QPoint), pos));
 }
Exemple #40
0
 public int CursorPositionAt(QPoint pos)
 {
     return((int)interceptor.Invoke("cursorPositionAt#", "cursorPositionAt(const QPoint&)", typeof(int), typeof(QPoint), pos));
 }
Exemple #41
0
 public static QWidget TopLevelAt(QPoint p)
 {
     return((QWidget)staticInterceptor.Invoke("topLevelAt#", "topLevelAt(const QPoint&)", typeof(QWidget), typeof(QPoint), p));
 }
Exemple #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);
 }
Exemple #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));
 }
Exemple #44
0
 public void SetP2(QPoint p2)
 {
     interceptor.Invoke("setP2#", "setP2(const QPoint&)", typeof(void), typeof(QPoint), p2);
 }
Exemple #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);
 }
Exemple #46
0
 public QPoint MapToParent(QPoint arg1)
 {
     return (QPoint) interceptor.Invoke("mapToParent#", "mapToParent(const QPoint&) const", typeof(QPoint), typeof(QPoint), arg1);
 }
Exemple #47
0
 public void SetScreenPos(QPoint pos)
 {
     interceptor.Invoke("setScreenPos#", "setScreenPos(const QPoint&)", typeof(void), typeof(QPoint), pos);
 }
Exemple #48
0
 public void Render(IQPaintDevice target, QPoint targetOffset)
 {
     interceptor.Invoke("render##", "render(QPaintDevice*, const QPoint&)", typeof(void), typeof(IQPaintDevice), target, typeof(QPoint), targetOffset);
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #51
0
Fichier : Qt.cs Projet : 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);
 }
Exemple #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);
 }
Exemple #53
0
Fichier : Qt.cs Projet : 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);
 }
Exemple #54
0
 public void Render(QPainter painter, QPoint targetOffset)
 {
     interceptor.Invoke("render##", "render(QPainter*, const QPoint&)", typeof(void), typeof(QPainter), painter, typeof(QPoint), targetOffset);
 }
Exemple #55
0
Fichier : Qt.cs Projet : 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);
 }
Exemple #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);
 }
Exemple #57
0
 public void Move(QPoint p)
 {
     interceptor.Invoke("move#", "move(const QPoint&)", typeof(void), typeof(QPoint), p);
 }
Exemple #58
0
 public int LineAt(QPoint pos)
 {
     return (int) interceptor.Invoke("lineAt#", "lineAt(const QPoint&) const", typeof(int), typeof(QPoint), pos);
 }
Exemple #59
0
 public QVector2D(QPoint point)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QVector2D#", "QVector2D(const QPoint&)", typeof(void), typeof(QPoint), point);
 }
Exemple #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);
 }