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


C# Qyoto.StackItem類代碼示例

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


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

示例1: Connect

 public static bool Connect(QObject sender, int signal_index, QObject receiver, int method_index, int type, ref int types)
 {
     StackItem[] stack = new StackItem[7];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(sender);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(sender);
     #endif
     stack[2].s_int = signal_index;
     #if DEBUG
     stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(receiver);
     #else
     stack[3].s_class = (IntPtr) GCHandle.Alloc(receiver);
     #endif
     stack[4].s_int = method_index;
     stack[5].s_int = type;
     stack[6].s_int = types;
     staticInterceptor.Invoke("connect#$#$$$", "connect(const QObject*, int, const QObject*, int, int, int*)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).Free();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[3].s_class);
     #else
     ((GCHandle) stack[3].s_class).Free();
     #endif
     types = stack[6].s_int;
     return stack[0].s_bool;
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:31,代碼來源:QMetaObject.cs

示例2: CursorToX

 public double CursorToX(ref int cursorPos)
 {
     StackItem[] stack = new StackItem[2];
     stack[1].s_int = cursorPos;
     interceptor.Invoke("cursorToX$", "cursorToX(int*) const", stack);
     cursorPos = stack[1].s_int;
     return stack[0].s_double;
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:8,代碼來源:QTextLine.cs

示例3: SetMetaTypes

 protected void SetMetaTypes(int count, ref int metaTypes)
 {
     StackItem[] stack = new StackItem[3];
     stack[1].s_int = count;
     stack[2].s_int = metaTypes;
     interceptor.Invoke("setMetaTypes$$", "setMetaTypes(int, const int*)", stack);
     metaTypes = stack[2].s_int;
     return;
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:9,代碼來源:QDBusPendingReplyData.cs

示例4: KeyQtToCodeX

 /// <remarks>
 ///  Extracts the code from the given Qt key.
 /// <param> name="keyQt" the qt key code
 /// </param><param> name="keyCode" if successful, the symbol will be written here
 /// </param></remarks>        <return> true if successful, false otherwise
 /// 	 </return>
 ///         <short>    Extracts the code from the given Qt key.</short>
 public static bool KeyQtToCodeX(int keyQt, ref int keyCode)
 {
     StackItem[] stack = new StackItem[3];
     stack[1].s_int = keyQt;
     stack[2].s_int = keyCode;
     staticInterceptor.Invoke("keyQtToCodeX$$", "keyQtToCodeX(int, int*)", stack);
     keyCode = stack[2].s_int;
     return stack[0].s_bool;
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:16,代碼來源:KKeyServer.cs

示例5: GetItem

 /// <remarks>
 ///  Static convenience function to let the user select an item from a
 ///  list. caption is the text that is displayed in the title bar.
 ///  label is the text that appears as the label for the list. list
 ///  is the string list which is inserted into the list, and current
 ///  is the number of the item which should be the selected item. If
 ///  editable is true, the user can enter his own text.
 /// <param> name="caption" Caption of the dialog
 /// </param><param> name="label" Text of the label for the list
 /// </param><param> name="list" List of item for user to choose from
 /// </param><param> name="current" Index of the selected item
 /// </param><param> name="editable" If true, user can enter own text
 /// </param><param> name="ok" This bool would be set to true if user pressed Ok
 /// </param><param> name="parent" Parent of the dialog widget
 /// </param></remarks>        <return> Text of the selected item. If <code>editable</code> is true this can be
 ///          a text entered by the user.
 ///      </return>
 ///         <short>    Static convenience function to let the user select an item from a  list.</short>
 public static string GetItem(string caption, string label, List<string> list, int current, bool editable, ref bool ok, QWidget parent)
 {
     StackItem[] stack = new StackItem[8];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(caption);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(caption);
     #endif
     #if DEBUG
     stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(label);
     #else
     stack[2].s_class = (IntPtr) GCHandle.Alloc(label);
     #endif
     #if DEBUG
     stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(list);
     #else
     stack[3].s_class = (IntPtr) GCHandle.Alloc(list);
     #endif
     stack[4].s_int = current;
     stack[5].s_bool = editable;
     stack[6].s_bool = ok;
     #if DEBUG
     stack[7].s_class = (IntPtr) DebugGCHandle.Alloc(parent);
     #else
     stack[7].s_class = (IntPtr) GCHandle.Alloc(parent);
     #endif
     staticInterceptor.Invoke("getItem$$?$$$#", "getItem(const QString&, const QString&, const QStringList&, int, bool, bool*, QWidget*)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).Free();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[2].s_class);
     #else
     ((GCHandle) stack[2].s_class).Free();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[3].s_class);
     #else
     ((GCHandle) stack[3].s_class).Free();
     #endif
     ok = stack[6].s_bool;
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[7].s_class);
     #else
     ((GCHandle) stack[7].s_class).Free();
     #endif
     object returnValue = ((GCHandle) stack[0].s_class).Target;
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[0].s_class);
     #else
     ((GCHandle) stack[0].s_class).Free();
     #endif
     return (string) returnValue;
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:74,代碼來源:KInputDialog.cs

示例6: QMatrix4x4

 public QMatrix4x4(ref double values)
     : this((Type) null)
 {
     CreateProxy();
     StackItem[] stack = new StackItem[2];
     stack[1].s_double = values;
     interceptor.Invoke("QMatrix4x4$", "QMatrix4x4(const qreal*)", stack);
     values = stack[1].s_double;
     return;
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:10,代碼來源:QMatrix4x4.cs

示例7: SetEntries

 public void SetEntries(int count, ref int colors, int arg3)
 {
     StackItem[] stack = new StackItem[4];
     stack[1].s_int = count;
     stack[2].s_int = colors;
     stack[3].s_int = arg3;
     interceptor.Invoke("setEntries$$$", "setEntries(int, const unsigned int*, int)", stack);
     colors = stack[2].s_int;
     return;
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:10,代碼來源:QGLColormap.cs

示例8: QPolygon

 public QPolygon(int nPoints, ref int points)
     : this((Type) null)
 {
     CreateProxy();
     StackItem[] stack = new StackItem[3];
     stack[1].s_int = nPoints;
     stack[2].s_int = points;
     interceptor.Invoke("QPolygon$$", "QPolygon(int, const int*)", stack);
     points = stack[2].s_int;
     return;
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:11,代碼來源:QPolygon.cs

示例9: GetContentsMargins

 public override void GetContentsMargins(ref double left, ref double top, ref double right, ref double bottom)
 {
     StackItem[] stack = new StackItem[5];
     stack[1].s_double = left;
     stack[2].s_double = top;
     stack[3].s_double = right;
     stack[4].s_double = bottom;
     interceptor.Invoke("getContentsMargins$$$$", "getContentsMargins(qreal*, qreal*, qreal*, qreal*) const", stack);
     left = stack[1].s_double;
     top = stack[2].s_double;
     right = stack[3].s_double;
     bottom = stack[4].s_double;
     return;
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:14,代碼來源:QGraphicsLayout.cs

示例10: Validate

 public override QValidator.State Validate(StringBuilder text, ref int e)
 {
     StackItem[] stack = new StackItem[3];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(text);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(text);
     #endif
     stack[2].s_int = e;
     interceptor.Invoke("validate$$", "validate(QString&, int&) const", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).SynchronizedFree();
     #endif
     e = stack[2].s_int;
     return (QValidator.State) Enum.ToObject(typeof(QValidator.State), stack[0].s_int);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:18,代碼來源:KDateValidator.cs

示例11: Feature

 public override bool Feature(string name, ref bool ok)
 {
     StackItem[] stack = new StackItem[3];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(name);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(name);
     #endif
     stack[2].s_bool = ok;
     interceptor.Invoke("feature$$", "feature(const QString&, bool*) const", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).Free();
     #endif
     ok = stack[2].s_bool;
     return stack[0].s_bool;
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:18,代碼來源:QXmlSimpleReader.cs

示例12: CreateSlave

 /// <remarks>
 ///  Creates a new slave.
 /// <param> name="protocol" the protocol
 /// </param><param> name="url" is the url
 /// </param><param> name="error" is the error code on failure and undefined else.
 /// </param><param> name="error_text" is the error text on failure and undefined else.
 /// </param></remarks>        <return> 0 on failure, or a pointer to a slave otherwise.
 /// 	 </return>
 ///         <short>    Creates a new slave.</short>
 public static KIO.Slave CreateSlave(string protocol, KUrl url, ref int error, StringBuilder error_text)
 {
     StackItem[] stack = new StackItem[5];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(protocol);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(protocol);
     #endif
     #if DEBUG
     stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(url);
     #else
     stack[2].s_class = (IntPtr) GCHandle.Alloc(url);
     #endif
     stack[3].s_int = error;
     #if DEBUG
     stack[4].s_class = (IntPtr) DebugGCHandle.Alloc(error_text);
     #else
     stack[4].s_class = (IntPtr) GCHandle.Alloc(error_text);
     #endif
     staticInterceptor.Invoke("createSlave$#$$", "createSlave(const QString&, const KUrl&, int&, QString&)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[2].s_class);
     #else
     ((GCHandle) stack[2].s_class).SynchronizedFree();
     #endif
     error = stack[3].s_int;
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[4].s_class);
     #else
     ((GCHandle) stack[4].s_class).SynchronizedFree();
     #endif
     return (KIO.Slave) Enum.ToObject(typeof(KIO.Slave), stack[0].s_int);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:47,代碼來源:KIO_Slave.cs

示例13: FromEntity

 /// <remarks>
 ///  Overloaded member function. Tries to find an entity in the
 ///  string str.
 /// <param> name="str" the string containing entified
 /// </param><param> name="len" is a return value, that gives the length of the decoded
 ///  entity.
 /// </param></remarks>        <return> a decoded entity if one could be found, QChar.Null
 ///  otherwise
 ///      </return>
 ///         <short>    Overloaded member function.</short>
 public static QChar FromEntity(string str, ref int len)
 {
     StackItem[] stack = new StackItem[3];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(str);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(str);
     #endif
     stack[2].s_int = len;
     staticInterceptor.Invoke("fromEntity$$", "fromEntity(const QString&, int&)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).Free();
     #endif
     len = stack[2].s_int;
     object returnValue = ((GCHandle) stack[0].s_class).Target;
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[0].s_class);
     #else
     ((GCHandle) stack[0].s_class).Free();
     #endif
     return (QChar) returnValue;
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:34,代碼來源:KCharsets.cs

示例14: GetItemPosition

 public void GetItemPosition(int index, ref int rowPtr, QFormLayout.ItemRole rolePtr)
 {
     StackItem[] stack = new StackItem[4];
     stack[1].s_int = index;
     stack[2].s_int = rowPtr;
     stack[3].s_int = (int) rolePtr;
     interceptor.Invoke("getItemPosition$$$", "getItemPosition(int, int*, QFormLayout::ItemRole*) const", stack);
     rowPtr = stack[2].s_int;
     return;
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:10,代碼來源:QFormLayout.cs

示例15: Replace

 public static int Replace(StringBuilder text, QRegExp pattern, string replacement, int index, long options, ref int replacedLength)
 {
     StackItem[] stack = new StackItem[7];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(text);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(text);
     #endif
     #if DEBUG
     stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(pattern);
     #else
     stack[2].s_class = (IntPtr) GCHandle.Alloc(pattern);
     #endif
     #if DEBUG
     stack[3].s_class = (IntPtr) DebugGCHandle.Alloc(replacement);
     #else
     stack[3].s_class = (IntPtr) GCHandle.Alloc(replacement);
     #endif
     stack[4].s_int = index;
     stack[5].s_long = options;
     stack[6].s_int = replacedLength;
     staticInterceptor.Invoke("replace$#$$$$", "replace(QString&, const QRegExp&, const QString&, int, long, int*)", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[2].s_class);
     #else
     ((GCHandle) stack[2].s_class).SynchronizedFree();
     #endif
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[3].s_class);
     #else
     ((GCHandle) stack[3].s_class).SynchronizedFree();
     #endif
     replacedLength = stack[6].s_int;
     return stack[0].s_int;
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:40,代碼來源:KReplace.cs


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