本文整理匯總了C#中Qyoto.Qt類的典型用法代碼示例。如果您正苦於以下問題:C# Qt類的具體用法?C# Qt怎麽用?C# Qt使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Qt類屬於Qyoto命名空間,在下文中一共展示了Qt類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: NaturalCompare
/// <remarks>
/// Does a natural comparing of the strings. A negative value is returned if \a a
/// is smaller than \a b. A positive value is returned if \a a is greater than \a b. 0
/// is returned if both values are equal.
/// <param> name="a" first string to compare
/// </param><param> name="b" second string to compare
/// </param><param> name="caseSensitivity" whether to use case sensitive compare or not
/// </param></remarks> <short> Does a natural comparing of the strings.</short>
public static int NaturalCompare(string a, string b, Qt.CaseSensitivity caseSensitivity)
{
return (int) staticInterceptor.Invoke("naturalCompare$$$", "naturalCompare(const QString&, const QString&, Qt::CaseSensitivity)", typeof(int), typeof(string), a, typeof(string), b, typeof(Qt.CaseSensitivity), caseSensitivity);
}
示例2: CollidesWithPath
public virtual bool CollidesWithPath(QPainterPath path, Qt.ItemSelectionMode mode)
{
return (bool) interceptor.Invoke("collidesWithPath#$", "collidesWithPath(const QPainterPath&, Qt::ItemSelectionMode) const", typeof(bool), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode);
}
示例3: SetFocus
public void SetFocus(Qt.FocusReason focusReason)
{
interceptor.Invoke("setFocus$", "setFocus(Qt::FocusReason)", typeof(void), typeof(Qt.FocusReason), focusReason);
}
示例4: 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);
}
示例5: InputMethodQuery
protected new QVariant InputMethodQuery(Qt.InputMethodQuery query)
{
return (QVariant) interceptor.Invoke("inputMethodQuery$", "inputMethodQuery(Qt::InputMethodQuery) const", typeof(QVariant), typeof(Qt.InputMethodQuery), query);
}
示例6: SizeHint
public override QSizeF SizeHint(Qt.SizeHint which, QSizeF constraint)
{
return (QSizeF) interceptor.Invoke("sizeHint$#", "sizeHint(Qt::SizeHint, const QSizeF&) const", typeof(QSizeF), typeof(Qt.SizeHint), which, typeof(QSizeF), constraint);
}
示例7: AddCornerAnchors
public void AddCornerAnchors(IQGraphicsLayoutItem firstItem, Qt.Corner firstCorner, IQGraphicsLayoutItem secondItem, Qt.Corner secondCorner)
{
interceptor.Invoke("addCornerAnchors#$#$", "addCornerAnchors(QGraphicsLayoutItem*, Qt::Corner, QGraphicsLayoutItem*, Qt::Corner)", typeof(void), typeof(IQGraphicsLayoutItem), firstItem, typeof(Qt.Corner), firstCorner, typeof(IQGraphicsLayoutItem), secondItem, typeof(Qt.Corner), secondCorner);
}
示例8: Items
public List<IQGraphicsItem> Items(QPainterPath path, Qt.ItemSelectionMode mode, Qt.SortOrder order, QTransform deviceTransform)
{
return (List<IQGraphicsItem>) interceptor.Invoke("items#$$#", "items(const QPainterPath&, Qt::ItemSelectionMode, Qt::SortOrder, const QTransform&) const", typeof(List<IQGraphicsItem>), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode, typeof(Qt.SortOrder), order, typeof(QTransform), deviceTransform);
}
示例9: InputMethodQuery
public new virtual QVariant InputMethodQuery(Qt.InputMethodQuery query)
{
return (QVariant) interceptor.Invoke("inputMethodQuery$", "inputMethodQuery(Qt::InputMethodQuery) const", typeof(QVariant), typeof(Qt.InputMethodQuery), query);
}
示例10: SizeHint
protected virtual QSizeF SizeHint(Qt.SizeHint which)
{
return new QSizeF();
}
示例11: SetLayoutDirection
/// <remarks>
/// LTR or RTL
/// </remarks> <short> LTR or RTL </short>
public void SetLayoutDirection(Qt.LayoutDirection direction)
{
interceptor.Invoke("setLayoutDirection$", "setLayoutDirection(Qt::LayoutDirection)", typeof(void), typeof(Qt.LayoutDirection), direction);
}
示例12: 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);
}
示例13: Anchor
public QGraphicsAnchor Anchor(IQGraphicsLayoutItem firstItem, Qt.AnchorPoint firstEdge, IQGraphicsLayoutItem secondItem, Qt.AnchorPoint secondEdge)
{
return (QGraphicsAnchor) interceptor.Invoke("anchor#$#$", "anchor(QGraphicsLayoutItem*, Qt::AnchorPoint, QGraphicsLayoutItem*, Qt::AnchorPoint)", typeof(QGraphicsAnchor), typeof(IQGraphicsLayoutItem), firstItem, typeof(Qt.AnchorPoint), firstEdge, typeof(IQGraphicsLayoutItem), secondItem, typeof(Qt.AnchorPoint), secondEdge);
}
示例14: Render
public void Render(QPainter painter, QRectF target, QRectF source, Qt.AspectRatioMode aspectRatioMode)
{
interceptor.Invoke("render###$", "render(QPainter*, const QRectF&, const QRectF&, Qt::AspectRatioMode)", typeof(void), typeof(QPainter), painter, typeof(QRectF), target, typeof(QRectF), source, typeof(Qt.AspectRatioMode), aspectRatioMode);
}
示例15: ConvertFromPlainText
public static string ConvertFromPlainText(string plain, Qt.WhiteSpaceMode mode)
{
return (string) staticInterceptor.Invoke("convertFromPlainText$$", "convertFromPlainText(const QString&, Qt::WhiteSpaceMode)", typeof(string), typeof(string), plain, typeof(Qt.WhiteSpaceMode), mode);
}