mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 19:35:34 +00:00
2003-01-10 Duncan Mak <duncan@ximian.com>
* gtk/TextView.custom (WindowToBufferCoords): Remove the hack, as the generator produces correct code now. svn path=/trunk/gtk-sharp/; revision=10356
This commit is contained in:
parent
26a40b9ebf
commit
c3137abd9d
|
@ -1,5 +1,8 @@
|
||||||
2003-01-10 Duncan Mak <duncan@ximian.com>
|
2003-01-10 Duncan Mak <duncan@ximian.com>
|
||||||
|
|
||||||
|
* gtk/TextView.custom (WindowToBufferCoords): Remove the hack, as
|
||||||
|
the generator produces correct code now.
|
||||||
|
|
||||||
* sources/Gtk.metadata (GtkTextView): Add a patch from Fredrik
|
* sources/Gtk.metadata (GtkTextView): Add a patch from Fredrik
|
||||||
Nilsson <jymdman@home.se> to add needed 'out' parameters.
|
Nilsson <jymdman@home.se> to add needed 'out' parameters.
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1 @@
|
||||||
[DllImport("gtk-x11-2.0", EntryPoint="gtk_text_view_window_to_buffer_coords")]
|
|
||||||
unsafe static extern void gtk_text_view_window_to_buffer_coords(IntPtr raw, int win, int window_x, int window_y, int *buffer_x, int *buffer_y);
|
|
||||||
/// <summary> WindowToBufferCoords Method </summary>
|
|
||||||
/// <remarks> To be completed </remarks>
|
|
||||||
public void WindowToBufferCoords(Gtk.TextWindowType win, int window_x, int window_y, out int buffer_x, out int buffer_y) {
|
|
||||||
int x = 0, y = 0;
|
|
||||||
|
|
||||||
unsafe {
|
|
||||||
gtk_text_view_window_to_buffer_coords(Handle, (int) win, window_x, window_y, &x, &y);
|
|
||||||
}
|
|
||||||
buffer_x = x;
|
|
||||||
buffer_y = y;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue