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
3 changed files with 54 additions and 53 deletions
|
@ -26,10 +26,10 @@ namespace Pango {
|
||||||
|
|
||||||
public partial class Layout {
|
public partial class Layout {
|
||||||
|
|
||||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
static extern IntPtr pango_layout_get_lines(IntPtr raw);
|
static extern IntPtr pango_layout_get_lines(IntPtr raw);
|
||||||
|
|
||||||
public LayoutLine[] Lines {
|
public LayoutLine[] Lines {
|
||||||
get {
|
get {
|
||||||
IntPtr list_ptr = pango_layout_get_lines(Handle);
|
IntPtr list_ptr = pango_layout_get_lines(Handle);
|
||||||
if (list_ptr == IntPtr.Zero)
|
if (list_ptr == IntPtr.Zero)
|
||||||
|
@ -38,21 +38,22 @@ public LayoutLine[] Lines {
|
||||||
LayoutLine[] result = new LayoutLine [list.Count];
|
LayoutLine[] result = new LayoutLine [list.Count];
|
||||||
for (int i = 0; i < list.Count; i++)
|
for (int i = 0; i < list.Count; i++)
|
||||||
result[i] = new LayoutLine ((IntPtr)list[i]);
|
result[i] = new LayoutLine ((IntPtr)list[i]);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
[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);
|
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;
|
uint ucs4_accel_char;
|
||||||
IntPtr native_markup = GLib.Marshaller.StringToPtrGStrdup (markup);
|
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);
|
pango_layout_set_markup_with_accel (Handle, native_markup, -1, GLib.Marshaller.CharToGUnichar (accel_marker), out ucs4_accel_char);
|
||||||
GLib.Marshaller.Free (native_markup);
|
GLib.Marshaller.Free (native_markup);
|
||||||
accel_char = GLib.Marshaller.GUnicharToChar (ucs4_accel_char);
|
accel_char = GLib.Marshaller.GUnicharToChar (ucs4_accel_char);
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||||
static extern void g_free (IntPtr raw);
|
static extern void g_free (IntPtr raw);
|
||||||
|
|
|
@ -26,12 +26,12 @@ namespace Pango {
|
||||||
public partial class LayoutLine {
|
public partial class LayoutLine {
|
||||||
|
|
||||||
#if NOT_BROKEN
|
#if NOT_BROKEN
|
||||||
[DllImport ("libpango-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
[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);
|
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
|
#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
|
// FIXME: this is broken
|
||||||
throw new NotImplementedException ();
|
throw new NotImplementedException ();
|
||||||
#if NOT_BROKEN
|
#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);
|
Marshal.Copy (array_ptr, ranges, 0, count);
|
||||||
g_free (array_ptr);
|
g_free (array_ptr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue