本文整理匯總了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;
}
示例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();
}
示例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);
}
示例4: UpdatePositionDependentActions
public void UpdatePositionDependentActions(QPoint pos)
{
interceptor.Invoke("updatePositionDependentActions#", "updatePositionDependentActions(const QPoint&)", typeof(void), typeof(QPoint), pos);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例11: LineAt
public int LineAt(QPoint pos)
{
return (int) interceptor.Invoke("lineAt#", "lineAt(const QPoint&) const", typeof(int), typeof(QPoint), pos);
}
示例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);
}
示例13: Map
public QPoint Map(QPoint point)
{
return (QPoint) interceptor.Invoke("map#", "map(const QPoint&) const", typeof(QPoint), typeof(QPoint), point);
}
示例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);
}
示例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);
}