当前位置: 首页>>代码示例>>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;未经允许,请勿转载。