mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-07-21 10:15:12 +02:00
pango: Re-indent code that was moved inside partial classes
No real code change, just whitespace.
This commit is contained in:
parent
094a49f69a
commit
5b22918f4f
@ -26,10 +26,10 @@ namespace Pango {
|
||||
|
||||
public partial class Layout {
|
||||
|
||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr pango_layout_get_lines(IntPtr raw);
|
||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr pango_layout_get_lines(IntPtr raw);
|
||||
|
||||
public LayoutLine[] Lines {
|
||||
public LayoutLine[] Lines {
|
||||
get {
|
||||
IntPtr list_ptr = pango_layout_get_lines(Handle);
|
||||
if (list_ptr == IntPtr.Zero)
|
||||
@ -38,21 +38,22 @@ public LayoutLine[] Lines {
|
||||
LayoutLine[] result = new LayoutLine [list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
result[i] = new LayoutLine ((IntPtr)list[i]);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void pango_layout_set_markup_with_accel (IntPtr raw, IntPtr markup, int length, uint accel_marker, out uint accel_char);
|
||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void pango_layout_set_markup_with_accel (IntPtr raw, IntPtr markup, int length, uint accel_marker, out uint accel_char);
|
||||
|
||||
public void SetMarkupWithAccel (string markup, char accel_marker, out char accel_char)
|
||||
{
|
||||
public void SetMarkupWithAccel (string markup, char accel_marker, out char accel_char)
|
||||
{
|
||||
uint ucs4_accel_char;
|
||||
IntPtr native_markup = GLib.Marshaller.StringToPtrGStrdup (markup);
|
||||
pango_layout_set_markup_with_accel (Handle, native_markup, -1, GLib.Marshaller.CharToGUnichar (accel_marker), out ucs4_accel_char);
|
||||
GLib.Marshaller.Free (native_markup);
|
||||
accel_char = GLib.Marshaller.GUnicharToChar (ucs4_accel_char);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
@ -26,12 +26,12 @@ namespace Pango {
|
||||
public partial class LayoutLine {
|
||||
|
||||
#if NOT_BROKEN
|
||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void pango_layout_line_get_x_ranges(IntPtr raw, int start_index, int end_index, out IntPtr ranges_handle, out int n_ranges);
|
||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void pango_layout_line_get_x_ranges(IntPtr raw, int start_index, int end_index, out IntPtr ranges_handle, out int n_ranges);
|
||||
#endif
|
||||
|
||||
public void GetXRanges(int start_index, int end_index, out int[][] ranges)
|
||||
{
|
||||
public void GetXRanges(int start_index, int end_index, out int[][] ranges)
|
||||
{
|
||||
// FIXME: this is broken
|
||||
throw new NotImplementedException ();
|
||||
#if NOT_BROKEN
|
||||
@ -48,6 +48,6 @@ public void GetXRanges(int start_index, int end_index, out int[][] ranges)
|
||||
Marshal.Copy (array_ptr, ranges, 0, count);
|
||||
g_free (array_ptr);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user