當前位置: 首頁>>代碼示例>>C#>>正文


C# Qyoto.QPoint類代碼示例

本文整理匯總了C#中Qyoto.QPoint的典型用法代碼示例。如果您正苦於以下問題:C# QPoint類的具體用法?C# QPoint怎麽用?C# QPoint使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


QPoint類屬於Qyoto命名空間,在下文中一共展示了QPoint類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: IndexAt

 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;
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:8,代碼來源:QAbstractItemViewInternal.cs

示例2: CannonField

 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();
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:15,代碼來源:cannonfield.cs

示例3: GetRatingFromPosition

 /// <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);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:10,代碼來源:KRatingPainter.cs

示例4: UpdatePositionDependentActions

 public void UpdatePositionDependentActions(QPoint pos)
 {
     interceptor.Invoke("updatePositionDependentActions#", "updatePositionDependentActions(const QPoint&)", typeof(void), typeof(QPoint), pos);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QWebPage.cs

示例5: Render

 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);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:4,代碼來源:QWidget.cs

示例6: Read

 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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例7: Write

 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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例8: QDrawShadeLine

 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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例9: SourcePixmap

 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);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:4,代碼來源:QGraphicsEffect.cs

示例10: ActionSimContactsMenu

        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));
		}		
開發者ID:cyberthrone,項目名稱:monosim,代碼行數:17,代碼來源:MainWindowClass.Reactors.cs

示例11: LineAt

 public int LineAt(QPoint pos)
 {
     return (int) interceptor.Invoke("lineAt#", "lineAt(const QPoint&) const", typeof(int), typeof(QPoint), pos);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QsciScintilla.cs

示例12: MoveItem

 /// <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);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:11,代碼來源:Plasma_Animator.cs

示例13: Map

 public QPoint Map(QPoint point)
 {
     return (QPoint) interceptor.Invoke("map#", "map(const QPoint&) const", typeof(QPoint), typeof(QPoint), point);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:4,代碼來源:QMatrix4x4.cs

示例14: QMouseEvent

 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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:QMouseEvent.cs

示例15: QTestMouseEvent

 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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:QTestMouseEvent.cs


注:本文中的Qyoto.QPoint類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。