Example #1
0
        Unique.MessageData Copy()
        {
            IntPtr raw_ret = unique_message_data_copy(Handle);

            Unique.MessageData ret = raw_ret == IntPtr.Zero ? null : (Unique.MessageData)GLib.Opaque.GetOpaque(raw_ret, typeof(Unique.MessageData), true);
            return(ret);
        }
Example #2
0
        public Unique.Response SendMessage(Unique.Command command_id, Unique.MessageData message_data)
        {
            int raw_ret = unique_app_send_message(Handle, (int)command_id, message_data == null ? IntPtr.Zero : message_data.Handle);
            var ret     = (Unique.Response)raw_ret;

            return(ret);
        }
Example #3
0
 protected virtual Unique.Response OnMessageReceived(int command, Unique.MessageData message_data, uint time_)
 {
     GLib.Value      ret             = new GLib.Value(Unique.ResponseGType.GType);
     GLib.ValueArray inst_and_params = new GLib.ValueArray(4);
     GLib.Value[]    vals            = new GLib.Value [4];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(command);
     inst_and_params.Append(vals [1]);
     vals [2] = new GLib.Value(message_data);
     inst_and_params.Append(vals [2]);
     vals [3] = new GLib.Value(time_);
     inst_and_params.Append(vals [3]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
     Unique.Response result = (Unique.Response)(Enum) ret;
     ret.Dispose();
     return(result);
 }