mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 02:45:32 +00:00
c0b574a686
* mapdllnames.pl : a little whitespace action * api/*-api.xml : move to win32 dllnames * */makefile.win32 : remove the mapdllnames step * */*.cs : move to win32 dllnames * */*.custom : move to win32 dllnames * sources/gtk-sharp.sources : move to win32 dllnames svn path=/trunk/gtk-sharp/; revision=11823
30 lines
859 B
Plaintext
30 lines
859 B
Plaintext
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
private static extern string gtk_selection_data_get_text (ref Gtk.SelectionData selection_data);
|
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
private static extern void gtk_selection_data_set_text (ref Gtk.SelectionData selection_data, string str, int len);
|
|
|
|
public string Text {
|
|
get {
|
|
return gtk_selection_data_get_text (ref this);
|
|
}
|
|
set {
|
|
gtk_selection_data_set_text (ref this, value, value.Length);
|
|
}
|
|
}
|
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
static extern void gtk_selection_data_set (ref Gtk.SelectionData raw, IntPtr type, int format, byte[] data, int length);
|
|
|
|
public byte[] Data {
|
|
get {
|
|
byte[] ret = new byte[length];
|
|
Marshal.Copy (_data, ret, 0, length);
|
|
return ret;
|
|
}
|
|
set {
|
|
gtk_selection_data_set (ref this, _type, format, value, value.Length);
|
|
}
|
|
}
|