Esempio n. 1
0
 public static extern TInt XIGrabDevice(
     IntPtr dpy,
     TInt deviceid,
     IntPtr grab_window,
     IntPtr time,
     IntPtr cursor,
     TInt grab_mode,
     TInt paired_device_mode,
     TBoolean owner_events,
     ref XIEventMask mask
     );
Esempio n. 2
0
 public static extern TInt XIGetProperty(
     IntPtr display,
     TInt deviceid,
     IntPtr property,
     long offset,
     long length,
     TBoolean delete_property,
     IntPtr type,
     ref IntPtr type_return,
     ref TInt format_return,
     ref TUlong num_items_return,
     TUlong bytes_after_return,
     TChar[]      data
     );
Esempio n. 3
0
        /// <summary>
        /// Does a 'not equal to' inequality comparison of one TType with another. Always does a strict comparison,
        /// unlike the Operations.Equal method where strictness can be specified.
        /// </summary>
        /// <param name="interpreter">The interpreter that the method is being called from.</param>
        /// <param name="a">The left hand operand of the comparison.</param>
        /// <param name="b">The right hand operand of the comparison.</param>
        /// <returns>
        /// An TBoolean containing the result of the comparison. Returns a TException or null when there is an error.
        /// </returns>
        public static TType NotEqual(Interpreter interpreter, TType a, TType b)
        {
            // Do an equality comparison of the arguments, and return the result if it's a TException or null.
            // If the result is a TBoolean then invert its value
            TType    value  = Equal(interpreter, a, b, true);
            TBoolean result = value as TBoolean;

            if (result == null)
            {
                return(value);
            }
            result.Value = !result.Value;
            return(result);
        }