File: //usr/share/gnome-boxes/vapi/gtk-frdp-0.1.vapi
/* gtk-frdp-0.1.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Frdp", gir_namespace = "GtkFrdp", gir_version = "0.1", lower_case_cprefix = "frdp_")]
namespace Frdp {
[CCode (cheader_filename = "gtk-frdp.h", type_id = "frdp_display_get_type ()")]
public class Display : Gtk.DrawingArea, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Display ();
public virtual bool authenticate (out string username, out string password, out string domain);
public void close ();
public Gdk.Pixbuf get_pixbuf ();
public bool is_open ();
public void open_host (string host, uint port);
public void set_scaling (bool scaling);
[NoAccessorMethod]
public string password { owned get; set; }
[NoAccessorMethod]
public bool scaling { get; set; }
[NoAccessorMethod]
public string username { owned get; set; }
public signal void rdp_connected ();
public signal void rdp_disconnected ();
public signal void rdp_needs_authentication ();
}
[CCode (cheader_filename = "gtk-frdp.h", type_id = "frdp_session_get_type ()")]
public class Session : GLib.Object {
[CCode (has_construct_function = false)]
public Session (Frdp.Display display);
public void close ();
public async bool connect (string hostname, uint port, GLib.Cancellable? cancellable) throws GLib.Error;
public bool is_open ();
public void mouse_event (Frdp.MouseEvent event, uint16 x, uint16 y);
public void mouse_pointer (bool enter);
public void send_key (Frdp.KeyEvent event, uint16 keycode);
[NoAccessorMethod]
public Gtk.Widget display { owned get; set; }
[NoAccessorMethod]
public string hostname { owned get; set; }
[NoAccessorMethod]
public string password { owned get; set; }
[NoAccessorMethod]
public uint port { get; set; }
[NoAccessorMethod]
public bool scaling { get; set; }
[NoAccessorMethod]
public string username { owned get; set; }
public signal void rdp_disconnected ();
}
[CCode (cheader_filename = "gtk-frdp.h", cprefix = "FRDP_KEY_EVENT_", has_type_id = false)]
[Flags]
public enum KeyEvent {
PRESS,
RELEASE
}
[CCode (cheader_filename = "gtk-frdp.h", cprefix = "FRDP_MOUSE_EVENT_", has_type_id = false)]
[Flags]
public enum MouseEvent {
MOVE,
DOWN,
WHEEL,
WHEEL_NEGATIVE,
BUTTON1,
BUTTON2,
BUTTON3,
BUTTON4,
BUTTON5,
HWHEEL
}
}