no more submodule

This commit is contained in:
2024-09-15 22:40:48 +02:00
parent df3b8a3135
commit 0234b33671
5804 changed files with 943618 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.AlignmentGType))]
public enum Alignment {
Left,
Center,
Right,
}
internal class AlignmentGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_alignment_get_type();
static d_pango_alignment_get_type pango_alignment_get_type = FuncLoader.LoadFunction<d_pango_alignment_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_alignment_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_alignment_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,85 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct Analysis : IEquatable<Analysis> {
private IntPtr _shape_engine;
public Pango.EngineShape ShapeEngine {
get {
return _shape_engine == IntPtr.Zero ? null : (Pango.EngineShape) GLib.Opaque.GetOpaque (_shape_engine, typeof (Pango.EngineShape), false);
}
set {
_shape_engine = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _lang_engine;
public Pango.EngineLang LangEngine {
get {
return _lang_engine == IntPtr.Zero ? null : (Pango.EngineLang) GLib.Opaque.GetOpaque (_lang_engine, typeof (Pango.EngineLang), false);
}
set {
_lang_engine = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _font;
public Pango.Font Font {
get {
return GLib.Object.GetObject(_font) as Pango.Font;
}
set {
_font = value == null ? IntPtr.Zero : value.Handle;
}
}
public byte Level;
public byte Gravity;
public byte Flags;
public byte Script;
private IntPtr _language;
public Pango.Language Language {
get {
return _language == IntPtr.Zero ? null : (Pango.Language) GLib.Opaque.GetOpaque (_language, typeof (Pango.Language), false);
}
set {
_language = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _extra_attrs;
public static Pango.Analysis Zero = new Pango.Analysis ();
public static Pango.Analysis New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.Analysis.Zero;
return (Pango.Analysis) Marshal.PtrToStructure (raw, typeof (Pango.Analysis));
}
public bool Equals (Analysis other)
{
return true && ShapeEngine.Equals (other.ShapeEngine) && LangEngine.Equals (other.LangEngine) && Font.Equals (other.Font) && Level.Equals (other.Level) && Gravity.Equals (other.Gravity) && Flags.Equals (other.Flags) && Script.Equals (other.Script) && Language.Equals (other.Language) && _extra_attrs.Equals (other._extra_attrs);
}
public override bool Equals (object other)
{
return other is Analysis && Equals ((Analysis) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ ShapeEngine.GetHashCode () ^ LangEngine.GetHashCode () ^ Font.GetHashCode () ^ Level.GetHashCode () ^ Gravity.GetHashCode () ^ Flags.GetHashCode () ^ Script.GetHashCode () ^ Language.GetHashCode () ^ _extra_attrs.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
public delegate IntPtr AttrDataCopyFunc();
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
public delegate bool AttrFilterFunc(Pango.Attribute attribute);
}

View File

@@ -0,0 +1,98 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class AttrFontFeatures : GLib.Opaque {
public Pango.Attribute Attr {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("attr"));
return Pango.Attribute.GetAttribute ((*raw_ptr));
}
}
set {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("attr"));
*raw_ptr = value.Handle;
}
}
}
public string Features {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("features"));
return GLib.Marshaller.Utf8PtrToString ((*raw_ptr));
}
}
set {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("features"));
*raw_ptr = GLib.Marshaller.StringToPtrGStrdup (value);
}
}
}
public AttrFontFeatures(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_font_features_new(IntPtr features);
static d_pango_attr_font_features_new pango_attr_font_features_new = FuncLoader.LoadFunction<d_pango_attr_font_features_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_font_features_new"));
public AttrFontFeatures (string features)
{
IntPtr native_features = GLib.Marshaller.StringToPtrGStrdup (features);
Raw = pango_attr_font_features_new(native_features);
GLib.Marshaller.Free (native_features);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("attr"
, 0
, (uint) Marshal.SizeOf<Pango.Attribute>() // attr
, null
, "features"
, (long) Marshal.OffsetOf<PangoAttrFontFeatures_attrAlign>("attr")
, 0
),
new GLib.AbiField("features"
, -1
, (uint) sizeof( IntPtr ) // features
, "attr"
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _abi_info;
}
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoAttrFontFeatures_attrAlign
{
sbyte f1;
private Pango.Attribute attr;
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,109 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class AttrIterator : GLib.Opaque {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_iterator_copy(IntPtr raw);
static d_pango_attr_iterator_copy pango_attr_iterator_copy = FuncLoader.LoadFunction<d_pango_attr_iterator_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_iterator_copy"));
public Pango.AttrIterator Copy() {
IntPtr raw_ret = pango_attr_iterator_copy(Handle);
Pango.AttrIterator ret = raw_ret == IntPtr.Zero ? null : (Pango.AttrIterator) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.AttrIterator), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_iterator_get(IntPtr raw, int type);
static d_pango_attr_iterator_get pango_attr_iterator_get = FuncLoader.LoadFunction<d_pango_attr_iterator_get>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_iterator_get"));
public Pango.Attribute Get(Pango.AttrType type) {
IntPtr raw_ret = pango_attr_iterator_get(Handle, (int) type);
Pango.Attribute ret = Pango.Attribute.GetAttribute (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_attr_iterator_next(IntPtr raw);
static d_pango_attr_iterator_next pango_attr_iterator_next = FuncLoader.LoadFunction<d_pango_attr_iterator_next>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_iterator_next"));
public bool Next() {
bool raw_ret = pango_attr_iterator_next(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_attr_iterator_range(IntPtr raw, out int start, out int end);
static d_pango_attr_iterator_range pango_attr_iterator_range = FuncLoader.LoadFunction<d_pango_attr_iterator_range>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_iterator_range"));
public void Range(out int start, out int end) {
pango_attr_iterator_range(Handle, out start, out end);
}
public AttrIterator(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_attr_iterator_destroy(IntPtr raw);
static d_pango_attr_iterator_destroy pango_attr_iterator_destroy = FuncLoader.LoadFunction<d_pango_attr_iterator_destroy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_iterator_destroy"));
protected override void Free (IntPtr raw)
{
pango_attr_iterator_destroy (raw);
}
[Obsolete("Pango.AttrIterator is now freed automatically")]
public void Destroy () {}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_attr_iterator_destroy (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~AttrIterator ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,151 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class AttrList : GLib.Opaque {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_list_copy(IntPtr raw);
static d_pango_attr_list_copy pango_attr_list_copy = FuncLoader.LoadFunction<d_pango_attr_list_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_copy"));
public Pango.AttrList Copy() {
IntPtr raw_ret = pango_attr_list_copy(Handle);
Pango.AttrList ret = raw_ret == IntPtr.Zero ? null : (Pango.AttrList) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.AttrList), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_list_filter(IntPtr raw, PangoSharp.AttrFilterFuncNative func, IntPtr data);
static d_pango_attr_list_filter pango_attr_list_filter = FuncLoader.LoadFunction<d_pango_attr_list_filter>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_filter"));
public Pango.AttrList Filter(Pango.AttrFilterFunc func) {
PangoSharp.AttrFilterFuncWrapper func_wrapper = new PangoSharp.AttrFilterFuncWrapper (func);
IntPtr raw_ret = pango_attr_list_filter(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
Pango.AttrList ret = raw_ret == IntPtr.Zero ? null : (Pango.AttrList) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.AttrList), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_list_get_iterator(IntPtr raw);
static d_pango_attr_list_get_iterator pango_attr_list_get_iterator = FuncLoader.LoadFunction<d_pango_attr_list_get_iterator>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_get_iterator"));
public Pango.AttrIterator Iterator {
get {
IntPtr raw_ret = pango_attr_list_get_iterator(Handle);
Pango.AttrIterator ret = raw_ret == IntPtr.Zero ? null : (Pango.AttrIterator) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.AttrIterator), true);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_list_get_type();
static d_pango_attr_list_get_type pango_attr_list_get_type = FuncLoader.LoadFunction<d_pango_attr_list_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_attr_list_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_attr_list_splice(IntPtr raw, IntPtr other, int pos, int len);
static d_pango_attr_list_splice pango_attr_list_splice = FuncLoader.LoadFunction<d_pango_attr_list_splice>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_splice"));
public void Splice(Pango.AttrList other, int pos, int len) {
pango_attr_list_splice(Handle, other == null ? IntPtr.Zero : other.Handle, pos, len);
}
public AttrList(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_list_new();
static d_pango_attr_list_new pango_attr_list_new = FuncLoader.LoadFunction<d_pango_attr_list_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_new"));
public AttrList ()
{
Raw = pango_attr_list_new();
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_list_ref(IntPtr raw);
static d_pango_attr_list_ref pango_attr_list_ref = FuncLoader.LoadFunction<d_pango_attr_list_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_ref"));
protected override void Ref (IntPtr raw)
{
if (!Owned) {
pango_attr_list_ref (raw);
Owned = true;
}
}
[Obsolete("Pango.AttrList is now refcounted automatically")]
public AttrList Ref () { return this; }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_attr_list_unref(IntPtr raw);
static d_pango_attr_list_unref pango_attr_list_unref = FuncLoader.LoadFunction<d_pango_attr_list_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_list_unref"));
protected override void Unref (IntPtr raw)
{
if (Owned) {
pango_attr_list_unref (raw);
Owned = false;
}
}
[Obsolete("Pango.AttrList is now refcounted automatically")]
public void Unref () {}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_attr_list_unref (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~AttrList ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,53 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.AttrTypeGType))]
public enum AttrType {
Invalid,
Language,
Family,
Style,
Weight,
Variant,
Stretch,
Size,
FontDesc,
Foreground,
Background,
Underline,
Strikethrough,
Rise,
Shape,
Scale,
Fallback,
LetterSpacing,
UnderlineColor,
StrikethroughColor,
AbsoluteSize,
Gravity,
GravityHint,
FontFeatures,
ForegroundAlpha,
BackgroundAlpha,
}
internal class AttrTypeGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_attr_type_get_type();
static d_pango_attr_type_get_type pango_attr_type_get_type = FuncLoader.LoadFunction<d_pango_attr_type_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_attr_type_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_attr_type_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,46 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.BidiTypeGType))]
public enum BidiType {
L,
Lre,
Lro,
R,
Al,
Rle,
Rlo,
Pdf,
En,
Es,
Et,
An,
Cs,
Nsm,
Bn,
B,
S,
Ws,
On,
}
internal class BidiTypeGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_bidi_type_get_type();
static d_pango_bidi_type_get_type pango_bidi_type_get_type = FuncLoader.LoadFunction<d_pango_bidi_type_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_bidi_type_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_bidi_type_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class BlockInfo : GLib.Opaque {
public BlockInfo(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CacheEntry : GLib.Opaque {
public CacheEntry(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoContextInfo : GLib.Opaque {
public CairoContextInfo(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoFcFont : GLib.Opaque {
public CairoFcFont(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoFcFontClass : GLib.Opaque {
public CairoFcFontClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoFcFontMapClass : GLib.Opaque {
public CairoFcFontMapClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,172 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoHelper {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate double d_pango_cairo_context_get_resolution(IntPtr context);
static d_pango_cairo_context_get_resolution pango_cairo_context_get_resolution = FuncLoader.LoadFunction<d_pango_cairo_context_get_resolution>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_context_get_resolution"));
public static double ContextGetResolution(Pango.Context context) {
double raw_ret = pango_cairo_context_get_resolution(context == null ? IntPtr.Zero : context.Handle);
double ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate PangoSharp.CairoShapeRendererFuncNative d_pango_cairo_context_get_shape_renderer(IntPtr context, IntPtr data);
static d_pango_cairo_context_get_shape_renderer pango_cairo_context_get_shape_renderer = FuncLoader.LoadFunction<d_pango_cairo_context_get_shape_renderer>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_context_get_shape_renderer"));
public static Pango.CairoShapeRendererFunc ContextGetShapeRenderer(Pango.Context context, IntPtr data) {
PangoSharp.CairoShapeRendererFuncNative raw_ret = pango_cairo_context_get_shape_renderer(context == null ? IntPtr.Zero : context.Handle, data);
Pango.CairoShapeRendererFunc ret = PangoSharp.CairoShapeRendererFuncWrapper.GetManagedDelegate (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_context_set_resolution(IntPtr context, double dpi);
static d_pango_cairo_context_set_resolution pango_cairo_context_set_resolution = FuncLoader.LoadFunction<d_pango_cairo_context_set_resolution>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_context_set_resolution"));
public static void ContextSetResolution(Pango.Context context, double dpi) {
pango_cairo_context_set_resolution(context == null ? IntPtr.Zero : context.Handle, dpi);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_context_set_shape_renderer(IntPtr context, PangoSharp.CairoShapeRendererFuncNative func, IntPtr data, GLib.DestroyNotify dnotify);
static d_pango_cairo_context_set_shape_renderer pango_cairo_context_set_shape_renderer = FuncLoader.LoadFunction<d_pango_cairo_context_set_shape_renderer>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_context_set_shape_renderer"));
public static void ContextSetShapeRenderer(Pango.Context context, Pango.CairoShapeRendererFunc func) {
PangoSharp.CairoShapeRendererFuncWrapper func_wrapper = new PangoSharp.CairoShapeRendererFuncWrapper (func);
IntPtr data;
GLib.DestroyNotify dnotify;
if (func == null) {
data = IntPtr.Zero;
dnotify = null;
} else {
data = (IntPtr) GCHandle.Alloc (func_wrapper);
dnotify = GLib.DestroyHelper.NotifyHandler;
}
pango_cairo_context_set_shape_renderer(context == null ? IntPtr.Zero : context.Handle, func_wrapper.NativeDelegate, data, dnotify);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_cairo_create_context(IntPtr cr);
static d_pango_cairo_create_context pango_cairo_create_context = FuncLoader.LoadFunction<d_pango_cairo_create_context>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_create_context"));
public static Pango.Context CreateContext(Cairo.Context cr) {
IntPtr raw_ret = pango_cairo_create_context(cr == null ? IntPtr.Zero : cr.Handle);
Pango.Context ret = GLib.Object.GetObject(raw_ret, true) as Pango.Context;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_cairo_create_layout(IntPtr cr);
static d_pango_cairo_create_layout pango_cairo_create_layout = FuncLoader.LoadFunction<d_pango_cairo_create_layout>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_create_layout"));
public static Pango.Layout CreateLayout(Cairo.Context cr) {
IntPtr raw_ret = pango_cairo_create_layout(cr == null ? IntPtr.Zero : cr.Handle);
Pango.Layout ret = GLib.Object.GetObject(raw_ret, true) as Pango.Layout;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_error_underline_path(IntPtr cr, double x, double y, double width, double height);
static d_pango_cairo_error_underline_path pango_cairo_error_underline_path = FuncLoader.LoadFunction<d_pango_cairo_error_underline_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_error_underline_path"));
public static void ErrorUnderlinePath(Cairo.Context cr, double x, double y, double width, double height) {
pango_cairo_error_underline_path(cr == null ? IntPtr.Zero : cr.Handle, x, y, width, height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_glyph_string_path(IntPtr cr, IntPtr font, IntPtr glyphs);
static d_pango_cairo_glyph_string_path pango_cairo_glyph_string_path = FuncLoader.LoadFunction<d_pango_cairo_glyph_string_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_glyph_string_path"));
public static void GlyphStringPath(Cairo.Context cr, Pango.Font font, Pango.GlyphString glyphs) {
pango_cairo_glyph_string_path(cr == null ? IntPtr.Zero : cr.Handle, font == null ? IntPtr.Zero : font.Handle, glyphs == null ? IntPtr.Zero : glyphs.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_layout_line_path(IntPtr cr, IntPtr line);
static d_pango_cairo_layout_line_path pango_cairo_layout_line_path = FuncLoader.LoadFunction<d_pango_cairo_layout_line_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_layout_line_path"));
public static void LayoutLinePath(Cairo.Context cr, Pango.LayoutLine line) {
pango_cairo_layout_line_path(cr == null ? IntPtr.Zero : cr.Handle, line == null ? IntPtr.Zero : line.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_layout_path(IntPtr cr, IntPtr layout);
static d_pango_cairo_layout_path pango_cairo_layout_path = FuncLoader.LoadFunction<d_pango_cairo_layout_path>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_layout_path"));
public static void LayoutPath(Cairo.Context cr, Pango.Layout layout) {
pango_cairo_layout_path(cr == null ? IntPtr.Zero : cr.Handle, layout == null ? IntPtr.Zero : layout.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_show_error_underline(IntPtr cr, double x, double y, double width, double height);
static d_pango_cairo_show_error_underline pango_cairo_show_error_underline = FuncLoader.LoadFunction<d_pango_cairo_show_error_underline>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_show_error_underline"));
public static void ShowErrorUnderline(Cairo.Context cr, double x, double y, double width, double height) {
pango_cairo_show_error_underline(cr == null ? IntPtr.Zero : cr.Handle, x, y, width, height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_show_glyph_item(IntPtr cr, IntPtr text, IntPtr glyph_item);
static d_pango_cairo_show_glyph_item pango_cairo_show_glyph_item = FuncLoader.LoadFunction<d_pango_cairo_show_glyph_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_show_glyph_item"));
public static void ShowGlyphItem(Cairo.Context cr, string text, Pango.GlyphItem glyph_item) {
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
IntPtr native_glyph_item = GLib.Marshaller.StructureToPtrAlloc (glyph_item);
pango_cairo_show_glyph_item(cr == null ? IntPtr.Zero : cr.Handle, native_text, native_glyph_item);
GLib.Marshaller.Free (native_text);
Marshal.FreeHGlobal (native_glyph_item);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_show_glyph_string(IntPtr cr, IntPtr font, IntPtr glyphs);
static d_pango_cairo_show_glyph_string pango_cairo_show_glyph_string = FuncLoader.LoadFunction<d_pango_cairo_show_glyph_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_show_glyph_string"));
public static void ShowGlyphString(Cairo.Context cr, Pango.Font font, Pango.GlyphString glyphs) {
pango_cairo_show_glyph_string(cr == null ? IntPtr.Zero : cr.Handle, font == null ? IntPtr.Zero : font.Handle, glyphs == null ? IntPtr.Zero : glyphs.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_show_layout(IntPtr cr, IntPtr layout);
static d_pango_cairo_show_layout pango_cairo_show_layout = FuncLoader.LoadFunction<d_pango_cairo_show_layout>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_show_layout"));
public static void ShowLayout(Cairo.Context cr, Pango.Layout layout) {
pango_cairo_show_layout(cr == null ? IntPtr.Zero : cr.Handle, layout == null ? IntPtr.Zero : layout.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_show_layout_line(IntPtr cr, IntPtr line);
static d_pango_cairo_show_layout_line pango_cairo_show_layout_line = FuncLoader.LoadFunction<d_pango_cairo_show_layout_line>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_show_layout_line"));
public static void ShowLayoutLine(Cairo.Context cr, Pango.LayoutLine line) {
pango_cairo_show_layout_line(cr == null ? IntPtr.Zero : cr.Handle, line == null ? IntPtr.Zero : line.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_update_context(IntPtr cr, IntPtr context);
static d_pango_cairo_update_context pango_cairo_update_context = FuncLoader.LoadFunction<d_pango_cairo_update_context>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_update_context"));
public static void UpdateContext(Cairo.Context cr, Pango.Context context) {
pango_cairo_update_context(cr == null ? IntPtr.Zero : cr.Handle, context == null ? IntPtr.Zero : context.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_cairo_update_layout(IntPtr cr, IntPtr layout);
static d_pango_cairo_update_layout pango_cairo_update_layout = FuncLoader.LoadFunction<d_pango_cairo_update_layout>(FuncLoader.GetProcAddress(GLibrary.Load(Library.PangoCairo), "pango_cairo_update_layout"));
public static void UpdateLayout(Cairo.Context cr, Pango.Layout layout) {
pango_cairo_update_layout(cr == null ? IntPtr.Zero : cr.Handle, layout == null ? IntPtr.Zero : layout.Handle);
}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoRendererClass : GLib.Opaque {
public CairoRendererClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
public delegate void CairoShapeRendererFunc(Cairo.Context cr, Pango.Attribute attr, bool do_path);
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoWin32Font : GLib.Opaque {
public CairoWin32Font(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoWin32FontClass : GLib.Opaque {
public CairoWin32FontClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CairoWin32FontMapClass : GLib.Opaque {
public CairoWin32FontMapClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,108 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct Color : IEquatable<Color> {
public ushort Red;
public ushort Green;
public ushort Blue;
public static Pango.Color Zero = new Pango.Color ();
public static Pango.Color New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.Color.Zero;
return (Pango.Color) Marshal.PtrToStructure (raw, typeof (Pango.Color));
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_color_get_type();
static d_pango_color_get_type pango_color_get_type = FuncLoader.LoadFunction<d_pango_color_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_color_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_color_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_color_parse(IntPtr raw, IntPtr spec);
static d_pango_color_parse pango_color_parse = FuncLoader.LoadFunction<d_pango_color_parse>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_color_parse"));
public bool Parse(string spec) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Color>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_spec = GLib.Marshaller.StringToPtrGStrdup (spec);
bool raw_ret = pango_color_parse(this_as_native, native_spec);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_spec);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_color_to_string(IntPtr raw);
static d_pango_color_to_string pango_color_to_string = FuncLoader.LoadFunction<d_pango_color_to_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_color_to_string"));
public override string ToString() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Color>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr raw_ret = pango_color_to_string(this_as_native);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
static void ReadNative (IntPtr native, ref Pango.Color target)
{
target = New (native);
}
public bool Equals (Color other)
{
return true && Red.Equals (other.Red) && Green.Equals (other.Green) && Blue.Equals (other.Blue);
}
public override bool Equals (object other)
{
return other is Color && Equals ((Color) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Red.GetHashCode () ^ Green.GetHashCode () ^ Blue.GetHashCode ();
}
public static explicit operator GLib.Value (Pango.Color boxed)
{
GLib.Value val = GLib.Value.Empty;
val.Init (Pango.Color.GType);
val.Val = boxed;
return val;
}
public static explicit operator Pango.Color (GLib.Value val)
{
return (Pango.Color) val.Val;
}
[Obsolete("This is a no-op")]
public Pango.Color Copy() {
return this;
}
#endregion
}
}

View File

@@ -0,0 +1,271 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Context : GLib.Object {
public Context (IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_new();
static d_pango_context_new pango_context_new = FuncLoader.LoadFunction<d_pango_context_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_new"));
public Context () : base (IntPtr.Zero)
{
if (GetType () != typeof (Context)) {
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
return;
}
Raw = pango_context_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_changed(IntPtr raw);
static d_pango_context_changed pango_context_changed = FuncLoader.LoadFunction<d_pango_context_changed>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_changed"));
public void Changed() {
pango_context_changed(Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_context_get_base_dir(IntPtr raw);
static d_pango_context_get_base_dir pango_context_get_base_dir = FuncLoader.LoadFunction<d_pango_context_get_base_dir>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_base_dir"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_set_base_dir(IntPtr raw, int direction);
static d_pango_context_set_base_dir pango_context_set_base_dir = FuncLoader.LoadFunction<d_pango_context_set_base_dir>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_set_base_dir"));
public Pango.Direction BaseDir {
get {
int raw_ret = pango_context_get_base_dir(Handle);
Pango.Direction ret = (Pango.Direction) raw_ret;
return ret;
}
set {
pango_context_set_base_dir(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_context_get_base_gravity(IntPtr raw);
static d_pango_context_get_base_gravity pango_context_get_base_gravity = FuncLoader.LoadFunction<d_pango_context_get_base_gravity>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_base_gravity"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_set_base_gravity(IntPtr raw, int gravity);
static d_pango_context_set_base_gravity pango_context_set_base_gravity = FuncLoader.LoadFunction<d_pango_context_set_base_gravity>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_set_base_gravity"));
public Pango.Gravity BaseGravity {
get {
int raw_ret = pango_context_get_base_gravity(Handle);
Pango.Gravity ret = (Pango.Gravity) raw_ret;
return ret;
}
set {
pango_context_set_base_gravity(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_get_font_description(IntPtr raw);
static d_pango_context_get_font_description pango_context_get_font_description = FuncLoader.LoadFunction<d_pango_context_get_font_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_font_description"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_set_font_description(IntPtr raw, IntPtr desc);
static d_pango_context_set_font_description pango_context_set_font_description = FuncLoader.LoadFunction<d_pango_context_set_font_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_set_font_description"));
public Pango.FontDescription FontDescription {
get {
IntPtr raw_ret = pango_context_get_font_description(Handle);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), false);
return ret;
}
set {
pango_context_set_font_description(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_get_font_map(IntPtr raw);
static d_pango_context_get_font_map pango_context_get_font_map = FuncLoader.LoadFunction<d_pango_context_get_font_map>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_font_map"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_set_font_map(IntPtr raw, IntPtr font_map);
static d_pango_context_set_font_map pango_context_set_font_map = FuncLoader.LoadFunction<d_pango_context_set_font_map>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_set_font_map"));
public Pango.FontMap FontMap {
get {
IntPtr raw_ret = pango_context_get_font_map(Handle);
Pango.FontMap ret = GLib.Object.GetObject(raw_ret) as Pango.FontMap;
return ret;
}
set {
pango_context_set_font_map(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_context_get_gravity(IntPtr raw);
static d_pango_context_get_gravity pango_context_get_gravity = FuncLoader.LoadFunction<d_pango_context_get_gravity>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_gravity"));
public Pango.Gravity Gravity {
get {
int raw_ret = pango_context_get_gravity(Handle);
Pango.Gravity ret = (Pango.Gravity) raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_context_get_gravity_hint(IntPtr raw);
static d_pango_context_get_gravity_hint pango_context_get_gravity_hint = FuncLoader.LoadFunction<d_pango_context_get_gravity_hint>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_gravity_hint"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_set_gravity_hint(IntPtr raw, int hint);
static d_pango_context_set_gravity_hint pango_context_set_gravity_hint = FuncLoader.LoadFunction<d_pango_context_set_gravity_hint>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_set_gravity_hint"));
public Pango.GravityHint GravityHint {
get {
int raw_ret = pango_context_get_gravity_hint(Handle);
Pango.GravityHint ret = (Pango.GravityHint) raw_ret;
return ret;
}
set {
pango_context_set_gravity_hint(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_get_language(IntPtr raw);
static d_pango_context_get_language pango_context_get_language = FuncLoader.LoadFunction<d_pango_context_get_language>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_language"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_set_language(IntPtr raw, IntPtr language);
static d_pango_context_set_language pango_context_set_language = FuncLoader.LoadFunction<d_pango_context_set_language>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_set_language"));
public Pango.Language Language {
get {
IntPtr raw_ret = pango_context_get_language(Handle);
Pango.Language ret = raw_ret == IntPtr.Zero ? null : (Pango.Language) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Language), false);
return ret;
}
set {
pango_context_set_language(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_get_matrix(IntPtr raw);
static d_pango_context_get_matrix pango_context_get_matrix = FuncLoader.LoadFunction<d_pango_context_get_matrix>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_matrix"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_context_set_matrix(IntPtr raw, IntPtr value);
static d_pango_context_set_matrix pango_context_set_matrix = FuncLoader.LoadFunction<d_pango_context_set_matrix>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_set_matrix"));
public Pango.Matrix Matrix {
get {
IntPtr raw_ret = pango_context_get_matrix(Handle);
Pango.Matrix ret = Pango.Matrix.New (raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
pango_context_set_matrix(Handle, native_value);
Marshal.FreeHGlobal (native_value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_get_metrics(IntPtr raw, IntPtr desc, IntPtr language);
static d_pango_context_get_metrics pango_context_get_metrics = FuncLoader.LoadFunction<d_pango_context_get_metrics>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_metrics"));
public Pango.FontMetrics GetMetrics(Pango.FontDescription desc, Pango.Language language) {
IntPtr raw_ret = pango_context_get_metrics(Handle, desc == null ? IntPtr.Zero : desc.Handle, language == null ? IntPtr.Zero : language.Handle);
Pango.FontMetrics ret = raw_ret == IntPtr.Zero ? null : (Pango.FontMetrics) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontMetrics), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_pango_context_get_serial(IntPtr raw);
static d_pango_context_get_serial pango_context_get_serial = FuncLoader.LoadFunction<d_pango_context_get_serial>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_serial"));
public uint Serial {
get {
uint raw_ret = pango_context_get_serial(Handle);
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_get_type();
static d_pango_context_get_type pango_context_get_type = FuncLoader.LoadFunction<d_pango_context_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_context_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_load_font(IntPtr raw, IntPtr desc);
static d_pango_context_load_font pango_context_load_font = FuncLoader.LoadFunction<d_pango_context_load_font>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_load_font"));
public Pango.Font LoadFont(Pango.FontDescription desc) {
IntPtr raw_ret = pango_context_load_font(Handle, desc == null ? IntPtr.Zero : desc.Handle);
Pango.Font ret = GLib.Object.GetObject(raw_ret) as Pango.Font;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_context_load_fontset(IntPtr raw, IntPtr desc, IntPtr language);
static d_pango_context_load_fontset pango_context_load_fontset = FuncLoader.LoadFunction<d_pango_context_load_fontset>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_context_load_fontset"));
public Pango.Fontset LoadFontset(Pango.FontDescription desc, Pango.Language language) {
IntPtr raw_ret = pango_context_load_fontset(Handle, desc == null ? IntPtr.Zero : desc.Handle, language == null ? IntPtr.Zero : language.Handle);
Pango.Fontset ret = GLib.Object.GetObject(raw_ret) as Pango.Fontset;
return ret;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFace : Pango.FontFace {
public CoreTextFace(IntPtr raw) : base(raw) {}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFaceClass : GLib.Opaque {
public CoreTextFaceClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFamily : Pango.FontFamily {
public CoreTextFamily(IntPtr raw) : base(raw) {}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFamilyClass : GLib.Opaque {
public CoreTextFamilyClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,36 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class CoreTextFont : Pango.Font {
public CoreTextFont (IntPtr raw) : base(raw) {}
protected CoreTextFont() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_core_text_font_get_type();
static d_pango_core_text_font_get_type pango_core_text_font_get_type = FuncLoader.LoadFunction<d_pango_core_text_font_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_core_text_font_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_core_text_font_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFontKey : GLib.Opaque {
public CoreTextFontKey(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFontMap : GLib.Opaque {
public CoreTextFontMap(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFontMapClass : GLib.Opaque {
public CoreTextFontMapClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFontset : GLib.Opaque {
public CoreTextFontset(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFontsetClass : GLib.Opaque {
public CoreTextFontsetClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CoreTextFontsetKey : GLib.Opaque {
public CoreTextFontsetKey(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,144 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Coverage : GLib.Opaque {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_coverage_copy(IntPtr raw);
static d_pango_coverage_copy pango_coverage_copy = FuncLoader.LoadFunction<d_pango_coverage_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_copy"));
public Pango.Coverage Copy() {
IntPtr raw_ret = pango_coverage_copy(Handle);
Pango.Coverage ret = raw_ret == IntPtr.Zero ? null : (Pango.Coverage) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Coverage), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_coverage_from_bytes(out byte bytes, int n_bytes);
static d_pango_coverage_from_bytes pango_coverage_from_bytes = FuncLoader.LoadFunction<d_pango_coverage_from_bytes>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_from_bytes"));
public static Pango.Coverage FromBytes(out byte bytes, int n_bytes) {
IntPtr raw_ret = pango_coverage_from_bytes(out bytes, n_bytes);
Pango.Coverage ret = raw_ret == IntPtr.Zero ? null : (Pango.Coverage) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Coverage), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_coverage_get(IntPtr raw, int index_);
static d_pango_coverage_get pango_coverage_get = FuncLoader.LoadFunction<d_pango_coverage_get>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_get"));
public Pango.CoverageLevel Get(int index_) {
int raw_ret = pango_coverage_get(Handle, index_);
Pango.CoverageLevel ret = (Pango.CoverageLevel) raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_coverage_max(IntPtr raw, IntPtr other);
static d_pango_coverage_max pango_coverage_max = FuncLoader.LoadFunction<d_pango_coverage_max>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_max"));
public void Max(Pango.Coverage other) {
pango_coverage_max(Handle, other == null ? IntPtr.Zero : other.Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_coverage_set(IntPtr raw, int index_, int level);
static d_pango_coverage_set pango_coverage_set = FuncLoader.LoadFunction<d_pango_coverage_set>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_set"));
public void Set(int index_, Pango.CoverageLevel level) {
pango_coverage_set(Handle, index_, (int) level);
}
public Coverage(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_coverage_new();
static d_pango_coverage_new pango_coverage_new = FuncLoader.LoadFunction<d_pango_coverage_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_new"));
public Coverage ()
{
Raw = pango_coverage_new();
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_coverage_ref(IntPtr raw);
static d_pango_coverage_ref pango_coverage_ref = FuncLoader.LoadFunction<d_pango_coverage_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_ref"));
protected override void Ref (IntPtr raw)
{
if (!Owned) {
pango_coverage_ref (raw);
Owned = true;
}
}
[Obsolete("Pango.Coverage is now refcounted automatically")]
public Coverage Ref () { return this; }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_coverage_unref(IntPtr raw);
static d_pango_coverage_unref pango_coverage_unref = FuncLoader.LoadFunction<d_pango_coverage_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_unref"));
protected override void Unref (IntPtr raw)
{
if (Owned) {
pango_coverage_unref (raw);
Owned = false;
}
}
[Obsolete("Pango.Coverage is now refcounted automatically")]
public void Unref () {}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_coverage_unref (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~Coverage ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,31 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.CoverageLevelGType))]
public enum CoverageLevel {
None,
Fallback,
Approximate,
Exact,
}
internal class CoverageLevelGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_coverage_level_get_type();
static d_pango_coverage_level_get_type pango_coverage_level_get_type = FuncLoader.LoadFunction<d_pango_coverage_level_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_coverage_level_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_coverage_level_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.DirectionGType))]
public enum Direction {
Ltr,
Rtl,
TtbLtr,
TtbRtl,
WeakLtr,
WeakRtl,
Neutral,
}
internal class DirectionGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_direction_get_type();
static d_pango_direction_get_type pango_direction_get_type = FuncLoader.LoadFunction<d_pango_direction_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_direction_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_direction_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,31 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.EllipsizeModeGType))]
public enum EllipsizeMode {
None,
Start,
Middle,
End,
}
internal class EllipsizeModeGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_ellipsize_mode_get_type();
static d_pango_ellipsize_mode_get_type pango_ellipsize_mode_get_type = FuncLoader.LoadFunction<d_pango_ellipsize_mode_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_ellipsize_mode_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_ellipsize_mode_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class EllipsizeState : GLib.Opaque {
public EllipsizeState(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class EngineLang : GLib.Opaque {
public EngineLang(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class EngineShape : GLib.Opaque {
public EngineShape(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Extents : GLib.Opaque {
public Extents(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FT2Family : GLib.Opaque {
public FT2Family(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FT2Font : GLib.Opaque {
public FT2Font(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FT2FontClass : GLib.Opaque {
public FT2FontClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FT2GlyphInfo : GLib.Opaque {
public FT2GlyphInfo(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FT2Renderer : GLib.Opaque {
public FT2Renderer(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FT2RendererClass : GLib.Opaque {
public FT2RendererClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,110 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Font : GLib.Object {
public Font (IntPtr raw) : base(raw) {}
protected Font() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_describe(IntPtr raw);
static d_pango_font_describe pango_font_describe = FuncLoader.LoadFunction<d_pango_font_describe>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_describe"));
public Pango.FontDescription Describe() {
IntPtr raw_ret = pango_font_describe(Handle);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_describe_with_absolute_size(IntPtr raw);
static d_pango_font_describe_with_absolute_size pango_font_describe_with_absolute_size = FuncLoader.LoadFunction<d_pango_font_describe_with_absolute_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_describe_with_absolute_size"));
public Pango.FontDescription DescribeWithAbsoluteSize() {
IntPtr raw_ret = pango_font_describe_with_absolute_size(Handle);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_find_shaper(IntPtr raw, IntPtr language, uint ch);
static d_pango_font_find_shaper pango_font_find_shaper = FuncLoader.LoadFunction<d_pango_font_find_shaper>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_find_shaper"));
public Pango.EngineShape FindShaper(Pango.Language language, uint ch) {
IntPtr raw_ret = pango_font_find_shaper(Handle, language == null ? IntPtr.Zero : language.Handle, ch);
Pango.EngineShape ret = raw_ret == IntPtr.Zero ? null : (Pango.EngineShape) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.EngineShape), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_get_coverage(IntPtr raw, IntPtr language);
static d_pango_font_get_coverage pango_font_get_coverage = FuncLoader.LoadFunction<d_pango_font_get_coverage>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_get_coverage"));
public Pango.Coverage GetCoverage(Pango.Language language) {
IntPtr raw_ret = pango_font_get_coverage(Handle, language == null ? IntPtr.Zero : language.Handle);
Pango.Coverage ret = raw_ret == IntPtr.Zero ? null : (Pango.Coverage) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Coverage), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_get_font_map(IntPtr raw);
static d_pango_font_get_font_map pango_font_get_font_map = FuncLoader.LoadFunction<d_pango_font_get_font_map>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_get_font_map"));
public Pango.FontMap FontMap {
get {
IntPtr raw_ret = pango_font_get_font_map(Handle);
Pango.FontMap ret = GLib.Object.GetObject(raw_ret) as Pango.FontMap;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_get_glyph_extents(IntPtr raw, uint glyph, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_font_get_glyph_extents pango_font_get_glyph_extents = FuncLoader.LoadFunction<d_pango_font_get_glyph_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_get_glyph_extents"));
public void GetGlyphExtents(uint glyph, Pango.Rectangle ink_rect, Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect);
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect);
pango_font_get_glyph_extents(Handle, glyph, native_ink_rect, native_logical_rect);
Marshal.FreeHGlobal (native_ink_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_get_metrics(IntPtr raw, IntPtr language);
static d_pango_font_get_metrics pango_font_get_metrics = FuncLoader.LoadFunction<d_pango_font_get_metrics>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_get_metrics"));
public Pango.FontMetrics GetMetrics(Pango.Language language) {
IntPtr raw_ret = pango_font_get_metrics(Handle, language == null ? IntPtr.Zero : language.Handle);
Pango.FontMetrics ret = raw_ret == IntPtr.Zero ? null : (Pango.FontMetrics) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontMetrics), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_get_type();
static d_pango_font_get_type pango_font_get_type = FuncLoader.LoadFunction<d_pango_font_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_font_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
#endregion
}
}

View File

@@ -0,0 +1,381 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FontDescription : GLib.Opaque {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_font_description_better_match(IntPtr raw, IntPtr old_match, IntPtr new_match);
static d_pango_font_description_better_match pango_font_description_better_match = FuncLoader.LoadFunction<d_pango_font_description_better_match>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_better_match"));
public bool BetterMatch(Pango.FontDescription old_match, Pango.FontDescription new_match) {
bool raw_ret = pango_font_description_better_match(Handle, old_match == null ? IntPtr.Zero : old_match.Handle, new_match == null ? IntPtr.Zero : new_match.Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_copy(IntPtr raw);
static d_pango_font_description_copy pango_font_description_copy = FuncLoader.LoadFunction<d_pango_font_description_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_copy"));
public Pango.FontDescription Copy() {
IntPtr raw_ret = pango_font_description_copy(Handle);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_copy_static(IntPtr raw);
static d_pango_font_description_copy_static pango_font_description_copy_static = FuncLoader.LoadFunction<d_pango_font_description_copy_static>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_copy_static"));
public Pango.FontDescription CopyStatic() {
IntPtr raw_ret = pango_font_description_copy_static(Handle);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_font_description_equal(IntPtr raw, IntPtr desc2);
static d_pango_font_description_equal pango_font_description_equal = FuncLoader.LoadFunction<d_pango_font_description_equal>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_equal"));
public bool Equal(Pango.FontDescription desc2) {
bool raw_ret = pango_font_description_equal(Handle, desc2 == null ? IntPtr.Zero : desc2.Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_from_string(IntPtr str);
static d_pango_font_description_from_string pango_font_description_from_string = FuncLoader.LoadFunction<d_pango_font_description_from_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_from_string"));
public static Pango.FontDescription FromString(string str) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
IntPtr raw_ret = pango_font_description_from_string(native_str);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), true);
GLib.Marshaller.Free (native_str);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_get_family(IntPtr raw);
static d_pango_font_description_get_family pango_font_description_get_family = FuncLoader.LoadFunction<d_pango_font_description_get_family>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_family"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_family(IntPtr raw, IntPtr family);
static d_pango_font_description_set_family pango_font_description_set_family = FuncLoader.LoadFunction<d_pango_font_description_set_family>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_family"));
public string Family {
get {
IntPtr raw_ret = pango_font_description_get_family(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
pango_font_description_set_family(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_description_get_gravity(IntPtr raw);
static d_pango_font_description_get_gravity pango_font_description_get_gravity = FuncLoader.LoadFunction<d_pango_font_description_get_gravity>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_gravity"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_gravity(IntPtr raw, int gravity);
static d_pango_font_description_set_gravity pango_font_description_set_gravity = FuncLoader.LoadFunction<d_pango_font_description_set_gravity>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_gravity"));
public Pango.Gravity Gravity {
get {
int raw_ret = pango_font_description_get_gravity(Handle);
Pango.Gravity ret = (Pango.Gravity) raw_ret;
return ret;
}
set {
pango_font_description_set_gravity(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_description_get_set_fields(IntPtr raw);
static d_pango_font_description_get_set_fields pango_font_description_get_set_fields = FuncLoader.LoadFunction<d_pango_font_description_get_set_fields>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_set_fields"));
public Pango.FontMask SetFields {
get {
int raw_ret = pango_font_description_get_set_fields(Handle);
Pango.FontMask ret = (Pango.FontMask) raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_description_get_size(IntPtr raw);
static d_pango_font_description_get_size pango_font_description_get_size = FuncLoader.LoadFunction<d_pango_font_description_get_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_size"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_size(IntPtr raw, int size);
static d_pango_font_description_set_size pango_font_description_set_size = FuncLoader.LoadFunction<d_pango_font_description_set_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_size"));
public int Size {
get {
int raw_ret = pango_font_description_get_size(Handle);
int ret = raw_ret;
return ret;
}
set {
pango_font_description_set_size(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_font_description_get_size_is_absolute(IntPtr raw);
static d_pango_font_description_get_size_is_absolute pango_font_description_get_size_is_absolute = FuncLoader.LoadFunction<d_pango_font_description_get_size_is_absolute>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_size_is_absolute"));
public bool SizeIsAbsolute {
get {
bool raw_ret = pango_font_description_get_size_is_absolute(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_description_get_stretch(IntPtr raw);
static d_pango_font_description_get_stretch pango_font_description_get_stretch = FuncLoader.LoadFunction<d_pango_font_description_get_stretch>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_stretch"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_stretch(IntPtr raw, int stretch);
static d_pango_font_description_set_stretch pango_font_description_set_stretch = FuncLoader.LoadFunction<d_pango_font_description_set_stretch>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_stretch"));
public Pango.Stretch Stretch {
get {
int raw_ret = pango_font_description_get_stretch(Handle);
Pango.Stretch ret = (Pango.Stretch) raw_ret;
return ret;
}
set {
pango_font_description_set_stretch(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_description_get_style(IntPtr raw);
static d_pango_font_description_get_style pango_font_description_get_style = FuncLoader.LoadFunction<d_pango_font_description_get_style>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_style"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_style(IntPtr raw, int style);
static d_pango_font_description_set_style pango_font_description_set_style = FuncLoader.LoadFunction<d_pango_font_description_set_style>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_style"));
public Pango.Style Style {
get {
int raw_ret = pango_font_description_get_style(Handle);
Pango.Style ret = (Pango.Style) raw_ret;
return ret;
}
set {
pango_font_description_set_style(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_get_type();
static d_pango_font_description_get_type pango_font_description_get_type = FuncLoader.LoadFunction<d_pango_font_description_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_font_description_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_description_get_variant(IntPtr raw);
static d_pango_font_description_get_variant pango_font_description_get_variant = FuncLoader.LoadFunction<d_pango_font_description_get_variant>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_variant"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_variant(IntPtr raw, int variant);
static d_pango_font_description_set_variant pango_font_description_set_variant = FuncLoader.LoadFunction<d_pango_font_description_set_variant>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_variant"));
public Pango.Variant Variant {
get {
int raw_ret = pango_font_description_get_variant(Handle);
Pango.Variant ret = (Pango.Variant) raw_ret;
return ret;
}
set {
pango_font_description_set_variant(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_description_get_weight(IntPtr raw);
static d_pango_font_description_get_weight pango_font_description_get_weight = FuncLoader.LoadFunction<d_pango_font_description_get_weight>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_get_weight"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_weight(IntPtr raw, int weight);
static d_pango_font_description_set_weight pango_font_description_set_weight = FuncLoader.LoadFunction<d_pango_font_description_set_weight>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_weight"));
public Pango.Weight Weight {
get {
int raw_ret = pango_font_description_get_weight(Handle);
Pango.Weight ret = (Pango.Weight) raw_ret;
return ret;
}
set {
pango_font_description_set_weight(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_pango_font_description_hash(IntPtr raw);
static d_pango_font_description_hash pango_font_description_hash = FuncLoader.LoadFunction<d_pango_font_description_hash>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_hash"));
public uint Hash {
get {
uint raw_ret = pango_font_description_hash(Handle);
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_merge(IntPtr raw, IntPtr desc_to_merge, bool replace_existing);
static d_pango_font_description_merge pango_font_description_merge = FuncLoader.LoadFunction<d_pango_font_description_merge>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_merge"));
public void Merge(Pango.FontDescription desc_to_merge, bool replace_existing) {
pango_font_description_merge(Handle, desc_to_merge == null ? IntPtr.Zero : desc_to_merge.Handle, replace_existing);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_merge_static(IntPtr raw, IntPtr desc_to_merge, bool replace_existing);
static d_pango_font_description_merge_static pango_font_description_merge_static = FuncLoader.LoadFunction<d_pango_font_description_merge_static>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_merge_static"));
public void MergeStatic(Pango.FontDescription desc_to_merge, bool replace_existing) {
pango_font_description_merge_static(Handle, desc_to_merge == null ? IntPtr.Zero : desc_to_merge.Handle, replace_existing);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_absolute_size(IntPtr raw, double size);
static d_pango_font_description_set_absolute_size pango_font_description_set_absolute_size = FuncLoader.LoadFunction<d_pango_font_description_set_absolute_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_absolute_size"));
public double AbsoluteSize {
set {
pango_font_description_set_absolute_size(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_set_family_static(IntPtr raw, IntPtr family);
static d_pango_font_description_set_family_static pango_font_description_set_family_static = FuncLoader.LoadFunction<d_pango_font_description_set_family_static>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_set_family_static"));
public string FamilyStatic {
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
pango_font_description_set_family_static(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_to_filename(IntPtr raw);
static d_pango_font_description_to_filename pango_font_description_to_filename = FuncLoader.LoadFunction<d_pango_font_description_to_filename>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_to_filename"));
public string ToFilename() {
IntPtr raw_ret = pango_font_description_to_filename(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_to_string(IntPtr raw);
static d_pango_font_description_to_string pango_font_description_to_string = FuncLoader.LoadFunction<d_pango_font_description_to_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_to_string"));
public override string ToString() {
IntPtr raw_ret = pango_font_description_to_string(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_unset_fields(IntPtr raw, int to_unset);
static d_pango_font_description_unset_fields pango_font_description_unset_fields = FuncLoader.LoadFunction<d_pango_font_description_unset_fields>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_unset_fields"));
public void UnsetFields(Pango.FontMask to_unset) {
pango_font_description_unset_fields(Handle, (int) to_unset);
}
public FontDescription(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_description_new();
static d_pango_font_description_new pango_font_description_new = FuncLoader.LoadFunction<d_pango_font_description_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_new"));
public FontDescription ()
{
Raw = pango_font_description_new();
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_description_free(IntPtr raw);
static d_pango_font_description_free pango_font_description_free = FuncLoader.LoadFunction<d_pango_font_description_free>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_description_free"));
protected override void Free (IntPtr raw)
{
pango_font_description_free (raw);
}
[Obsolete("Pango.FontDescription is now freed automatically")]
public void Free () {}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_font_description_free (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~FontDescription ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,78 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class FontFace : GLib.Object {
public FontFace (IntPtr raw) : base(raw) {}
protected FontFace() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_face_describe(IntPtr raw);
static d_pango_font_face_describe pango_font_face_describe = FuncLoader.LoadFunction<d_pango_font_face_describe>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_face_describe"));
public Pango.FontDescription Describe() {
IntPtr raw_ret = pango_font_face_describe(Handle);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_face_get_face_name(IntPtr raw);
static d_pango_font_face_get_face_name pango_font_face_get_face_name = FuncLoader.LoadFunction<d_pango_font_face_get_face_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_face_get_face_name"));
public string FaceName {
get {
IntPtr raw_ret = pango_font_face_get_face_name(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_face_get_type();
static d_pango_font_face_get_type pango_font_face_get_type = FuncLoader.LoadFunction<d_pango_font_face_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_face_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_font_face_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_font_face_is_synthesized(IntPtr raw);
static d_pango_font_face_is_synthesized pango_font_face_is_synthesized = FuncLoader.LoadFunction<d_pango_font_face_is_synthesized>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_face_is_synthesized"));
public bool IsSynthesized {
get {
bool raw_ret = pango_font_face_is_synthesized(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_face_list_sizes(IntPtr raw, out int sizes, out int n_sizes);
static d_pango_font_face_list_sizes pango_font_face_list_sizes = FuncLoader.LoadFunction<d_pango_font_face_list_sizes>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_face_list_sizes"));
public void ListSizes(out int sizes, out int n_sizes) {
pango_font_face_list_sizes(Handle, out sizes, out n_sizes);
}
#endregion
}
}

View File

@@ -0,0 +1,60 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class FontFamily : GLib.Object {
public FontFamily (IntPtr raw) : base(raw) {}
protected FontFamily() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_family_get_name(IntPtr raw);
static d_pango_font_family_get_name pango_font_family_get_name = FuncLoader.LoadFunction<d_pango_font_family_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_family_get_name"));
public string Name {
get {
IntPtr raw_ret = pango_font_family_get_name(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_family_get_type();
static d_pango_font_family_get_type pango_font_family_get_type = FuncLoader.LoadFunction<d_pango_font_family_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_family_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_font_family_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_font_family_is_monospace(IntPtr raw);
static d_pango_font_family_is_monospace pango_font_family_is_monospace = FuncLoader.LoadFunction<d_pango_font_family_is_monospace>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_family_is_monospace"));
public bool IsMonospace {
get {
bool raw_ret = pango_font_family_is_monospace(Handle);
bool ret = raw_ret;
return ret;
}
}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FontHashKey : GLib.Opaque {
public FontHashKey(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,86 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class FontMap : GLib.Object {
public FontMap (IntPtr raw) : base(raw) {}
protected FontMap() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_map_changed(IntPtr raw);
static d_pango_font_map_changed pango_font_map_changed = FuncLoader.LoadFunction<d_pango_font_map_changed>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_changed"));
public void Changed() {
pango_font_map_changed(Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_map_create_context(IntPtr raw);
static d_pango_font_map_create_context pango_font_map_create_context = FuncLoader.LoadFunction<d_pango_font_map_create_context>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_create_context"));
public Pango.Context CreateContext() {
IntPtr raw_ret = pango_font_map_create_context(Handle);
Pango.Context ret = GLib.Object.GetObject(raw_ret) as Pango.Context;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_pango_font_map_get_serial(IntPtr raw);
static d_pango_font_map_get_serial pango_font_map_get_serial = FuncLoader.LoadFunction<d_pango_font_map_get_serial>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_get_serial"));
public uint Serial {
get {
uint raw_ret = pango_font_map_get_serial(Handle);
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_map_get_type();
static d_pango_font_map_get_type pango_font_map_get_type = FuncLoader.LoadFunction<d_pango_font_map_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_font_map_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_map_load_font(IntPtr raw, IntPtr context, IntPtr desc);
static d_pango_font_map_load_font pango_font_map_load_font = FuncLoader.LoadFunction<d_pango_font_map_load_font>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_load_font"));
public Pango.Font LoadFont(Pango.Context context, Pango.FontDescription desc) {
IntPtr raw_ret = pango_font_map_load_font(Handle, context == null ? IntPtr.Zero : context.Handle, desc == null ? IntPtr.Zero : desc.Handle);
Pango.Font ret = GLib.Object.GetObject(raw_ret) as Pango.Font;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_map_load_fontset(IntPtr raw, IntPtr context, IntPtr desc, IntPtr language);
static d_pango_font_map_load_fontset pango_font_map_load_fontset = FuncLoader.LoadFunction<d_pango_font_map_load_fontset>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_map_load_fontset"));
public Pango.Fontset LoadFontset(Pango.Context context, Pango.FontDescription desc, Pango.Language language) {
IntPtr raw_ret = pango_font_map_load_fontset(Handle, context == null ? IntPtr.Zero : context.Handle, desc == null ? IntPtr.Zero : desc.Handle, language == null ? IntPtr.Zero : language.Handle);
Pango.Fontset ret = GLib.Object.GetObject(raw_ret) as Pango.Fontset;
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,35 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[Flags]
[GLib.GType (typeof (Pango.FontMaskGType))]
public enum FontMask {
Family = 1 << 0,
Style = 1 << 1,
Variant = 1 << 2,
Weight = 1 << 3,
Stretch = 1 << 4,
Size = 1 << 5,
Gravity = 1 << 6,
}
internal class FontMaskGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_mask_get_type();
static d_pango_font_mask_get_type pango_font_mask_get_type = FuncLoader.LoadFunction<d_pango_font_mask_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_mask_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_font_mask_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,197 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FontMetrics : GLib.Opaque {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_approximate_char_width(IntPtr raw);
static d_pango_font_metrics_get_approximate_char_width pango_font_metrics_get_approximate_char_width = FuncLoader.LoadFunction<d_pango_font_metrics_get_approximate_char_width>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_approximate_char_width"));
public int ApproximateCharWidth {
get {
int raw_ret = pango_font_metrics_get_approximate_char_width(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_approximate_digit_width(IntPtr raw);
static d_pango_font_metrics_get_approximate_digit_width pango_font_metrics_get_approximate_digit_width = FuncLoader.LoadFunction<d_pango_font_metrics_get_approximate_digit_width>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_approximate_digit_width"));
public int ApproximateDigitWidth {
get {
int raw_ret = pango_font_metrics_get_approximate_digit_width(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_ascent(IntPtr raw);
static d_pango_font_metrics_get_ascent pango_font_metrics_get_ascent = FuncLoader.LoadFunction<d_pango_font_metrics_get_ascent>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_ascent"));
public int Ascent {
get {
int raw_ret = pango_font_metrics_get_ascent(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_descent(IntPtr raw);
static d_pango_font_metrics_get_descent pango_font_metrics_get_descent = FuncLoader.LoadFunction<d_pango_font_metrics_get_descent>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_descent"));
public int Descent {
get {
int raw_ret = pango_font_metrics_get_descent(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_strikethrough_position(IntPtr raw);
static d_pango_font_metrics_get_strikethrough_position pango_font_metrics_get_strikethrough_position = FuncLoader.LoadFunction<d_pango_font_metrics_get_strikethrough_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_strikethrough_position"));
public int StrikethroughPosition {
get {
int raw_ret = pango_font_metrics_get_strikethrough_position(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_strikethrough_thickness(IntPtr raw);
static d_pango_font_metrics_get_strikethrough_thickness pango_font_metrics_get_strikethrough_thickness = FuncLoader.LoadFunction<d_pango_font_metrics_get_strikethrough_thickness>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_strikethrough_thickness"));
public int StrikethroughThickness {
get {
int raw_ret = pango_font_metrics_get_strikethrough_thickness(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_metrics_get_type();
static d_pango_font_metrics_get_type pango_font_metrics_get_type = FuncLoader.LoadFunction<d_pango_font_metrics_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_font_metrics_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_underline_position(IntPtr raw);
static d_pango_font_metrics_get_underline_position pango_font_metrics_get_underline_position = FuncLoader.LoadFunction<d_pango_font_metrics_get_underline_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_underline_position"));
public int UnderlinePosition {
get {
int raw_ret = pango_font_metrics_get_underline_position(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_font_metrics_get_underline_thickness(IntPtr raw);
static d_pango_font_metrics_get_underline_thickness pango_font_metrics_get_underline_thickness = FuncLoader.LoadFunction<d_pango_font_metrics_get_underline_thickness>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_get_underline_thickness"));
public int UnderlineThickness {
get {
int raw_ret = pango_font_metrics_get_underline_thickness(Handle);
int ret = raw_ret;
return ret;
}
}
public FontMetrics(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_font_metrics_ref(IntPtr raw);
static d_pango_font_metrics_ref pango_font_metrics_ref = FuncLoader.LoadFunction<d_pango_font_metrics_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_ref"));
protected override void Ref (IntPtr raw)
{
if (!Owned) {
pango_font_metrics_ref (raw);
Owned = true;
}
}
[Obsolete("Pango.FontMetrics is now refcounted automatically")]
public FontMetrics Ref () { return this; }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_font_metrics_unref(IntPtr raw);
static d_pango_font_metrics_unref pango_font_metrics_unref = FuncLoader.LoadFunction<d_pango_font_metrics_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_font_metrics_unref"));
protected override void Unref (IntPtr raw)
{
if (Owned) {
pango_font_metrics_unref (raw);
Owned = false;
}
}
[Obsolete("Pango.FontMetrics is now refcounted automatically")]
public void Unref () {}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_font_metrics_unref (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~FontMetrics ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,67 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Fontset : GLib.Object {
public Fontset (IntPtr raw) : base(raw) {}
protected Fontset() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_fontset_foreach(IntPtr raw, PangoSharp.FontsetForeachFuncNative func, IntPtr data);
static d_pango_fontset_foreach pango_fontset_foreach = FuncLoader.LoadFunction<d_pango_fontset_foreach>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_fontset_foreach"));
public void Foreach(Pango.FontsetForeachFunc func) {
PangoSharp.FontsetForeachFuncWrapper func_wrapper = new PangoSharp.FontsetForeachFuncWrapper (func);
pango_fontset_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_fontset_get_font(IntPtr raw, uint wc);
static d_pango_fontset_get_font pango_fontset_get_font = FuncLoader.LoadFunction<d_pango_fontset_get_font>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_fontset_get_font"));
public Pango.Font GetFont(uint wc) {
IntPtr raw_ret = pango_fontset_get_font(Handle, wc);
Pango.Font ret = GLib.Object.GetObject(raw_ret) as Pango.Font;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_fontset_get_metrics(IntPtr raw);
static d_pango_fontset_get_metrics pango_fontset_get_metrics = FuncLoader.LoadFunction<d_pango_fontset_get_metrics>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_fontset_get_metrics"));
public Pango.FontMetrics Metrics {
get {
IntPtr raw_ret = pango_fontset_get_metrics(Handle);
Pango.FontMetrics ret = raw_ret == IntPtr.Zero ? null : (Pango.FontMetrics) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontMetrics), false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_fontset_get_type();
static d_pango_fontset_get_type pango_fontset_get_type = FuncLoader.LoadFunction<d_pango_fontset_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_fontset_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_fontset_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
#endregion
}
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
public delegate bool FontsetForeachFunc(Pango.Fontset fontset, Pango.Font font);
}

View File

@@ -0,0 +1,331 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Global {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_bidi_type_for_unichar(uint ch);
static d_pango_bidi_type_for_unichar pango_bidi_type_for_unichar = FuncLoader.LoadFunction<d_pango_bidi_type_for_unichar>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_bidi_type_for_unichar"));
public static Pango.BidiType BidiTypeForUnichar(char ch) {
int raw_ret = pango_bidi_type_for_unichar(GLib.Marshaller.CharToGUnichar (ch));
Pango.BidiType ret = (Pango.BidiType) raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_extents_to_pixels(IntPtr inclusive, IntPtr nearest);
static d_pango_extents_to_pixels pango_extents_to_pixels = FuncLoader.LoadFunction<d_pango_extents_to_pixels>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_extents_to_pixels"));
public static void ExtentsToPixels(ref Pango.Rectangle inclusive, ref Pango.Rectangle nearest) {
IntPtr native_inclusive = GLib.Marshaller.StructureToPtrAlloc (inclusive);
IntPtr native_nearest = GLib.Marshaller.StructureToPtrAlloc (nearest);
pango_extents_to_pixels(native_inclusive, native_nearest);
inclusive = Pango.Rectangle.New (native_inclusive);
Marshal.FreeHGlobal (native_inclusive);
nearest = Pango.Rectangle.New (native_nearest);
Marshal.FreeHGlobal (native_nearest);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_find_base_dir(IntPtr text, int length);
static d_pango_find_base_dir pango_find_base_dir = FuncLoader.LoadFunction<d_pango_find_base_dir>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_find_base_dir"));
public static Pango.Direction FindBaseDir(string text) {
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
int raw_ret = pango_find_base_dir(native_text, System.Text.Encoding.UTF8.GetByteCount (text));
Pango.Direction ret = (Pango.Direction) raw_ret;
GLib.Marshaller.Free (native_text);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_find_paragraph_boundary(IntPtr text, int length, out int paragraph_delimiter_index, out int next_paragraph_start);
static d_pango_find_paragraph_boundary pango_find_paragraph_boundary = FuncLoader.LoadFunction<d_pango_find_paragraph_boundary>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_find_paragraph_boundary"));
public static void FindParagraphBoundary(string text, out int paragraph_delimiter_index, out int next_paragraph_start) {
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
pango_find_paragraph_boundary(native_text, System.Text.Encoding.UTF8.GetByteCount (text), out paragraph_delimiter_index, out next_paragraph_start);
GLib.Marshaller.Free (native_text);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_get_log_attrs(IntPtr text, int length, int level, IntPtr language, IntPtr log_attrs, int attrs_len);
static d_pango_get_log_attrs pango_get_log_attrs = FuncLoader.LoadFunction<d_pango_get_log_attrs>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_get_log_attrs"));
public static void GetLogAttrs(string text, int level, Pango.Language language, Pango.LogAttr log_attrs, int attrs_len) {
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
IntPtr native_log_attrs = GLib.Marshaller.StructureToPtrAlloc (log_attrs);
pango_get_log_attrs(native_text, System.Text.Encoding.UTF8.GetByteCount (text), level, language == null ? IntPtr.Zero : language.Handle, native_log_attrs, attrs_len);
GLib.Marshaller.Free (native_text);
Marshal.FreeHGlobal (native_log_attrs);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_gravity_get_for_matrix(IntPtr matrix);
static d_pango_gravity_get_for_matrix pango_gravity_get_for_matrix = FuncLoader.LoadFunction<d_pango_gravity_get_for_matrix>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_gravity_get_for_matrix"));
public static Pango.Gravity GravityGetForMatrix(Pango.Matrix matrix) {
IntPtr native_matrix = GLib.Marshaller.StructureToPtrAlloc (matrix);
int raw_ret = pango_gravity_get_for_matrix(native_matrix);
Pango.Gravity ret = (Pango.Gravity) raw_ret;
Marshal.FreeHGlobal (native_matrix);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_gravity_get_for_script(int script, int base_gravity, int hint);
static d_pango_gravity_get_for_script pango_gravity_get_for_script = FuncLoader.LoadFunction<d_pango_gravity_get_for_script>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_gravity_get_for_script"));
public static Pango.Gravity GravityGetForScript(Pango.Script script, Pango.Gravity base_gravity, Pango.GravityHint hint) {
int raw_ret = pango_gravity_get_for_script((int) script, (int) base_gravity, (int) hint);
Pango.Gravity ret = (Pango.Gravity) raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_gravity_get_for_script_and_width(int script, bool wide, int base_gravity, int hint);
static d_pango_gravity_get_for_script_and_width pango_gravity_get_for_script_and_width = FuncLoader.LoadFunction<d_pango_gravity_get_for_script_and_width>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_gravity_get_for_script_and_width"));
public static Pango.Gravity GravityGetForScriptAndWidth(Pango.Script script, bool wide, Pango.Gravity base_gravity, Pango.GravityHint hint) {
int raw_ret = pango_gravity_get_for_script_and_width((int) script, wide, (int) base_gravity, (int) hint);
Pango.Gravity ret = (Pango.Gravity) raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate double d_pango_gravity_to_rotation(int gravity);
static d_pango_gravity_to_rotation pango_gravity_to_rotation = FuncLoader.LoadFunction<d_pango_gravity_to_rotation>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_gravity_to_rotation"));
public static double GravityToRotation(Pango.Gravity gravity) {
double raw_ret = pango_gravity_to_rotation((int) gravity);
double ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_is_zero_width(uint ch);
static d_pango_is_zero_width pango_is_zero_width = FuncLoader.LoadFunction<d_pango_is_zero_width>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_is_zero_width"));
public static bool IsZeroWidth(char ch) {
bool raw_ret = pango_is_zero_width(GLib.Marshaller.CharToGUnichar (ch));
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_itemize_with_base_dir(IntPtr context, int base_dir, IntPtr text, int start_index, int length, IntPtr attrs, IntPtr cached_iter);
static d_pango_itemize_with_base_dir pango_itemize_with_base_dir = FuncLoader.LoadFunction<d_pango_itemize_with_base_dir>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_itemize_with_base_dir"));
public static Pango.Item[] ItemizeWithBaseDir(Pango.Context context, Pango.Direction base_dir, string text, int start_index, int length, Pango.AttrList attrs, Pango.AttrIterator cached_iter) {
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
IntPtr raw_ret = pango_itemize_with_base_dir(context == null ? IntPtr.Zero : context.Handle, (int) base_dir, native_text, start_index, length, attrs == null ? IntPtr.Zero : attrs.Handle, cached_iter == null ? IntPtr.Zero : cached_iter.Handle);
Pango.Item[] ret = GLib.Marshaller.ListPtrToArray<Pango.Item, Pango.Item> (raw_ret, true, true);
GLib.Marshaller.Free (native_text);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_parse_enum(IntPtr type, IntPtr str, out int value, bool warn, IntPtr possible_values);
static d_pango_parse_enum pango_parse_enum = FuncLoader.LoadFunction<d_pango_parse_enum>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_parse_enum"));
[Obsolete]
public static bool ParseEnum(GLib.GType type, string str, out int value, bool warn, string possible_values) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
bool raw_ret = pango_parse_enum(type.Val, native_str, out value, warn, GLib.Marshaller.StringToPtrGStrdup(possible_values));
bool ret = raw_ret;
GLib.Marshaller.Free (native_str);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_parse_stretch(IntPtr str, out int stretch, bool warn);
static d_pango_parse_stretch pango_parse_stretch = FuncLoader.LoadFunction<d_pango_parse_stretch>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_parse_stretch"));
public static bool ParseStretch(string str, out Pango.Stretch stretch, bool warn) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
int native_stretch;
bool raw_ret = pango_parse_stretch(native_str, out native_stretch, warn);
bool ret = raw_ret;
GLib.Marshaller.Free (native_str);
stretch = (Pango.Stretch) native_stretch;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_parse_style(IntPtr str, out int style, bool warn);
static d_pango_parse_style pango_parse_style = FuncLoader.LoadFunction<d_pango_parse_style>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_parse_style"));
public static bool ParseStyle(string str, out Pango.Style style, bool warn) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
int native_style;
bool raw_ret = pango_parse_style(native_str, out native_style, warn);
bool ret = raw_ret;
GLib.Marshaller.Free (native_str);
style = (Pango.Style) native_style;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_parse_variant(IntPtr str, out int variant, bool warn);
static d_pango_parse_variant pango_parse_variant = FuncLoader.LoadFunction<d_pango_parse_variant>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_parse_variant"));
public static bool ParseVariant(string str, out Pango.Variant variant, bool warn) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
int native_variant;
bool raw_ret = pango_parse_variant(native_str, out native_variant, warn);
bool ret = raw_ret;
GLib.Marshaller.Free (native_str);
variant = (Pango.Variant) native_variant;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_parse_weight(IntPtr str, out int weight, bool warn);
static d_pango_parse_weight pango_parse_weight = FuncLoader.LoadFunction<d_pango_parse_weight>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_parse_weight"));
public static bool ParseWeight(string str, out Pango.Weight weight, bool warn) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
int native_weight;
bool raw_ret = pango_parse_weight(native_str, out native_weight, warn);
bool ret = raw_ret;
GLib.Marshaller.Free (native_str);
weight = (Pango.Weight) native_weight;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_quantize_line_geometry(out int thickness, out int position);
static d_pango_quantize_line_geometry pango_quantize_line_geometry = FuncLoader.LoadFunction<d_pango_quantize_line_geometry>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_quantize_line_geometry"));
public static void QuantizeLineGeometry(out int thickness, out int position) {
pango_quantize_line_geometry(out thickness, out position);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_scan_int(ref IntPtr pos, out int out_param);
static d_pango_scan_int pango_scan_int = FuncLoader.LoadFunction<d_pango_scan_int>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_scan_int"));
[Obsolete]
public static bool ScanInt(ref string pos, out int out_param) {
IntPtr native_pos = GLib.Marshaller.StringToPtrGStrdup (pos);
bool raw_ret = pango_scan_int(ref native_pos, out out_param);
bool ret = raw_ret;
pos = GLib.Marshaller.Utf8PtrToString (native_pos);
GLib.Marshaller.Free (native_pos);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_script_for_unichar(uint ch);
static d_pango_script_for_unichar pango_script_for_unichar = FuncLoader.LoadFunction<d_pango_script_for_unichar>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_script_for_unichar"));
public static Pango.Script ScriptForUnichar(char ch) {
int raw_ret = pango_script_for_unichar(GLib.Marshaller.CharToGUnichar (ch));
Pango.Script ret = (Pango.Script) raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_script_get_sample_language(int script);
static d_pango_script_get_sample_language pango_script_get_sample_language = FuncLoader.LoadFunction<d_pango_script_get_sample_language>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_script_get_sample_language"));
public static Pango.Language ScriptGetSampleLanguage(Pango.Script script) {
IntPtr raw_ret = pango_script_get_sample_language((int) script);
Pango.Language ret = raw_ret == IntPtr.Zero ? null : (Pango.Language) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Language), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_shape_full(IntPtr item_text, int item_length, IntPtr paragraph_text, int paragraph_length, IntPtr analysis, IntPtr glyphs);
static d_pango_shape_full pango_shape_full = FuncLoader.LoadFunction<d_pango_shape_full>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_shape_full"));
public static void ShapeFull(string item_text, string paragraph_text, Pango.Analysis analysis, Pango.GlyphString glyphs) {
IntPtr native_item_text = GLib.Marshaller.StringToPtrGStrdup (item_text);
IntPtr native_paragraph_text = GLib.Marshaller.StringToPtrGStrdup (paragraph_text);
IntPtr native_analysis = GLib.Marshaller.StructureToPtrAlloc (analysis);
pango_shape_full(native_item_text, System.Text.Encoding.UTF8.GetByteCount (item_text), native_paragraph_text, System.Text.Encoding.UTF8.GetByteCount (paragraph_text), native_analysis, glyphs == null ? IntPtr.Zero : glyphs.Handle);
GLib.Marshaller.Free (native_item_text);
GLib.Marshaller.Free (native_paragraph_text);
Marshal.FreeHGlobal (native_analysis);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_skip_space(ref IntPtr pos);
static d_pango_skip_space pango_skip_space = FuncLoader.LoadFunction<d_pango_skip_space>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_skip_space"));
[Obsolete]
public static bool SkipSpace(ref string pos) {
IntPtr native_pos = GLib.Marshaller.StringToPtrGStrdup (pos);
bool raw_ret = pango_skip_space(ref native_pos);
bool ret = raw_ret;
pos = GLib.Marshaller.Utf8PtrToString (native_pos);
GLib.Marshaller.Free (native_pos);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_split_file_list(IntPtr str);
static d_pango_split_file_list pango_split_file_list = FuncLoader.LoadFunction<d_pango_split_file_list>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_split_file_list"));
[Obsolete]
public static string SplitFileList(string str) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
IntPtr raw_ret = pango_split_file_list(native_str);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
GLib.Marshaller.Free (native_str);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_trim_string(IntPtr str);
static d_pango_trim_string pango_trim_string = FuncLoader.LoadFunction<d_pango_trim_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_trim_string"));
[Obsolete]
public static string TrimString(string str) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
IntPtr raw_ret = pango_trim_string(native_str);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
GLib.Marshaller.Free (native_str);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_unichar_direction(uint ch);
static d_pango_unichar_direction pango_unichar_direction = FuncLoader.LoadFunction<d_pango_unichar_direction>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_unichar_direction"));
public static Pango.Direction UnicharDirection(char ch) {
int raw_ret = pango_unichar_direction(GLib.Marshaller.CharToGUnichar (ch));
Pango.Direction ret = (Pango.Direction) raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_version_check(int required_major, int required_minor, int required_micro);
static d_pango_version_check pango_version_check = FuncLoader.LoadFunction<d_pango_version_check>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_version_check"));
public static string VersionCheck(int required_major, int required_minor, int required_micro) {
IntPtr raw_ret = pango_version_check(required_major, required_minor, required_micro);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_version_string();
static d_pango_version_string pango_version_string = FuncLoader.LoadFunction<d_pango_version_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_version_string"));
public static string VersionString() {
IntPtr raw_ret = pango_version_string();
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,47 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct GlyphGeometry : IEquatable<GlyphGeometry> {
public int Width;
public int XOffset;
public int YOffset;
public static Pango.GlyphGeometry Zero = new Pango.GlyphGeometry ();
public static Pango.GlyphGeometry New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.GlyphGeometry.Zero;
return (Pango.GlyphGeometry) Marshal.PtrToStructure (raw, typeof (Pango.GlyphGeometry));
}
public bool Equals (GlyphGeometry other)
{
return true && Width.Equals (other.Width) && XOffset.Equals (other.XOffset) && YOffset.Equals (other.YOffset);
}
public override bool Equals (object other)
{
return other is GlyphGeometry && Equals ((GlyphGeometry) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Width.GetHashCode () ^ XOffset.GetHashCode () ^ YOffset.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,47 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct GlyphInfo : IEquatable<GlyphInfo> {
public uint Glyph;
public Pango.GlyphGeometry Geometry;
public Pango.GlyphVisAttr Attr;
public static Pango.GlyphInfo Zero = new Pango.GlyphInfo ();
public static Pango.GlyphInfo New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.GlyphInfo.Zero;
return (Pango.GlyphInfo) Marshal.PtrToStructure (raw, typeof (Pango.GlyphInfo));
}
public bool Equals (GlyphInfo other)
{
return true && Glyph.Equals (other.Glyph) && Geometry.Equals (other.Geometry) && Attr.Equals (other.Attr);
}
public override bool Equals (object other)
{
return other is GlyphInfo && Equals ((GlyphInfo) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Glyph.GetHashCode () ^ Geometry.GetHashCode () ^ Attr.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,141 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct GlyphItem : IEquatable<GlyphItem> {
private IntPtr _item;
public Pango.Item Item {
get {
return _item == IntPtr.Zero ? null : (Pango.Item) GLib.Opaque.GetOpaque (_item, typeof (Pango.Item), false);
}
set {
_item = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _glyphs;
public Pango.GlyphString Glyphs {
get {
return _glyphs == IntPtr.Zero ? null : (Pango.GlyphString) GLib.Opaque.GetOpaque (_glyphs, typeof (Pango.GlyphString), false);
}
set {
_glyphs = value == null ? IntPtr.Zero : value.Handle;
}
}
public static Pango.GlyphItem Zero = new Pango.GlyphItem ();
public static Pango.GlyphItem New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.GlyphItem.Zero;
return (Pango.GlyphItem) Marshal.PtrToStructure (raw, typeof (Pango.GlyphItem));
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_item_get_logical_widths(IntPtr raw, IntPtr text, out int logical_widths);
static d_pango_glyph_item_get_logical_widths pango_glyph_item_get_logical_widths = FuncLoader.LoadFunction<d_pango_glyph_item_get_logical_widths>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_get_logical_widths"));
public int GetLogicalWidths(string text) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.GlyphItem>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
int logical_widths;
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
pango_glyph_item_get_logical_widths(this_as_native, native_text, out logical_widths);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_text);
return logical_widths;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_glyph_item_get_type();
static d_pango_glyph_item_get_type pango_glyph_item_get_type = FuncLoader.LoadFunction<d_pango_glyph_item_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_glyph_item_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_item_letter_space(IntPtr raw, IntPtr text, IntPtr log_attrs, int letter_spacing);
static d_pango_glyph_item_letter_space pango_glyph_item_letter_space = FuncLoader.LoadFunction<d_pango_glyph_item_letter_space>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_letter_space"));
public void LetterSpace(string text, Pango.LogAttr log_attrs, int letter_spacing) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.GlyphItem>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
IntPtr native_log_attrs = GLib.Marshaller.StructureToPtrAlloc (log_attrs);
pango_glyph_item_letter_space(this_as_native, native_text, native_log_attrs, letter_spacing);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_text);
Marshal.FreeHGlobal (native_log_attrs);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_glyph_item_split(IntPtr raw, IntPtr text, int split_index);
static d_pango_glyph_item_split pango_glyph_item_split = FuncLoader.LoadFunction<d_pango_glyph_item_split>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_split"));
public Pango.GlyphItem Split(string text, int split_index) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.GlyphItem>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
IntPtr raw_ret = pango_glyph_item_split(this_as_native, native_text, split_index);
Pango.GlyphItem ret = Pango.GlyphItem.New (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_text);
return ret;
}
static void ReadNative (IntPtr native, ref Pango.GlyphItem target)
{
target = New (native);
}
public bool Equals (GlyphItem other)
{
return true && Item.Equals (other.Item) && Glyphs.Equals (other.Glyphs);
}
public override bool Equals (object other)
{
return other is GlyphItem && Equals ((GlyphItem) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Item.GetHashCode () ^ Glyphs.GetHashCode ();
}
public static explicit operator GLib.Value (Pango.GlyphItem boxed)
{
GLib.Value val = GLib.Value.Empty;
val.Init (Pango.GlyphItem.GType);
val.Val = boxed;
return val;
}
public static explicit operator Pango.GlyphItem (GLib.Value val)
{
return (Pango.GlyphItem) val.Val;
}
[Obsolete("This is a no-op")]
public Pango.GlyphItem Free () {
return this;
}
#endregion
}
}

View File

@@ -0,0 +1,146 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct GlyphItemIter : IEquatable<GlyphItemIter> {
private IntPtr _glyph_item;
public Pango.GlyphItem glyph_item {
get { return Pango.GlyphItem.New (_glyph_item); }
}
public string Text;
public int StartGlyph;
public int StartIndex;
public int StartChar;
public int EndGlyph;
public int EndIndex;
public int EndChar;
public static Pango.GlyphItemIter Zero = new Pango.GlyphItemIter ();
public static Pango.GlyphItemIter New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.GlyphItemIter.Zero;
return (Pango.GlyphItemIter) Marshal.PtrToStructure (raw, typeof (Pango.GlyphItemIter));
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_glyph_item_iter_get_type();
static d_pango_glyph_item_iter_get_type pango_glyph_item_iter_get_type = FuncLoader.LoadFunction<d_pango_glyph_item_iter_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_iter_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_glyph_item_iter_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_glyph_item_iter_init_end(IntPtr raw, IntPtr glyph_item, IntPtr text);
static d_pango_glyph_item_iter_init_end pango_glyph_item_iter_init_end = FuncLoader.LoadFunction<d_pango_glyph_item_iter_init_end>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_iter_init_end"));
public bool InitEnd(Pango.GlyphItem glyph_item, string text) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.GlyphItemIter>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_glyph_item = GLib.Marshaller.StructureToPtrAlloc (glyph_item);
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
bool raw_ret = pango_glyph_item_iter_init_end(this_as_native, native_glyph_item, native_text);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_glyph_item);
GLib.Marshaller.Free (native_text);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_glyph_item_iter_init_start(IntPtr raw, IntPtr glyph_item, IntPtr text);
static d_pango_glyph_item_iter_init_start pango_glyph_item_iter_init_start = FuncLoader.LoadFunction<d_pango_glyph_item_iter_init_start>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_iter_init_start"));
public bool InitStart(Pango.GlyphItem glyph_item, string text) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.GlyphItemIter>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_glyph_item = GLib.Marshaller.StructureToPtrAlloc (glyph_item);
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
bool raw_ret = pango_glyph_item_iter_init_start(this_as_native, native_glyph_item, native_text);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_glyph_item);
GLib.Marshaller.Free (native_text);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_glyph_item_iter_next_cluster(IntPtr raw);
static d_pango_glyph_item_iter_next_cluster pango_glyph_item_iter_next_cluster = FuncLoader.LoadFunction<d_pango_glyph_item_iter_next_cluster>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_iter_next_cluster"));
public bool NextCluster() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.GlyphItemIter>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = pango_glyph_item_iter_next_cluster(this_as_native);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_glyph_item_iter_prev_cluster(IntPtr raw);
static d_pango_glyph_item_iter_prev_cluster pango_glyph_item_iter_prev_cluster = FuncLoader.LoadFunction<d_pango_glyph_item_iter_prev_cluster>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_item_iter_prev_cluster"));
public bool PrevCluster() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.GlyphItemIter>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = pango_glyph_item_iter_prev_cluster(this_as_native);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
static void ReadNative (IntPtr native, ref Pango.GlyphItemIter target)
{
target = New (native);
}
public bool Equals (GlyphItemIter other)
{
return true && glyph_item.Equals (other.glyph_item) && Text.Equals (other.Text) && StartGlyph.Equals (other.StartGlyph) && StartIndex.Equals (other.StartIndex) && StartChar.Equals (other.StartChar) && EndGlyph.Equals (other.EndGlyph) && EndIndex.Equals (other.EndIndex) && EndChar.Equals (other.EndChar);
}
public override bool Equals (object other)
{
return other is GlyphItemIter && Equals ((GlyphItemIter) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ glyph_item.GetHashCode () ^ Text.GetHashCode () ^ StartGlyph.GetHashCode () ^ StartIndex.GetHashCode () ^ StartChar.GetHashCode () ^ EndGlyph.GetHashCode () ^ EndIndex.GetHashCode () ^ EndChar.GetHashCode ();
}
public static explicit operator GLib.Value (Pango.GlyphItemIter boxed)
{
GLib.Value val = GLib.Value.Empty;
val.Init (Pango.GlyphItemIter.GType);
val.Val = boxed;
return val;
}
public static explicit operator Pango.GlyphItemIter (GLib.Value val)
{
return (Pango.GlyphItemIter) val.Val;
}
#endregion
}
}

View File

@@ -0,0 +1,240 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class GlyphString : GLib.Opaque {
public int NumGlyphs {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("num_glyphs"));
return (*raw_ptr);
}
}
set {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("num_glyphs"));
*raw_ptr = value;
}
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_glyph_string_copy(IntPtr raw);
static d_pango_glyph_string_copy pango_glyph_string_copy = FuncLoader.LoadFunction<d_pango_glyph_string_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_copy"));
public Pango.GlyphString Copy() {
IntPtr raw_ret = pango_glyph_string_copy(Handle);
Pango.GlyphString ret = raw_ret == IntPtr.Zero ? null : (Pango.GlyphString) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.GlyphString), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_string_extents(IntPtr raw, IntPtr font, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_glyph_string_extents pango_glyph_string_extents = FuncLoader.LoadFunction<d_pango_glyph_string_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_extents"));
public void Extents(Pango.Font font, Pango.Rectangle ink_rect, Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect);
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect);
pango_glyph_string_extents(Handle, font == null ? IntPtr.Zero : font.Handle, native_ink_rect, native_logical_rect);
Marshal.FreeHGlobal (native_ink_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_string_extents_range(IntPtr raw, int start, int end, IntPtr font, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_glyph_string_extents_range pango_glyph_string_extents_range = FuncLoader.LoadFunction<d_pango_glyph_string_extents_range>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_extents_range"));
public void ExtentsRange(int start, int end, Pango.Font font, Pango.Rectangle ink_rect, Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect);
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect);
pango_glyph_string_extents_range(Handle, start, end, font == null ? IntPtr.Zero : font.Handle, native_ink_rect, native_logical_rect);
Marshal.FreeHGlobal (native_ink_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_string_get_logical_widths(IntPtr raw, IntPtr text, int length, int embedding_level, out int logical_widths);
static d_pango_glyph_string_get_logical_widths pango_glyph_string_get_logical_widths = FuncLoader.LoadFunction<d_pango_glyph_string_get_logical_widths>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_get_logical_widths"));
public int GetLogicalWidths(string text, int embedding_level) {
int logical_widths;
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
pango_glyph_string_get_logical_widths(Handle, native_text, System.Text.Encoding.UTF8.GetByteCount (text), embedding_level, out logical_widths);
GLib.Marshaller.Free (native_text);
return logical_widths;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_glyph_string_get_type();
static d_pango_glyph_string_get_type pango_glyph_string_get_type = FuncLoader.LoadFunction<d_pango_glyph_string_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_glyph_string_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_glyph_string_get_width(IntPtr raw);
static d_pango_glyph_string_get_width pango_glyph_string_get_width = FuncLoader.LoadFunction<d_pango_glyph_string_get_width>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_get_width"));
public int Width {
get {
int raw_ret = pango_glyph_string_get_width(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_string_index_to_x(IntPtr raw, IntPtr text, int length, IntPtr analysis, int index_, bool trailing, out int x_pos);
static d_pango_glyph_string_index_to_x pango_glyph_string_index_to_x = FuncLoader.LoadFunction<d_pango_glyph_string_index_to_x>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_index_to_x"));
public int IndexToX(string text, Pango.Analysis analysis, int index_, bool trailing) {
int x_pos;
IntPtr native_analysis = GLib.Marshaller.StructureToPtrAlloc (analysis);
pango_glyph_string_index_to_x(Handle, GLib.Marshaller.StringToPtrGStrdup(text), System.Text.Encoding.UTF8.GetByteCount (text), native_analysis, index_, trailing, out x_pos);
Marshal.FreeHGlobal (native_analysis);
return x_pos;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_string_set_size(IntPtr raw, int new_len);
static d_pango_glyph_string_set_size pango_glyph_string_set_size = FuncLoader.LoadFunction<d_pango_glyph_string_set_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_set_size"));
public int Size {
set {
pango_glyph_string_set_size(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_string_x_to_index(IntPtr raw, IntPtr text, int length, IntPtr analysis, int x_pos, out int index_, out int trailing);
static d_pango_glyph_string_x_to_index pango_glyph_string_x_to_index = FuncLoader.LoadFunction<d_pango_glyph_string_x_to_index>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_x_to_index"));
public void XToIndex(string text, Pango.Analysis analysis, int x_pos, out int index_, out int trailing) {
IntPtr native_analysis = GLib.Marshaller.StructureToPtrAlloc (analysis);
pango_glyph_string_x_to_index(Handle, GLib.Marshaller.StringToPtrGStrdup(text), System.Text.Encoding.UTF8.GetByteCount (text), native_analysis, x_pos, out index_, out trailing);
Marshal.FreeHGlobal (native_analysis);
}
public GlyphString(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_glyph_string_new();
static d_pango_glyph_string_new pango_glyph_string_new = FuncLoader.LoadFunction<d_pango_glyph_string_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_new"));
public GlyphString ()
{
Raw = pango_glyph_string_new();
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_glyph_string_free(IntPtr raw);
static d_pango_glyph_string_free pango_glyph_string_free = FuncLoader.LoadFunction<d_pango_glyph_string_free>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_glyph_string_free"));
protected override void Free (IntPtr raw)
{
pango_glyph_string_free (raw);
}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_glyph_string_free (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~GlyphString ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("num_glyphs"
, 0
, (uint) sizeof( int ) // num_glyphs
, null
, "glyphs"
, (long) Marshal.OffsetOf<PangoGlyphString_num_glyphsAlign>("num_glyphs")
, 0
),
new GLib.AbiField("glyphs"
, -1
, (uint) sizeof( IntPtr ) // glyphs
, "num_glyphs"
, "log_clusters"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("log_clusters"
, -1
, (uint) sizeof( IntPtr ) // log_clusters
, "glyphs"
, "space"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("space"
, -1
, (uint) sizeof( int ) // space
, "log_clusters"
, null
, (long) Marshal.OffsetOf<PangoGlyphString_spaceAlign>("space")
, 0
),
});
return _abi_info;
}
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoGlyphString_num_glyphsAlign
{
sbyte f1;
private int num_glyphs;
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoGlyphString_spaceAlign
{
sbyte f1;
private int space;
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,46 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct GlyphVisAttr : IEquatable<GlyphVisAttr> {
private uint _bitfield0;
public static Pango.GlyphVisAttr Zero = new Pango.GlyphVisAttr ();
public static Pango.GlyphVisAttr New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.GlyphVisAttr.Zero;
return (Pango.GlyphVisAttr) Marshal.PtrToStructure (raw, typeof (Pango.GlyphVisAttr));
}
public bool Equals (GlyphVisAttr other)
{
return true && _bitfield0.Equals (other._bitfield0);
}
public override bool Equals (object other)
{
return other is GlyphVisAttr && Equals ((GlyphVisAttr) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ _bitfield0.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,32 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.GravityGType))]
public enum Gravity {
South,
East,
North,
West,
Auto,
}
internal class GravityGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_gravity_get_type();
static d_pango_gravity_get_type pango_gravity_get_type = FuncLoader.LoadFunction<d_pango_gravity_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_gravity_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_gravity_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,30 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.GravityHintGType))]
public enum GravityHint {
Natural,
Strong,
Line,
}
internal class GravityHintGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_gravity_hint_get_type();
static d_pango_gravity_hint_get_type pango_gravity_hint_get_type = FuncLoader.LoadFunction<d_pango_gravity_hint_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_gravity_hint_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_gravity_hint_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,229 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Item : GLib.Opaque {
public int Offset {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("offset"));
return (*raw_ptr);
}
}
set {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("offset"));
*raw_ptr = value;
}
}
}
public int Length {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("length"));
return (*raw_ptr);
}
}
set {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("length"));
*raw_ptr = value;
}
}
}
public int NumChars {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("num_chars"));
return (*raw_ptr);
}
}
set {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("num_chars"));
*raw_ptr = value;
}
}
}
public Pango.Analysis Analysis {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("analysis"));
return Pango.Analysis.New ((*raw_ptr));
}
}
set {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("analysis"));
*raw_ptr = GLib.Marshaller.StructureToPtrAlloc (value);
}
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_item_copy(IntPtr raw);
static d_pango_item_copy pango_item_copy = FuncLoader.LoadFunction<d_pango_item_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_item_copy"));
public Pango.Item Copy() {
IntPtr raw_ret = pango_item_copy(Handle);
Pango.Item ret = raw_ret == IntPtr.Zero ? null : (Pango.Item) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Item), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_item_get_type();
static d_pango_item_get_type pango_item_get_type = FuncLoader.LoadFunction<d_pango_item_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_item_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_item_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_item_split(IntPtr raw, int split_index, int split_offset);
static d_pango_item_split pango_item_split = FuncLoader.LoadFunction<d_pango_item_split>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_item_split"));
public Pango.Item Split(int split_index, int split_offset) {
IntPtr raw_ret = pango_item_split(Handle, split_index, split_offset);
Pango.Item ret = raw_ret == IntPtr.Zero ? null : (Pango.Item) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Item), false);
return ret;
}
public Item(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_item_new();
static d_pango_item_new pango_item_new = FuncLoader.LoadFunction<d_pango_item_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_item_new"));
public Item ()
{
Raw = pango_item_new();
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_item_free(IntPtr raw);
static d_pango_item_free pango_item_free = FuncLoader.LoadFunction<d_pango_item_free>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_item_free"));
protected override void Free (IntPtr raw)
{
pango_item_free (raw);
}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_item_free (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~Item ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("offset"
, 0
, (uint) sizeof( int ) // offset
, null
, "length"
, (long) Marshal.OffsetOf<PangoItem_offsetAlign>("offset")
, 0
),
new GLib.AbiField("length"
, -1
, (uint) sizeof( int ) // length
, "offset"
, "num_chars"
, (long) Marshal.OffsetOf<PangoItem_lengthAlign>("length")
, 0
),
new GLib.AbiField("num_chars"
, -1
, (uint) sizeof( int ) // num_chars
, "length"
, "analysis"
, (long) Marshal.OffsetOf<PangoItem_num_charsAlign>("num_chars")
, 0
),
new GLib.AbiField("analysis"
, -1
, (uint) Marshal.SizeOf<Pango.Analysis>() // analysis
, "num_chars"
, null
, (long) Marshal.OffsetOf<PangoItem_analysisAlign>("analysis")
, 0
),
});
return _abi_info;
}
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoItem_offsetAlign
{
sbyte f1;
private int offset;
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoItem_lengthAlign
{
sbyte f1;
private int length;
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoItem_num_charsAlign
{
sbyte f1;
private int num_chars;
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoItem_analysisAlign
{
sbyte f1;
private Pango.Analysis analysis;
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ItemProperties : GLib.Opaque {
public ItemProperties(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ItemizeState : GLib.Opaque {
public ItemizeState(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,124 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Language : GLib.Opaque {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_language_from_string(IntPtr language);
static d_pango_language_from_string pango_language_from_string = FuncLoader.LoadFunction<d_pango_language_from_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_from_string"));
public static Pango.Language FromString(string language) {
IntPtr native_language = GLib.Marshaller.StringToPtrGStrdup (language);
IntPtr raw_ret = pango_language_from_string(native_language);
Pango.Language ret = raw_ret == IntPtr.Zero ? null : (Pango.Language) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Language), false);
GLib.Marshaller.Free (native_language);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_language_get_default();
static d_pango_language_get_default pango_language_get_default = FuncLoader.LoadFunction<d_pango_language_get_default>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_get_default"));
public static Pango.Language Default {
get {
IntPtr raw_ret = pango_language_get_default();
Pango.Language ret = raw_ret == IntPtr.Zero ? null : (Pango.Language) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Language), false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_language_get_sample_string(IntPtr raw);
static d_pango_language_get_sample_string pango_language_get_sample_string = FuncLoader.LoadFunction<d_pango_language_get_sample_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_get_sample_string"));
public string SampleString {
get {
IntPtr raw_ret = pango_language_get_sample_string(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_language_get_scripts(IntPtr raw, out int num_scripts);
static d_pango_language_get_scripts pango_language_get_scripts = FuncLoader.LoadFunction<d_pango_language_get_scripts>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_get_scripts"));
public Pango.Script GetScripts(out int num_scripts) {
int raw_ret = pango_language_get_scripts(Handle, out num_scripts);
Pango.Script ret = (Pango.Script) raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_language_get_type();
static d_pango_language_get_type pango_language_get_type = FuncLoader.LoadFunction<d_pango_language_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_language_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_language_includes_script(IntPtr raw, int script);
static d_pango_language_includes_script pango_language_includes_script = FuncLoader.LoadFunction<d_pango_language_includes_script>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_includes_script"));
public bool IncludesScript(Pango.Script script) {
bool raw_ret = pango_language_includes_script(Handle, (int) script);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_language_matches(IntPtr raw, IntPtr range_list);
static d_pango_language_matches pango_language_matches = FuncLoader.LoadFunction<d_pango_language_matches>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_matches"));
public bool Matches(string range_list) {
IntPtr native_range_list = GLib.Marshaller.StringToPtrGStrdup (range_list);
bool raw_ret = pango_language_matches(Handle, native_range_list);
bool ret = raw_ret;
GLib.Marshaller.Free (native_range_list);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_language_to_string(IntPtr raw);
static d_pango_language_to_string pango_language_to_string = FuncLoader.LoadFunction<d_pango_language_to_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_language_to_string"));
public override string ToString() {
IntPtr raw_ret = pango_language_to_string(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
public Language(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,590 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Layout : GLib.Object {
public Layout (IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_new(IntPtr context);
static d_pango_layout_new pango_layout_new = FuncLoader.LoadFunction<d_pango_layout_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_new"));
public Layout (Pango.Context context) : base (IntPtr.Zero)
{
if (GetType () != typeof (Layout)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
Raw = pango_layout_new(context == null ? IntPtr.Zero : context.Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_context_changed(IntPtr raw);
static d_pango_layout_context_changed pango_layout_context_changed = FuncLoader.LoadFunction<d_pango_layout_context_changed>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_context_changed"));
public void ContextChanged() {
pango_layout_context_changed(Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_copy(IntPtr raw);
static d_pango_layout_copy pango_layout_copy = FuncLoader.LoadFunction<d_pango_layout_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_copy"));
public Pango.Layout Copy() {
IntPtr raw_ret = pango_layout_copy(Handle);
Pango.Layout ret = GLib.Object.GetObject(raw_ret, true) as Pango.Layout;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_alignment(IntPtr raw);
static d_pango_layout_get_alignment pango_layout_get_alignment = FuncLoader.LoadFunction<d_pango_layout_get_alignment>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_alignment"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_alignment(IntPtr raw, int alignment);
static d_pango_layout_set_alignment pango_layout_set_alignment = FuncLoader.LoadFunction<d_pango_layout_set_alignment>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_alignment"));
public Pango.Alignment Alignment {
get {
int raw_ret = pango_layout_get_alignment(Handle);
Pango.Alignment ret = (Pango.Alignment) raw_ret;
return ret;
}
set {
pango_layout_set_alignment(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_attributes(IntPtr raw);
static d_pango_layout_get_attributes pango_layout_get_attributes = FuncLoader.LoadFunction<d_pango_layout_get_attributes>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_attributes"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_attributes(IntPtr raw, IntPtr attrs);
static d_pango_layout_set_attributes pango_layout_set_attributes = FuncLoader.LoadFunction<d_pango_layout_set_attributes>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_attributes"));
public Pango.AttrList Attributes {
get {
IntPtr raw_ret = pango_layout_get_attributes(Handle);
Pango.AttrList ret = raw_ret == IntPtr.Zero ? null : (Pango.AttrList) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.AttrList), false);
return ret;
}
set {
pango_layout_set_attributes(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_get_auto_dir(IntPtr raw);
static d_pango_layout_get_auto_dir pango_layout_get_auto_dir = FuncLoader.LoadFunction<d_pango_layout_get_auto_dir>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_auto_dir"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_auto_dir(IntPtr raw, bool auto_dir);
static d_pango_layout_set_auto_dir pango_layout_set_auto_dir = FuncLoader.LoadFunction<d_pango_layout_set_auto_dir>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_auto_dir"));
public bool AutoDir {
get {
bool raw_ret = pango_layout_get_auto_dir(Handle);
bool ret = raw_ret;
return ret;
}
set {
pango_layout_set_auto_dir(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_baseline(IntPtr raw);
static d_pango_layout_get_baseline pango_layout_get_baseline = FuncLoader.LoadFunction<d_pango_layout_get_baseline>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_baseline"));
public int Baseline {
get {
int raw_ret = pango_layout_get_baseline(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_character_count(IntPtr raw);
static d_pango_layout_get_character_count pango_layout_get_character_count = FuncLoader.LoadFunction<d_pango_layout_get_character_count>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_character_count"));
public int CharacterCount {
get {
int raw_ret = pango_layout_get_character_count(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_context(IntPtr raw);
static d_pango_layout_get_context pango_layout_get_context = FuncLoader.LoadFunction<d_pango_layout_get_context>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_context"));
public Pango.Context Context {
get {
IntPtr raw_ret = pango_layout_get_context(Handle);
Pango.Context ret = GLib.Object.GetObject(raw_ret) as Pango.Context;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_get_cursor_pos(IntPtr raw, int index_, IntPtr strong_pos, IntPtr weak_pos);
static d_pango_layout_get_cursor_pos pango_layout_get_cursor_pos = FuncLoader.LoadFunction<d_pango_layout_get_cursor_pos>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_cursor_pos"));
public void GetCursorPos(int index_, out Pango.Rectangle strong_pos, out Pango.Rectangle weak_pos) {
IntPtr native_strong_pos = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
IntPtr native_weak_pos = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_get_cursor_pos(Handle, index_, native_strong_pos, native_weak_pos);
strong_pos = Pango.Rectangle.New (native_strong_pos);
Marshal.FreeHGlobal (native_strong_pos);
weak_pos = Pango.Rectangle.New (native_weak_pos);
Marshal.FreeHGlobal (native_weak_pos);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_ellipsize(IntPtr raw);
static d_pango_layout_get_ellipsize pango_layout_get_ellipsize = FuncLoader.LoadFunction<d_pango_layout_get_ellipsize>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_ellipsize"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_ellipsize(IntPtr raw, int ellipsize);
static d_pango_layout_set_ellipsize pango_layout_set_ellipsize = FuncLoader.LoadFunction<d_pango_layout_set_ellipsize>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_ellipsize"));
public Pango.EllipsizeMode Ellipsize {
get {
int raw_ret = pango_layout_get_ellipsize(Handle);
Pango.EllipsizeMode ret = (Pango.EllipsizeMode) raw_ret;
return ret;
}
set {
pango_layout_set_ellipsize(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_get_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_get_extents pango_layout_get_extents = FuncLoader.LoadFunction<d_pango_layout_get_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_extents"));
public void GetExtents(out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
IntPtr native_logical_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_get_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_font_description(IntPtr raw);
static d_pango_layout_get_font_description pango_layout_get_font_description = FuncLoader.LoadFunction<d_pango_layout_get_font_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_font_description"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_font_description(IntPtr raw, IntPtr desc);
static d_pango_layout_set_font_description pango_layout_set_font_description = FuncLoader.LoadFunction<d_pango_layout_set_font_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_font_description"));
public Pango.FontDescription FontDescription {
get {
IntPtr raw_ret = pango_layout_get_font_description(Handle);
Pango.FontDescription ret = raw_ret == IntPtr.Zero ? null : (Pango.FontDescription) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.FontDescription), false);
return ret;
}
set {
pango_layout_set_font_description(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_height(IntPtr raw);
static d_pango_layout_get_height pango_layout_get_height = FuncLoader.LoadFunction<d_pango_layout_get_height>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_height"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_height(IntPtr raw, int height);
static d_pango_layout_set_height pango_layout_set_height = FuncLoader.LoadFunction<d_pango_layout_set_height>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_height"));
public int Height {
get {
int raw_ret = pango_layout_get_height(Handle);
int ret = raw_ret;
return ret;
}
set {
pango_layout_set_height(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_indent(IntPtr raw);
static d_pango_layout_get_indent pango_layout_get_indent = FuncLoader.LoadFunction<d_pango_layout_get_indent>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_indent"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_indent(IntPtr raw, int indent);
static d_pango_layout_set_indent pango_layout_set_indent = FuncLoader.LoadFunction<d_pango_layout_set_indent>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_indent"));
public int Indent {
get {
int raw_ret = pango_layout_get_indent(Handle);
int ret = raw_ret;
return ret;
}
set {
pango_layout_set_indent(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_iter(IntPtr raw);
static d_pango_layout_get_iter pango_layout_get_iter = FuncLoader.LoadFunction<d_pango_layout_get_iter>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_iter"));
public Pango.LayoutIter Iter {
get {
IntPtr raw_ret = pango_layout_get_iter(Handle);
Pango.LayoutIter ret = raw_ret == IntPtr.Zero ? null : (Pango.LayoutIter) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.LayoutIter), true);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_get_justify(IntPtr raw);
static d_pango_layout_get_justify pango_layout_get_justify = FuncLoader.LoadFunction<d_pango_layout_get_justify>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_justify"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_justify(IntPtr raw, bool justify);
static d_pango_layout_set_justify pango_layout_set_justify = FuncLoader.LoadFunction<d_pango_layout_set_justify>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_justify"));
public bool Justify {
get {
bool raw_ret = pango_layout_get_justify(Handle);
bool ret = raw_ret;
return ret;
}
set {
pango_layout_set_justify(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_line(IntPtr raw, int line);
static d_pango_layout_get_line pango_layout_get_line = FuncLoader.LoadFunction<d_pango_layout_get_line>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_line"));
public Pango.LayoutLine GetLine(int line) {
IntPtr raw_ret = pango_layout_get_line(Handle, line);
Pango.LayoutLine ret = raw_ret == IntPtr.Zero ? null : (Pango.LayoutLine) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.LayoutLine), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_line_count(IntPtr raw);
static d_pango_layout_get_line_count pango_layout_get_line_count = FuncLoader.LoadFunction<d_pango_layout_get_line_count>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_line_count"));
public int LineCount {
get {
int raw_ret = pango_layout_get_line_count(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_line_readonly(IntPtr raw, int line);
static d_pango_layout_get_line_readonly pango_layout_get_line_readonly = FuncLoader.LoadFunction<d_pango_layout_get_line_readonly>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_line_readonly"));
public Pango.LayoutLine GetLineReadonly(int line) {
IntPtr raw_ret = pango_layout_get_line_readonly(Handle, line);
Pango.LayoutLine ret = raw_ret == IntPtr.Zero ? null : (Pango.LayoutLine) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.LayoutLine), false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_lines_readonly(IntPtr raw);
static d_pango_layout_get_lines_readonly pango_layout_get_lines_readonly = FuncLoader.LoadFunction<d_pango_layout_get_lines_readonly>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_lines_readonly"));
public Pango.LayoutLine[] LinesReadOnly {
get {
IntPtr raw_ret = pango_layout_get_lines_readonly(Handle);
Pango.LayoutLine[] ret = GLib.Marshaller.SListPtrToArray<Pango.LayoutLine, Pango.LayoutLine> (raw_ret, false, false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_get_pixel_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_get_pixel_extents pango_layout_get_pixel_extents = FuncLoader.LoadFunction<d_pango_layout_get_pixel_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_pixel_extents"));
public void GetPixelExtents(out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
IntPtr native_logical_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_get_pixel_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_get_pixel_size(IntPtr raw, out int width, out int height);
static d_pango_layout_get_pixel_size pango_layout_get_pixel_size = FuncLoader.LoadFunction<d_pango_layout_get_pixel_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_pixel_size"));
public void GetPixelSize(out int width, out int height) {
pango_layout_get_pixel_size(Handle, out width, out height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_pango_layout_get_serial(IntPtr raw);
static d_pango_layout_get_serial pango_layout_get_serial = FuncLoader.LoadFunction<d_pango_layout_get_serial>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_serial"));
public uint Serial {
get {
uint raw_ret = pango_layout_get_serial(Handle);
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_get_single_paragraph_mode(IntPtr raw);
static d_pango_layout_get_single_paragraph_mode pango_layout_get_single_paragraph_mode = FuncLoader.LoadFunction<d_pango_layout_get_single_paragraph_mode>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_single_paragraph_mode"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_single_paragraph_mode(IntPtr raw, bool setting);
static d_pango_layout_set_single_paragraph_mode pango_layout_set_single_paragraph_mode = FuncLoader.LoadFunction<d_pango_layout_set_single_paragraph_mode>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_single_paragraph_mode"));
public bool SingleParagraphMode {
get {
bool raw_ret = pango_layout_get_single_paragraph_mode(Handle);
bool ret = raw_ret;
return ret;
}
set {
pango_layout_set_single_paragraph_mode(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_get_size(IntPtr raw, out int width, out int height);
static d_pango_layout_get_size pango_layout_get_size = FuncLoader.LoadFunction<d_pango_layout_get_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_size"));
public void GetSize(out int width, out int height) {
pango_layout_get_size(Handle, out width, out height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_spacing(IntPtr raw);
static d_pango_layout_get_spacing pango_layout_get_spacing = FuncLoader.LoadFunction<d_pango_layout_get_spacing>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_spacing"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_spacing(IntPtr raw, int spacing);
static d_pango_layout_set_spacing pango_layout_set_spacing = FuncLoader.LoadFunction<d_pango_layout_set_spacing>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_spacing"));
public int Spacing {
get {
int raw_ret = pango_layout_get_spacing(Handle);
int ret = raw_ret;
return ret;
}
set {
pango_layout_set_spacing(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_tabs(IntPtr raw);
static d_pango_layout_get_tabs pango_layout_get_tabs = FuncLoader.LoadFunction<d_pango_layout_get_tabs>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_tabs"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_tabs(IntPtr raw, IntPtr tabs);
static d_pango_layout_set_tabs pango_layout_set_tabs = FuncLoader.LoadFunction<d_pango_layout_set_tabs>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_tabs"));
public Pango.TabArray Tabs {
get {
IntPtr raw_ret = pango_layout_get_tabs(Handle);
Pango.TabArray ret = raw_ret == IntPtr.Zero ? null : (Pango.TabArray) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.TabArray), true);
return ret;
}
set {
pango_layout_set_tabs(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_text(IntPtr raw);
static d_pango_layout_get_text pango_layout_get_text = FuncLoader.LoadFunction<d_pango_layout_get_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_text"));
public string Text {
get {
IntPtr raw_ret = pango_layout_get_text(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_get_type();
static d_pango_layout_get_type pango_layout_get_type = FuncLoader.LoadFunction<d_pango_layout_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_layout_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_unknown_glyphs_count(IntPtr raw);
static d_pango_layout_get_unknown_glyphs_count pango_layout_get_unknown_glyphs_count = FuncLoader.LoadFunction<d_pango_layout_get_unknown_glyphs_count>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_unknown_glyphs_count"));
public int UnknownGlyphsCount {
get {
int raw_ret = pango_layout_get_unknown_glyphs_count(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_width(IntPtr raw);
static d_pango_layout_get_width pango_layout_get_width = FuncLoader.LoadFunction<d_pango_layout_get_width>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_width"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_width(IntPtr raw, int width);
static d_pango_layout_set_width pango_layout_set_width = FuncLoader.LoadFunction<d_pango_layout_set_width>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_width"));
public int Width {
get {
int raw_ret = pango_layout_get_width(Handle);
int ret = raw_ret;
return ret;
}
set {
pango_layout_set_width(Handle, value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_get_wrap(IntPtr raw);
static d_pango_layout_get_wrap pango_layout_get_wrap = FuncLoader.LoadFunction<d_pango_layout_get_wrap>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_get_wrap"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_set_wrap(IntPtr raw, int wrap);
static d_pango_layout_set_wrap pango_layout_set_wrap = FuncLoader.LoadFunction<d_pango_layout_set_wrap>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_set_wrap"));
public Pango.WrapMode Wrap {
get {
int raw_ret = pango_layout_get_wrap(Handle);
Pango.WrapMode ret = (Pango.WrapMode) raw_ret;
return ret;
}
set {
pango_layout_set_wrap(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_index_to_line_x(IntPtr raw, int index_, bool trailing, out int line, out int x_pos);
static d_pango_layout_index_to_line_x pango_layout_index_to_line_x = FuncLoader.LoadFunction<d_pango_layout_index_to_line_x>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_index_to_line_x"));
public void IndexToLineX(int index_, bool trailing, out int line, out int x_pos) {
pango_layout_index_to_line_x(Handle, index_, trailing, out line, out x_pos);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_index_to_pos(IntPtr raw, int index_, IntPtr pos);
static d_pango_layout_index_to_pos pango_layout_index_to_pos = FuncLoader.LoadFunction<d_pango_layout_index_to_pos>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_index_to_pos"));
public Pango.Rectangle IndexToPos(int index_) {
Pango.Rectangle pos;
IntPtr native_pos = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_index_to_pos(Handle, index_, native_pos);
pos = Pango.Rectangle.New (native_pos);
Marshal.FreeHGlobal (native_pos);
return pos;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_is_ellipsized(IntPtr raw);
static d_pango_layout_is_ellipsized pango_layout_is_ellipsized = FuncLoader.LoadFunction<d_pango_layout_is_ellipsized>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_is_ellipsized"));
public bool IsEllipsized {
get {
bool raw_ret = pango_layout_is_ellipsized(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_is_wrapped(IntPtr raw);
static d_pango_layout_is_wrapped pango_layout_is_wrapped = FuncLoader.LoadFunction<d_pango_layout_is_wrapped>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_is_wrapped"));
public bool IsWrapped {
get {
bool raw_ret = pango_layout_is_wrapped(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_move_cursor_visually(IntPtr raw, bool strong, int old_index, int old_trailing, int direction, out int new_index, out int new_trailing);
static d_pango_layout_move_cursor_visually pango_layout_move_cursor_visually = FuncLoader.LoadFunction<d_pango_layout_move_cursor_visually>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_move_cursor_visually"));
public void MoveCursorVisually(bool strong, int old_index, int old_trailing, int direction, out int new_index, out int new_trailing) {
pango_layout_move_cursor_visually(Handle, strong, old_index, old_trailing, direction, out new_index, out new_trailing);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_xy_to_index(IntPtr raw, int x, int y, out int index_, out int trailing);
static d_pango_layout_xy_to_index pango_layout_xy_to_index = FuncLoader.LoadFunction<d_pango_layout_xy_to_index>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_xy_to_index"));
public bool XyToIndex(int x, int y, out int index_, out int trailing) {
bool raw_ret = pango_layout_xy_to_index(Handle, x, y, out index_, out trailing);
bool ret = raw_ret;
return ret;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,306 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class LayoutIter : GLib.Opaque {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_iter_at_last_line(IntPtr raw);
static d_pango_layout_iter_at_last_line pango_layout_iter_at_last_line = FuncLoader.LoadFunction<d_pango_layout_iter_at_last_line>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_at_last_line"));
public bool AtLastLine() {
bool raw_ret = pango_layout_iter_at_last_line(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_iter_copy(IntPtr raw);
static d_pango_layout_iter_copy pango_layout_iter_copy = FuncLoader.LoadFunction<d_pango_layout_iter_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_copy"));
public Pango.LayoutIter Copy() {
IntPtr raw_ret = pango_layout_iter_copy(Handle);
Pango.LayoutIter ret = raw_ret == IntPtr.Zero ? null : (Pango.LayoutIter) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.LayoutIter), true);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_iter_get_baseline(IntPtr raw);
static d_pango_layout_iter_get_baseline pango_layout_iter_get_baseline = FuncLoader.LoadFunction<d_pango_layout_iter_get_baseline>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_baseline"));
public int Baseline {
get {
int raw_ret = pango_layout_iter_get_baseline(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_iter_get_char_extents(IntPtr raw, IntPtr logical_rect);
static d_pango_layout_iter_get_char_extents pango_layout_iter_get_char_extents = FuncLoader.LoadFunction<d_pango_layout_iter_get_char_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_char_extents"));
public Pango.Rectangle CharExtents {
get {
Pango.Rectangle logical_rect;
IntPtr native_logical_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_iter_get_char_extents(Handle, native_logical_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
return logical_rect;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_iter_get_cluster_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_iter_get_cluster_extents pango_layout_iter_get_cluster_extents = FuncLoader.LoadFunction<d_pango_layout_iter_get_cluster_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_cluster_extents"));
public void GetClusterExtents(out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
IntPtr native_logical_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_iter_get_cluster_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_pango_layout_iter_get_index(IntPtr raw);
static d_pango_layout_iter_get_index pango_layout_iter_get_index = FuncLoader.LoadFunction<d_pango_layout_iter_get_index>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_index"));
public int Index {
get {
int raw_ret = pango_layout_iter_get_index(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_iter_get_layout(IntPtr raw);
static d_pango_layout_iter_get_layout pango_layout_iter_get_layout = FuncLoader.LoadFunction<d_pango_layout_iter_get_layout>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_layout"));
public Pango.Layout Layout {
get {
IntPtr raw_ret = pango_layout_iter_get_layout(Handle);
Pango.Layout ret = GLib.Object.GetObject(raw_ret) as Pango.Layout;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_iter_get_layout_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_iter_get_layout_extents pango_layout_iter_get_layout_extents = FuncLoader.LoadFunction<d_pango_layout_iter_get_layout_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_layout_extents"));
public void GetLayoutExtents(out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
IntPtr native_logical_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_iter_get_layout_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_iter_get_line(IntPtr raw);
static d_pango_layout_iter_get_line pango_layout_iter_get_line = FuncLoader.LoadFunction<d_pango_layout_iter_get_line>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_line"));
public Pango.LayoutLine Line {
get {
IntPtr raw_ret = pango_layout_iter_get_line(Handle);
Pango.LayoutLine ret = raw_ret == IntPtr.Zero ? null : (Pango.LayoutLine) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.LayoutLine), false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_iter_get_line_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_iter_get_line_extents pango_layout_iter_get_line_extents = FuncLoader.LoadFunction<d_pango_layout_iter_get_line_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_line_extents"));
public void GetLineExtents(out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
IntPtr native_logical_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_iter_get_line_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_iter_get_line_readonly(IntPtr raw);
static d_pango_layout_iter_get_line_readonly pango_layout_iter_get_line_readonly = FuncLoader.LoadFunction<d_pango_layout_iter_get_line_readonly>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_line_readonly"));
public Pango.LayoutLine LineReadonly {
get {
IntPtr raw_ret = pango_layout_iter_get_line_readonly(Handle);
Pango.LayoutLine ret = raw_ret == IntPtr.Zero ? null : (Pango.LayoutLine) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.LayoutLine), false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_iter_get_line_yrange(IntPtr raw, out int y0_, out int y1_);
static d_pango_layout_iter_get_line_yrange pango_layout_iter_get_line_yrange = FuncLoader.LoadFunction<d_pango_layout_iter_get_line_yrange>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_line_yrange"));
public void GetLineYrange(out int y0_, out int y1_) {
pango_layout_iter_get_line_yrange(Handle, out y0_, out y1_);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_iter_get_run(IntPtr raw);
static d_pango_layout_iter_get_run pango_layout_iter_get_run = FuncLoader.LoadFunction<d_pango_layout_iter_get_run>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_run"));
public Pango.LayoutRun Run {
get {
IntPtr raw_ret = pango_layout_iter_get_run(Handle);
Pango.LayoutRun ret = Pango.LayoutRun.New (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_iter_get_run_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_iter_get_run_extents pango_layout_iter_get_run_extents = FuncLoader.LoadFunction<d_pango_layout_iter_get_run_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_run_extents"));
public void GetRunExtents(out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
IntPtr native_logical_rect = Marshal.AllocHGlobal (Marshal.SizeOf<Pango.Rectangle>());
pango_layout_iter_get_run_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_iter_get_run_readonly(IntPtr raw);
static d_pango_layout_iter_get_run_readonly pango_layout_iter_get_run_readonly = FuncLoader.LoadFunction<d_pango_layout_iter_get_run_readonly>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_run_readonly"));
public Pango.LayoutRun RunReadonly {
get {
IntPtr raw_ret = pango_layout_iter_get_run_readonly(Handle);
Pango.LayoutRun ret = Pango.LayoutRun.New (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_iter_get_type();
static d_pango_layout_iter_get_type pango_layout_iter_get_type = FuncLoader.LoadFunction<d_pango_layout_iter_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_layout_iter_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_iter_next_char(IntPtr raw);
static d_pango_layout_iter_next_char pango_layout_iter_next_char = FuncLoader.LoadFunction<d_pango_layout_iter_next_char>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_next_char"));
public bool NextChar() {
bool raw_ret = pango_layout_iter_next_char(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_iter_next_cluster(IntPtr raw);
static d_pango_layout_iter_next_cluster pango_layout_iter_next_cluster = FuncLoader.LoadFunction<d_pango_layout_iter_next_cluster>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_next_cluster"));
public bool NextCluster() {
bool raw_ret = pango_layout_iter_next_cluster(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_iter_next_line(IntPtr raw);
static d_pango_layout_iter_next_line pango_layout_iter_next_line = FuncLoader.LoadFunction<d_pango_layout_iter_next_line>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_next_line"));
public bool NextLine() {
bool raw_ret = pango_layout_iter_next_line(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_iter_next_run(IntPtr raw);
static d_pango_layout_iter_next_run pango_layout_iter_next_run = FuncLoader.LoadFunction<d_pango_layout_iter_next_run>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_next_run"));
public bool NextRun() {
bool raw_ret = pango_layout_iter_next_run(Handle);
bool ret = raw_ret;
return ret;
}
public LayoutIter(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_iter_free(IntPtr raw);
static d_pango_layout_iter_free pango_layout_iter_free = FuncLoader.LoadFunction<d_pango_layout_iter_free>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_iter_free"));
protected override void Free (IntPtr raw)
{
pango_layout_iter_free (raw);
}
[Obsolete("Pango.LayoutIter is now freed automatically")]
public void Free () {}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_layout_iter_free (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~LayoutIter ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,256 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class LayoutLine : GLib.Opaque {
public Pango.Layout Layout {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("layout"));
return GLib.Object.GetObject((*raw_ptr)) as Pango.Layout;
}
}
}
public int StartIndex {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("start_index"));
return (*raw_ptr);
}
}
}
public int Length {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("length"));
return (*raw_ptr);
}
}
}
public bool IsParagraphStart {
get {
unsafe {
bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("is_paragraph_start"));
return (*raw_ptr);
}
}
}
public uint ResolvedDir {
get {
unsafe {
uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("resolved_dir"));
return (*raw_ptr);
}
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_line_get_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_line_get_extents pango_layout_line_get_extents = FuncLoader.LoadFunction<d_pango_layout_line_get_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_line_get_extents"));
public void GetExtents(ref Pango.Rectangle ink_rect, ref Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect);
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect);
pango_layout_line_get_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_line_get_pixel_extents(IntPtr raw, IntPtr ink_rect, IntPtr logical_rect);
static d_pango_layout_line_get_pixel_extents pango_layout_line_get_pixel_extents = FuncLoader.LoadFunction<d_pango_layout_line_get_pixel_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_line_get_pixel_extents"));
public void GetPixelExtents(ref Pango.Rectangle ink_rect, ref Pango.Rectangle logical_rect) {
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect);
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect);
pango_layout_line_get_pixel_extents(Handle, native_ink_rect, native_logical_rect);
ink_rect = Pango.Rectangle.New (native_ink_rect);
Marshal.FreeHGlobal (native_ink_rect);
logical_rect = Pango.Rectangle.New (native_logical_rect);
Marshal.FreeHGlobal (native_logical_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_line_get_type();
static d_pango_layout_line_get_type pango_layout_line_get_type = FuncLoader.LoadFunction<d_pango_layout_line_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_line_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_layout_line_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_line_index_to_x(IntPtr raw, int index_, bool trailing, out int x_pos);
static d_pango_layout_line_index_to_x pango_layout_line_index_to_x = FuncLoader.LoadFunction<d_pango_layout_line_index_to_x>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_line_index_to_x"));
public int IndexToX(int index_, bool trailing) {
int x_pos;
pango_layout_line_index_to_x(Handle, index_, trailing, out x_pos);
return x_pos;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_pango_layout_line_x_to_index(IntPtr raw, int x_pos, out int index_, out int trailing);
static d_pango_layout_line_x_to_index pango_layout_line_x_to_index = FuncLoader.LoadFunction<d_pango_layout_line_x_to_index>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_line_x_to_index"));
public bool XToIndex(int x_pos, out int index_, out int trailing) {
bool raw_ret = pango_layout_line_x_to_index(Handle, x_pos, out index_, out trailing);
bool ret = raw_ret;
return ret;
}
public LayoutLine(IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_layout_line_ref(IntPtr raw);
static d_pango_layout_line_ref pango_layout_line_ref = FuncLoader.LoadFunction<d_pango_layout_line_ref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_line_ref"));
protected override void Ref (IntPtr raw)
{
if (!Owned) {
pango_layout_line_ref (raw);
Owned = true;
}
}
[Obsolete("Pango.LayoutLine is now refcounted automatically")]
public LayoutLine Ref () { return this; }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_layout_line_unref(IntPtr raw);
static d_pango_layout_line_unref pango_layout_line_unref = FuncLoader.LoadFunction<d_pango_layout_line_unref>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_layout_line_unref"));
protected override void Unref (IntPtr raw)
{
if (Owned) {
pango_layout_line_unref (raw);
Owned = false;
}
}
[Obsolete("Pango.LayoutLine is now refcounted automatically")]
public void Unref () {}
class FinalizerInfo {
IntPtr handle;
public uint timeoutHandlerId;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
pango_layout_line_unref (handle);
GLib.Timeout.Remove(timeoutHandlerId);
return false;
}
}
~LayoutLine ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
info.timeoutHandlerId = GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("layout"
, 0
, (uint) sizeof( IntPtr ) // layout
, null
, "start_index"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("start_index"
, -1
, (uint) sizeof( int ) // start_index
, "layout"
, "length"
, (long) Marshal.OffsetOf<PangoLayoutLine_start_indexAlign>("start_index")
, 0
),
new GLib.AbiField("length"
, -1
, (uint) sizeof( int ) // length
, "start_index"
, "runs"
, (long) Marshal.OffsetOf<PangoLayoutLine_lengthAlign>("length")
, 0
),
new GLib.AbiField("runs"
, -1
, (uint) sizeof( IntPtr ) // runs
, "length"
, "is_paragraph_start"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("is_paragraph_start"
, -1
, (uint) Marshal.SizeOf<bool>() // is_paragraph_start
, "runs"
, "resolved_dir"
, 1
, 1
),
new GLib.AbiField("resolved_dir"
, -1
, (uint) sizeof( uint ) // resolved_dir
, "is_paragraph_start"
, null
, 1
, 3
),
});
return _abi_info;
}
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoLayoutLine_start_indexAlign
{
sbyte f1;
private int start_index;
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoLayoutLine_lengthAlign
{
sbyte f1;
private int length;
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,62 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct LayoutRun : IEquatable<LayoutRun> {
private IntPtr _item;
public Pango.Item Item {
get {
return _item == IntPtr.Zero ? null : (Pango.Item) GLib.Opaque.GetOpaque (_item, typeof (Pango.Item), false);
}
set {
_item = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _glyphs;
public Pango.GlyphString Glyphs {
get {
return _glyphs == IntPtr.Zero ? null : (Pango.GlyphString) GLib.Opaque.GetOpaque (_glyphs, typeof (Pango.GlyphString), false);
}
set {
_glyphs = value == null ? IntPtr.Zero : value.Handle;
}
}
public static Pango.LayoutRun Zero = new Pango.LayoutRun ();
public static Pango.LayoutRun New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.LayoutRun.Zero;
return (Pango.LayoutRun) Marshal.PtrToStructure (raw, typeof (Pango.LayoutRun));
}
public bool Equals (LayoutRun other)
{
return true && Item.Equals (other.Item) && Glyphs.Equals (other.Glyphs);
}
public override bool Equals (object other)
{
return other is LayoutRun && Equals ((LayoutRun) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Item.GetHashCode () ^ Glyphs.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class LineIter : GLib.Opaque {
public LineIter(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class LineState : GLib.Opaque {
public LineState(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,46 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct LogAttr : IEquatable<LogAttr> {
private uint _bitfield0;
public static Pango.LogAttr Zero = new Pango.LogAttr ();
public static Pango.LogAttr New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.LogAttr.Zero;
return (Pango.LogAttr) Marshal.PtrToStructure (raw, typeof (Pango.LogAttr));
}
public bool Equals (LogAttr other)
{
return true && _bitfield0.Equals (other._bitfield0);
}
public override bool Equals (object other)
{
return other is LogAttr && Equals ((LogAttr) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ _bitfield0.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,14 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Markup {
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class MarkupData : GLib.Opaque {
public MarkupData(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,213 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct Matrix : IEquatable<Matrix> {
public double Xx;
public double Xy;
public double Yx;
public double Yy;
public double X0;
public double Y0;
public static Pango.Matrix Zero = new Pango.Matrix ();
public static Pango.Matrix New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.Matrix.Zero;
return (Pango.Matrix) Marshal.PtrToStructure (raw, typeof (Pango.Matrix));
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_concat(IntPtr raw, IntPtr new_matrix);
static d_pango_matrix_concat pango_matrix_concat = FuncLoader.LoadFunction<d_pango_matrix_concat>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_concat"));
public void Concat(Pango.Matrix new_matrix) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_new_matrix = GLib.Marshaller.StructureToPtrAlloc (new_matrix);
pango_matrix_concat(this_as_native, native_new_matrix);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_new_matrix);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate double d_pango_matrix_get_font_scale_factor(IntPtr raw);
static d_pango_matrix_get_font_scale_factor pango_matrix_get_font_scale_factor = FuncLoader.LoadFunction<d_pango_matrix_get_font_scale_factor>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_get_font_scale_factor"));
public double FontScaleFactor {
get {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
double raw_ret = pango_matrix_get_font_scale_factor(this_as_native);
double ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_get_font_scale_factors(IntPtr raw, out double xscale, out double yscale);
static d_pango_matrix_get_font_scale_factors pango_matrix_get_font_scale_factors = FuncLoader.LoadFunction<d_pango_matrix_get_font_scale_factors>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_get_font_scale_factors"));
public void GetFontScaleFactors(out double xscale, out double yscale) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
pango_matrix_get_font_scale_factors(this_as_native, out xscale, out yscale);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_matrix_get_type();
static d_pango_matrix_get_type pango_matrix_get_type = FuncLoader.LoadFunction<d_pango_matrix_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_get_type"));
public static GLib.GType GType {
get {
IntPtr raw_ret = pango_matrix_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_rotate(IntPtr raw, double degrees);
static d_pango_matrix_rotate pango_matrix_rotate = FuncLoader.LoadFunction<d_pango_matrix_rotate>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_rotate"));
public void Rotate(double degrees) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
pango_matrix_rotate(this_as_native, degrees);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_scale(IntPtr raw, double scale_x, double scale_y);
static d_pango_matrix_scale pango_matrix_scale = FuncLoader.LoadFunction<d_pango_matrix_scale>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_scale"));
public void Scale(double scale_x, double scale_y) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
pango_matrix_scale(this_as_native, scale_x, scale_y);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_transform_distance(IntPtr raw, ref double dx, ref double dy);
static d_pango_matrix_transform_distance pango_matrix_transform_distance = FuncLoader.LoadFunction<d_pango_matrix_transform_distance>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_transform_distance"));
public void TransformDistance(ref double dx, ref double dy) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
pango_matrix_transform_distance(this_as_native, ref dx, ref dy);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_transform_pixel_rectangle(IntPtr raw, IntPtr rect);
static d_pango_matrix_transform_pixel_rectangle pango_matrix_transform_pixel_rectangle = FuncLoader.LoadFunction<d_pango_matrix_transform_pixel_rectangle>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_transform_pixel_rectangle"));
public void TransformPixelRectangle(ref Pango.Rectangle rect) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_rect = GLib.Marshaller.StructureToPtrAlloc (rect);
pango_matrix_transform_pixel_rectangle(this_as_native, native_rect);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
rect = Pango.Rectangle.New (native_rect);
Marshal.FreeHGlobal (native_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_transform_point(IntPtr raw, ref double x, ref double y);
static d_pango_matrix_transform_point pango_matrix_transform_point = FuncLoader.LoadFunction<d_pango_matrix_transform_point>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_transform_point"));
public void TransformPoint(ref double x, ref double y) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
pango_matrix_transform_point(this_as_native, ref x, ref y);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_transform_rectangle(IntPtr raw, IntPtr rect);
static d_pango_matrix_transform_rectangle pango_matrix_transform_rectangle = FuncLoader.LoadFunction<d_pango_matrix_transform_rectangle>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_transform_rectangle"));
public void TransformRectangle(ref Pango.Rectangle rect) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_rect = GLib.Marshaller.StructureToPtrAlloc (rect);
pango_matrix_transform_rectangle(this_as_native, native_rect);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
rect = Pango.Rectangle.New (native_rect);
Marshal.FreeHGlobal (native_rect);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_matrix_translate(IntPtr raw, double tx, double ty);
static d_pango_matrix_translate pango_matrix_translate = FuncLoader.LoadFunction<d_pango_matrix_translate>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_matrix_translate"));
public void Translate(double tx, double ty) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf<Pango.Matrix>());
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
pango_matrix_translate(this_as_native, tx, ty);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
static void ReadNative (IntPtr native, ref Pango.Matrix target)
{
target = New (native);
}
public bool Equals (Matrix other)
{
return true && Xx.Equals (other.Xx) && Xy.Equals (other.Xy) && Yx.Equals (other.Yx) && Yy.Equals (other.Yy) && X0.Equals (other.X0) && Y0.Equals (other.Y0);
}
public override bool Equals (object other)
{
return other is Matrix && Equals ((Matrix) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Xx.GetHashCode () ^ Xy.GetHashCode () ^ Yx.GetHashCode () ^ Yy.GetHashCode () ^ X0.GetHashCode () ^ Y0.GetHashCode ();
}
public static explicit operator GLib.Value (Pango.Matrix boxed)
{
GLib.Value val = GLib.Value.Empty;
val.Init (Pango.Matrix.GType);
val.Val = boxed;
return val;
}
public static explicit operator Pango.Matrix (GLib.Value val)
{
return (Pango.Matrix) val.Val;
}
[Obsolete("This is a no-op")]
public Pango.Matrix Copy() {
return this;
}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class OTInfoClass : GLib.Opaque {
public OTInfoClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class OTRulesetClass : GLib.Opaque {
public OTRulesetClass(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class OpenTag : GLib.Opaque {
public OpenTag(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,95 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace PangoSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate IntPtr AttrDataCopyFuncNative(IntPtr user_data);
internal class AttrDataCopyFuncInvoker {
AttrDataCopyFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~AttrDataCopyFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal AttrDataCopyFuncInvoker (AttrDataCopyFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal AttrDataCopyFuncInvoker (AttrDataCopyFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal AttrDataCopyFuncInvoker (AttrDataCopyFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Pango.AttrDataCopyFunc Handler {
get {
return new Pango.AttrDataCopyFunc(InvokeNative);
}
}
IntPtr InvokeNative ()
{
IntPtr __result = native_cb (__data);
return __result;
}
}
internal class AttrDataCopyFuncWrapper {
public IntPtr NativeCallback (IntPtr user_data)
{
try {
IntPtr __ret = managed ();
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal AttrDataCopyFuncNative NativeDelegate;
Pango.AttrDataCopyFunc managed;
public AttrDataCopyFuncWrapper (Pango.AttrDataCopyFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new AttrDataCopyFuncNative (NativeCallback);
}
public static Pango.AttrDataCopyFunc GetManagedDelegate (AttrDataCopyFuncNative native)
{
if (native == null)
return null;
AttrDataCopyFuncWrapper wrapper = (AttrDataCopyFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,94 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace PangoSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate bool AttrFilterFuncNative(IntPtr attribute, IntPtr user_data);
internal class AttrFilterFuncInvoker {
AttrFilterFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~AttrFilterFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal AttrFilterFuncInvoker (AttrFilterFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal AttrFilterFuncInvoker (AttrFilterFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal AttrFilterFuncInvoker (AttrFilterFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Pango.AttrFilterFunc Handler {
get {
return new Pango.AttrFilterFunc(InvokeNative);
}
}
bool InvokeNative (Pango.Attribute attribute)
{
bool __result = native_cb (attribute.Handle, __data);
return __result;
}
}
internal class AttrFilterFuncWrapper {
public bool NativeCallback (IntPtr attribute, IntPtr user_data)
{
try {
bool __ret = managed (Pango.Attribute.GetAttribute (attribute));
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal AttrFilterFuncNative NativeDelegate;
Pango.AttrFilterFunc managed;
public AttrFilterFuncWrapper (Pango.AttrFilterFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new AttrFilterFuncNative (NativeCallback);
}
public static Pango.AttrFilterFunc GetManagedDelegate (AttrFilterFuncNative native)
{
if (native == null)
return null;
AttrFilterFuncWrapper wrapper = (AttrFilterFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,95 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace PangoSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate void CairoShapeRendererFuncNative(IntPtr cr, IntPtr attr, bool do_path, IntPtr data);
internal class CairoShapeRendererFuncInvoker {
CairoShapeRendererFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~CairoShapeRendererFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal CairoShapeRendererFuncInvoker (CairoShapeRendererFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal CairoShapeRendererFuncInvoker (CairoShapeRendererFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal CairoShapeRendererFuncInvoker (CairoShapeRendererFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Pango.CairoShapeRendererFunc Handler {
get {
return new Pango.CairoShapeRendererFunc(InvokeNative);
}
}
void InvokeNative (Cairo.Context cr, Pango.Attribute attr, bool do_path)
{
native_cb (cr == null ? IntPtr.Zero : cr.Handle, attr.Handle, do_path, __data);
}
}
internal class CairoShapeRendererFuncWrapper {
public void NativeCallback (IntPtr cr, IntPtr attr, bool do_path, IntPtr data)
{
Cairo.Context mycr = null;
try {
mycr = new Cairo.Context (cr, false);
managed (mycr, Pango.Attribute.GetAttribute (attr), do_path);
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal CairoShapeRendererFuncNative NativeDelegate;
Pango.CairoShapeRendererFunc managed;
public CairoShapeRendererFuncWrapper (Pango.CairoShapeRendererFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new CairoShapeRendererFuncNative (NativeCallback);
}
public static Pango.CairoShapeRendererFunc GetManagedDelegate (CairoShapeRendererFuncNative native)
{
if (native == null)
return null;
CairoShapeRendererFuncWrapper wrapper = (CairoShapeRendererFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,94 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace PangoSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate bool FontsetForeachFuncNative(IntPtr fontset, IntPtr font, IntPtr user_data);
internal class FontsetForeachFuncInvoker {
FontsetForeachFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~FontsetForeachFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal FontsetForeachFuncInvoker (FontsetForeachFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal FontsetForeachFuncInvoker (FontsetForeachFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal FontsetForeachFuncInvoker (FontsetForeachFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Pango.FontsetForeachFunc Handler {
get {
return new Pango.FontsetForeachFunc(InvokeNative);
}
}
bool InvokeNative (Pango.Fontset fontset, Pango.Font font)
{
bool __result = native_cb (fontset == null ? IntPtr.Zero : fontset.Handle, font == null ? IntPtr.Zero : font.Handle, __data);
return __result;
}
}
internal class FontsetForeachFuncWrapper {
public bool NativeCallback (IntPtr fontset, IntPtr font, IntPtr user_data)
{
try {
bool __ret = managed (GLib.Object.GetObject(fontset) as Pango.Fontset, GLib.Object.GetObject(font) as Pango.Font);
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal FontsetForeachFuncNative NativeDelegate;
Pango.FontsetForeachFunc managed;
public FontsetForeachFuncWrapper (Pango.FontsetForeachFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new FontsetForeachFuncNative (NativeCallback);
}
public static Pango.FontsetForeachFunc GetManagedDelegate (FontsetForeachFuncNative native)
{
if (native == null)
return null;
FontsetForeachFuncWrapper wrapper = (FontsetForeachFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ParaBreakState : GLib.Opaque {
public ParaBreakState(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ParenStackEntry : GLib.Opaque {
public ParenStackEntry(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Point : GLib.Opaque {
public Point(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,48 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct Rectangle : IEquatable<Rectangle> {
public int X;
public int Y;
public int Width;
public int Height;
public static Pango.Rectangle Zero = new Pango.Rectangle ();
public static Pango.Rectangle New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Pango.Rectangle.Zero;
return (Pango.Rectangle) Marshal.PtrToStructure (raw, typeof (Pango.Rectangle));
}
public bool Equals (Rectangle other)
{
return true && X.Equals (other.X) && Y.Equals (other.Y) && Width.Equals (other.Width) && Height.Equals (other.Height);
}
public override bool Equals (object other)
{
return other is Rectangle && Equals ((Rectangle) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ X.GetHashCode () ^ Y.GetHashCode () ^ Width.GetHashCode () ^ Height.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,31 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.RenderPartGType))]
public enum RenderPart {
Foreground,
Background,
Underline,
Strikethrough,
}
internal class RenderPartGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_render_part_get_type();
static d_pango_render_part_get_type pango_render_part_get_type = FuncLoader.LoadFunction<d_pango_render_part_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_render_part_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_render_part_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,961 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Renderer : GLib.Object {
public Renderer (IntPtr raw) : base(raw) {}
protected Renderer() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_renderer_get_matrix(IntPtr raw);
static d_pango_renderer_get_matrix pango_renderer_get_matrix = FuncLoader.LoadFunction<d_pango_renderer_get_matrix>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_get_matrix"));
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_set_matrix(IntPtr raw, IntPtr value);
static d_pango_renderer_set_matrix pango_renderer_set_matrix = FuncLoader.LoadFunction<d_pango_renderer_set_matrix>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_set_matrix"));
public Pango.Matrix Matrix {
get {
IntPtr raw_ret = pango_renderer_get_matrix(Handle);
Pango.Matrix ret = Pango.Matrix.New (raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
pango_renderer_set_matrix(Handle, native_value);
Marshal.FreeHGlobal (native_value);
}
}
static DrawGlyphsNativeDelegate DrawGlyphs_cb_delegate;
static DrawGlyphsNativeDelegate DrawGlyphsVMCallback {
get {
if (DrawGlyphs_cb_delegate == null)
DrawGlyphs_cb_delegate = new DrawGlyphsNativeDelegate (DrawGlyphs_cb);
return DrawGlyphs_cb_delegate;
}
}
static void OverrideDrawGlyphs (GLib.GType gtype)
{
OverrideDrawGlyphs (gtype, DrawGlyphsVMCallback);
}
static void OverrideDrawGlyphs (GLib.GType gtype, DrawGlyphsNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("draw_glyphs"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DrawGlyphsNativeDelegate (IntPtr inst, IntPtr font, IntPtr glyphs, int x, int y);
static void DrawGlyphs_cb (IntPtr inst, IntPtr font, IntPtr glyphs, int x, int y)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnDrawGlyphs (GLib.Object.GetObject(font) as Pango.Font, glyphs == IntPtr.Zero ? null : (Pango.GlyphString) GLib.Opaque.GetOpaque (glyphs, typeof (Pango.GlyphString), false), x, y);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideDrawGlyphs")]
protected virtual void OnDrawGlyphs (Pango.Font font, Pango.GlyphString glyphs, int x, int y)
{
InternalDrawGlyphs (font, glyphs, x, y);
}
private void InternalDrawGlyphs (Pango.Font font, Pango.GlyphString glyphs, int x, int y)
{
DrawGlyphsNativeDelegate unmanaged = class_abi.BaseOverride<DrawGlyphsNativeDelegate>(this.LookupGType(), "draw_glyphs");
if (unmanaged == null) return;
unmanaged (this.Handle, font == null ? IntPtr.Zero : font.Handle, glyphs == null ? IntPtr.Zero : glyphs.Handle, x, y);
}
static DrawRectangleNativeDelegate DrawRectangle_cb_delegate;
static DrawRectangleNativeDelegate DrawRectangleVMCallback {
get {
if (DrawRectangle_cb_delegate == null)
DrawRectangle_cb_delegate = new DrawRectangleNativeDelegate (DrawRectangle_cb);
return DrawRectangle_cb_delegate;
}
}
static void OverrideDrawRectangle (GLib.GType gtype)
{
OverrideDrawRectangle (gtype, DrawRectangleVMCallback);
}
static void OverrideDrawRectangle (GLib.GType gtype, DrawRectangleNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("draw_rectangle"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DrawRectangleNativeDelegate (IntPtr inst, int part, int x, int y, int width, int height);
static void DrawRectangle_cb (IntPtr inst, int part, int x, int y, int width, int height)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnDrawRectangle ((Pango.RenderPart) part, x, y, width, height);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideDrawRectangle")]
protected virtual void OnDrawRectangle (Pango.RenderPart part, int x, int y, int width, int height)
{
InternalDrawRectangle (part, x, y, width, height);
}
private void InternalDrawRectangle (Pango.RenderPart part, int x, int y, int width, int height)
{
DrawRectangleNativeDelegate unmanaged = class_abi.BaseOverride<DrawRectangleNativeDelegate>(this.LookupGType(), "draw_rectangle");
if (unmanaged == null) return;
unmanaged (this.Handle, (int) part, x, y, width, height);
}
static DrawErrorUnderlineNativeDelegate DrawErrorUnderline_cb_delegate;
static DrawErrorUnderlineNativeDelegate DrawErrorUnderlineVMCallback {
get {
if (DrawErrorUnderline_cb_delegate == null)
DrawErrorUnderline_cb_delegate = new DrawErrorUnderlineNativeDelegate (DrawErrorUnderline_cb);
return DrawErrorUnderline_cb_delegate;
}
}
static void OverrideDrawErrorUnderline (GLib.GType gtype)
{
OverrideDrawErrorUnderline (gtype, DrawErrorUnderlineVMCallback);
}
static void OverrideDrawErrorUnderline (GLib.GType gtype, DrawErrorUnderlineNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("draw_error_underline"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DrawErrorUnderlineNativeDelegate (IntPtr inst, int x, int y, int width, int height);
static void DrawErrorUnderline_cb (IntPtr inst, int x, int y, int width, int height)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnDrawErrorUnderline (x, y, width, height);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideDrawErrorUnderline")]
protected virtual void OnDrawErrorUnderline (int x, int y, int width, int height)
{
InternalDrawErrorUnderline (x, y, width, height);
}
private void InternalDrawErrorUnderline (int x, int y, int width, int height)
{
DrawErrorUnderlineNativeDelegate unmanaged = class_abi.BaseOverride<DrawErrorUnderlineNativeDelegate>(this.LookupGType(), "draw_error_underline");
if (unmanaged == null) return;
unmanaged (this.Handle, x, y, width, height);
}
static DrawShapeNativeDelegate DrawShape_cb_delegate;
static DrawShapeNativeDelegate DrawShapeVMCallback {
get {
if (DrawShape_cb_delegate == null)
DrawShape_cb_delegate = new DrawShapeNativeDelegate (DrawShape_cb);
return DrawShape_cb_delegate;
}
}
static void OverrideDrawShape (GLib.GType gtype)
{
OverrideDrawShape (gtype, DrawShapeVMCallback);
}
static void OverrideDrawShape (GLib.GType gtype, DrawShapeNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("draw_shape"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DrawShapeNativeDelegate (IntPtr inst, IntPtr attr, int x, int y);
static void DrawShape_cb (IntPtr inst, IntPtr attr, int x, int y)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnDrawShape (Pango.Attribute.GetAttribute (attr), x, y);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideDrawShape")]
protected virtual void OnDrawShape (Pango.Attribute attr, int x, int y)
{
InternalDrawShape (attr, x, y);
}
private void InternalDrawShape (Pango.Attribute attr, int x, int y)
{
DrawShapeNativeDelegate unmanaged = class_abi.BaseOverride<DrawShapeNativeDelegate>(this.LookupGType(), "draw_shape");
if (unmanaged == null) return;
unmanaged (this.Handle, attr.Handle, x, y);
}
static DrawTrapezoidNativeDelegate DrawTrapezoid_cb_delegate;
static DrawTrapezoidNativeDelegate DrawTrapezoidVMCallback {
get {
if (DrawTrapezoid_cb_delegate == null)
DrawTrapezoid_cb_delegate = new DrawTrapezoidNativeDelegate (DrawTrapezoid_cb);
return DrawTrapezoid_cb_delegate;
}
}
static void OverrideDrawTrapezoid (GLib.GType gtype)
{
OverrideDrawTrapezoid (gtype, DrawTrapezoidVMCallback);
}
static void OverrideDrawTrapezoid (GLib.GType gtype, DrawTrapezoidNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("draw_trapezoid"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DrawTrapezoidNativeDelegate (IntPtr inst, int part, double y1_, double x11, double x21, double y2, double x12, double x22);
static void DrawTrapezoid_cb (IntPtr inst, int part, double y1_, double x11, double x21, double y2, double x12, double x22)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnDrawTrapezoid ((Pango.RenderPart) part, y1_, x11, x21, y2, x12, x22);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideDrawTrapezoid")]
protected virtual void OnDrawTrapezoid (Pango.RenderPart part, double y1_, double x11, double x21, double y2, double x12, double x22)
{
InternalDrawTrapezoid (part, y1_, x11, x21, y2, x12, x22);
}
private void InternalDrawTrapezoid (Pango.RenderPart part, double y1_, double x11, double x21, double y2, double x12, double x22)
{
DrawTrapezoidNativeDelegate unmanaged = class_abi.BaseOverride<DrawTrapezoidNativeDelegate>(this.LookupGType(), "draw_trapezoid");
if (unmanaged == null) return;
unmanaged (this.Handle, (int) part, y1_, x11, x21, y2, x12, x22);
}
static DrawGlyphNativeDelegate DrawGlyph_cb_delegate;
static DrawGlyphNativeDelegate DrawGlyphVMCallback {
get {
if (DrawGlyph_cb_delegate == null)
DrawGlyph_cb_delegate = new DrawGlyphNativeDelegate (DrawGlyph_cb);
return DrawGlyph_cb_delegate;
}
}
static void OverrideDrawGlyph (GLib.GType gtype)
{
OverrideDrawGlyph (gtype, DrawGlyphVMCallback);
}
static void OverrideDrawGlyph (GLib.GType gtype, DrawGlyphNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("draw_glyph"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DrawGlyphNativeDelegate (IntPtr inst, IntPtr font, uint glyph, double x, double y);
static void DrawGlyph_cb (IntPtr inst, IntPtr font, uint glyph, double x, double y)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnDrawGlyph (GLib.Object.GetObject(font) as Pango.Font, glyph, x, y);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideDrawGlyph")]
protected virtual void OnDrawGlyph (Pango.Font font, uint glyph, double x, double y)
{
InternalDrawGlyph (font, glyph, x, y);
}
private void InternalDrawGlyph (Pango.Font font, uint glyph, double x, double y)
{
DrawGlyphNativeDelegate unmanaged = class_abi.BaseOverride<DrawGlyphNativeDelegate>(this.LookupGType(), "draw_glyph");
if (unmanaged == null) return;
unmanaged (this.Handle, font == null ? IntPtr.Zero : font.Handle, glyph, x, y);
}
static PartChangedNativeDelegate PartChanged_cb_delegate;
static PartChangedNativeDelegate PartChangedVMCallback {
get {
if (PartChanged_cb_delegate == null)
PartChanged_cb_delegate = new PartChangedNativeDelegate (PartChanged_cb);
return PartChanged_cb_delegate;
}
}
static void OverridePartChanged (GLib.GType gtype)
{
OverridePartChanged (gtype, PartChangedVMCallback);
}
static void OverridePartChanged (GLib.GType gtype, PartChangedNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("part_changed"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void PartChangedNativeDelegate (IntPtr inst, int part);
static void PartChanged_cb (IntPtr inst, int part)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnPartChanged ((Pango.RenderPart) part);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverridePartChanged")]
protected virtual void OnPartChanged (Pango.RenderPart part)
{
InternalPartChanged (part);
}
private void InternalPartChanged (Pango.RenderPart part)
{
PartChangedNativeDelegate unmanaged = class_abi.BaseOverride<PartChangedNativeDelegate>(this.LookupGType(), "part_changed");
if (unmanaged == null) return;
unmanaged (this.Handle, (int) part);
}
static BeginNativeDelegate Begin_cb_delegate;
static BeginNativeDelegate BeginVMCallback {
get {
if (Begin_cb_delegate == null)
Begin_cb_delegate = new BeginNativeDelegate (Begin_cb);
return Begin_cb_delegate;
}
}
static void OverrideBegin (GLib.GType gtype)
{
OverrideBegin (gtype, BeginVMCallback);
}
static void OverrideBegin (GLib.GType gtype, BeginNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("begin"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void BeginNativeDelegate (IntPtr inst);
static void Begin_cb (IntPtr inst)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnBegin ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideBegin")]
protected virtual void OnBegin ()
{
InternalBegin ();
}
private void InternalBegin ()
{
BeginNativeDelegate unmanaged = class_abi.BaseOverride<BeginNativeDelegate>(this.LookupGType(), "begin");
if (unmanaged == null) return;
unmanaged (this.Handle);
}
static EndNativeDelegate End_cb_delegate;
static EndNativeDelegate EndVMCallback {
get {
if (End_cb_delegate == null)
End_cb_delegate = new EndNativeDelegate (End_cb);
return End_cb_delegate;
}
}
static void OverrideEnd (GLib.GType gtype)
{
OverrideEnd (gtype, EndVMCallback);
}
static void OverrideEnd (GLib.GType gtype, EndNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("end"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void EndNativeDelegate (IntPtr inst);
static void End_cb (IntPtr inst)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnEnd ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideEnd")]
protected virtual void OnEnd ()
{
InternalEnd ();
}
private void InternalEnd ()
{
EndNativeDelegate unmanaged = class_abi.BaseOverride<EndNativeDelegate>(this.LookupGType(), "end");
if (unmanaged == null) return;
unmanaged (this.Handle);
}
static PrepareRunNativeDelegate PrepareRun_cb_delegate;
static PrepareRunNativeDelegate PrepareRunVMCallback {
get {
if (PrepareRun_cb_delegate == null)
PrepareRun_cb_delegate = new PrepareRunNativeDelegate (PrepareRun_cb);
return PrepareRun_cb_delegate;
}
}
static void OverridePrepareRun (GLib.GType gtype)
{
OverridePrepareRun (gtype, PrepareRunVMCallback);
}
static void OverridePrepareRun (GLib.GType gtype, PrepareRunNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("prepare_run"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void PrepareRunNativeDelegate (IntPtr inst, IntPtr run);
static void PrepareRun_cb (IntPtr inst, IntPtr run)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnPrepareRun (Pango.LayoutRun.New (run));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverridePrepareRun")]
protected virtual void OnPrepareRun (Pango.LayoutRun run)
{
InternalPrepareRun (run);
}
private void InternalPrepareRun (Pango.LayoutRun run)
{
PrepareRunNativeDelegate unmanaged = class_abi.BaseOverride<PrepareRunNativeDelegate>(this.LookupGType(), "prepare_run");
if (unmanaged == null) return;
IntPtr native_run = GLib.Marshaller.StructureToPtrAlloc (run);
unmanaged (this.Handle, native_run);
Marshal.FreeHGlobal (native_run);
}
static DrawGlyphItemNativeDelegate DrawGlyphItem_cb_delegate;
static DrawGlyphItemNativeDelegate DrawGlyphItemVMCallback {
get {
if (DrawGlyphItem_cb_delegate == null)
DrawGlyphItem_cb_delegate = new DrawGlyphItemNativeDelegate (DrawGlyphItem_cb);
return DrawGlyphItem_cb_delegate;
}
}
static void OverrideDrawGlyphItem (GLib.GType gtype)
{
OverrideDrawGlyphItem (gtype, DrawGlyphItemVMCallback);
}
static void OverrideDrawGlyphItem (GLib.GType gtype, DrawGlyphItemNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("draw_glyph_item"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DrawGlyphItemNativeDelegate (IntPtr inst, IntPtr text, IntPtr glyph_item, int x, int y);
static void DrawGlyphItem_cb (IntPtr inst, IntPtr text, IntPtr glyph_item, int x, int y)
{
try {
Renderer __obj = GLib.Object.GetObject (inst, false) as Renderer;
__obj.OnDrawGlyphItem (GLib.Marshaller.Utf8PtrToString (text), Pango.GlyphItem.New (glyph_item), x, y);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Pango.Renderer), ConnectionMethod="OverrideDrawGlyphItem")]
protected virtual void OnDrawGlyphItem (string text, Pango.GlyphItem glyph_item, int x, int y)
{
InternalDrawGlyphItem (text, glyph_item, x, y);
}
private void InternalDrawGlyphItem (string text, Pango.GlyphItem glyph_item, int x, int y)
{
DrawGlyphItemNativeDelegate unmanaged = class_abi.BaseOverride<DrawGlyphItemNativeDelegate>(this.LookupGType(), "draw_glyph_item");
if (unmanaged == null) return;
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
IntPtr native_glyph_item = GLib.Marshaller.StructureToPtrAlloc (glyph_item);
unmanaged (this.Handle, native_text, native_glyph_item, x, y);
GLib.Marshaller.Free (native_text);
Marshal.FreeHGlobal (native_glyph_item);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("draw_glyphs"
, GLib.Object.class_abi.Fields
, (uint) sizeof( IntPtr ) // draw_glyphs
, null
, "draw_rectangle"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("draw_rectangle"
, -1
, (uint) sizeof( IntPtr ) // draw_rectangle
, "draw_glyphs"
, "draw_error_underline"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("draw_error_underline"
, -1
, (uint) sizeof( IntPtr ) // draw_error_underline
, "draw_rectangle"
, "draw_shape"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("draw_shape"
, -1
, (uint) sizeof( IntPtr ) // draw_shape
, "draw_error_underline"
, "draw_trapezoid"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("draw_trapezoid"
, -1
, (uint) sizeof( IntPtr ) // draw_trapezoid
, "draw_shape"
, "draw_glyph"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("draw_glyph"
, -1
, (uint) sizeof( IntPtr ) // draw_glyph
, "draw_trapezoid"
, "part_changed"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("part_changed"
, -1
, (uint) sizeof( IntPtr ) // part_changed
, "draw_glyph"
, "begin"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("begin"
, -1
, (uint) sizeof( IntPtr ) // begin
, "part_changed"
, "end"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("end"
, -1
, (uint) sizeof( IntPtr ) // end
, "begin"
, "prepare_run"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("prepare_run"
, -1
, (uint) sizeof( IntPtr ) // prepare_run
, "end"
, "draw_glyph_item"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("draw_glyph_item"
, -1
, (uint) sizeof( IntPtr ) // draw_glyph_item
, "prepare_run"
, "_pango_reserved2"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("_pango_reserved2"
, -1
, (uint) sizeof( IntPtr ) // _pango_reserved2
, "draw_glyph_item"
, "_pango_reserved3"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("_pango_reserved3"
, -1
, (uint) sizeof( IntPtr ) // _pango_reserved3
, "_pango_reserved2"
, "_pango_reserved4"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("_pango_reserved4"
, -1
, (uint) sizeof( IntPtr ) // _pango_reserved4
, "_pango_reserved3"
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_activate(IntPtr raw);
static d_pango_renderer_activate pango_renderer_activate = FuncLoader.LoadFunction<d_pango_renderer_activate>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_activate"));
public void Activate() {
pango_renderer_activate(Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_deactivate(IntPtr raw);
static d_pango_renderer_deactivate pango_renderer_deactivate = FuncLoader.LoadFunction<d_pango_renderer_deactivate>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_deactivate"));
public void Deactivate() {
pango_renderer_deactivate(Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_error_underline(IntPtr raw, int x, int y, int width, int height);
static d_pango_renderer_draw_error_underline pango_renderer_draw_error_underline = FuncLoader.LoadFunction<d_pango_renderer_draw_error_underline>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_error_underline"));
public void DrawErrorUnderline(int x, int y, int width, int height) {
pango_renderer_draw_error_underline(Handle, x, y, width, height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_glyph(IntPtr raw, IntPtr font, uint glyph, double x, double y);
static d_pango_renderer_draw_glyph pango_renderer_draw_glyph = FuncLoader.LoadFunction<d_pango_renderer_draw_glyph>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_glyph"));
public void DrawGlyph(Pango.Font font, uint glyph, double x, double y) {
pango_renderer_draw_glyph(Handle, font == null ? IntPtr.Zero : font.Handle, glyph, x, y);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_glyph_item(IntPtr raw, IntPtr text, IntPtr glyph_item, int x, int y);
static d_pango_renderer_draw_glyph_item pango_renderer_draw_glyph_item = FuncLoader.LoadFunction<d_pango_renderer_draw_glyph_item>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_glyph_item"));
public void DrawGlyphItem(string text, Pango.GlyphItem glyph_item, int x, int y) {
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
IntPtr native_glyph_item = GLib.Marshaller.StructureToPtrAlloc (glyph_item);
pango_renderer_draw_glyph_item(Handle, native_text, native_glyph_item, x, y);
GLib.Marshaller.Free (native_text);
Marshal.FreeHGlobal (native_glyph_item);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_glyphs(IntPtr raw, IntPtr font, IntPtr glyphs, int x, int y);
static d_pango_renderer_draw_glyphs pango_renderer_draw_glyphs = FuncLoader.LoadFunction<d_pango_renderer_draw_glyphs>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_glyphs"));
public void DrawGlyphs(Pango.Font font, Pango.GlyphString glyphs, int x, int y) {
pango_renderer_draw_glyphs(Handle, font == null ? IntPtr.Zero : font.Handle, glyphs == null ? IntPtr.Zero : glyphs.Handle, x, y);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_layout(IntPtr raw, IntPtr layout, int x, int y);
static d_pango_renderer_draw_layout pango_renderer_draw_layout = FuncLoader.LoadFunction<d_pango_renderer_draw_layout>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_layout"));
public void DrawLayout(Pango.Layout layout, int x, int y) {
pango_renderer_draw_layout(Handle, layout == null ? IntPtr.Zero : layout.Handle, x, y);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_layout_line(IntPtr raw, IntPtr line, int x, int y);
static d_pango_renderer_draw_layout_line pango_renderer_draw_layout_line = FuncLoader.LoadFunction<d_pango_renderer_draw_layout_line>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_layout_line"));
public void DrawLayoutLine(Pango.LayoutLine line, int x, int y) {
pango_renderer_draw_layout_line(Handle, line == null ? IntPtr.Zero : line.Handle, x, y);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_rectangle(IntPtr raw, int part, int x, int y, int width, int height);
static d_pango_renderer_draw_rectangle pango_renderer_draw_rectangle = FuncLoader.LoadFunction<d_pango_renderer_draw_rectangle>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_rectangle"));
public void DrawRectangle(Pango.RenderPart part, int x, int y, int width, int height) {
pango_renderer_draw_rectangle(Handle, (int) part, x, y, width, height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_draw_trapezoid(IntPtr raw, int part, double y1_, double x11, double x21, double y2, double x12, double x22);
static d_pango_renderer_draw_trapezoid pango_renderer_draw_trapezoid = FuncLoader.LoadFunction<d_pango_renderer_draw_trapezoid>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_draw_trapezoid"));
public void DrawTrapezoid(Pango.RenderPart part, double y1_, double x11, double x21, double y2, double x12, double x22) {
pango_renderer_draw_trapezoid(Handle, (int) part, y1_, x11, x21, y2, x12, x22);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate ushort d_pango_renderer_get_alpha(IntPtr raw, int part);
static d_pango_renderer_get_alpha pango_renderer_get_alpha = FuncLoader.LoadFunction<d_pango_renderer_get_alpha>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_get_alpha"));
public ushort GetAlpha(Pango.RenderPart part) {
ushort raw_ret = pango_renderer_get_alpha(Handle, (int) part);
ushort ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_renderer_get_color(IntPtr raw, int part);
static d_pango_renderer_get_color pango_renderer_get_color = FuncLoader.LoadFunction<d_pango_renderer_get_color>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_get_color"));
public Pango.Color GetColor(Pango.RenderPart part) {
IntPtr raw_ret = pango_renderer_get_color(Handle, (int) part);
Pango.Color ret = Pango.Color.New (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_renderer_get_layout(IntPtr raw);
static d_pango_renderer_get_layout pango_renderer_get_layout = FuncLoader.LoadFunction<d_pango_renderer_get_layout>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_get_layout"));
public Pango.Layout Layout {
get {
IntPtr raw_ret = pango_renderer_get_layout(Handle);
Pango.Layout ret = GLib.Object.GetObject(raw_ret) as Pango.Layout;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_renderer_get_layout_line(IntPtr raw);
static d_pango_renderer_get_layout_line pango_renderer_get_layout_line = FuncLoader.LoadFunction<d_pango_renderer_get_layout_line>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_get_layout_line"));
public Pango.LayoutLine LayoutLine {
get {
IntPtr raw_ret = pango_renderer_get_layout_line(Handle);
Pango.LayoutLine ret = raw_ret == IntPtr.Zero ? null : (Pango.LayoutLine) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.LayoutLine), false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_renderer_get_type();
static d_pango_renderer_get_type pango_renderer_get_type = FuncLoader.LoadFunction<d_pango_renderer_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = pango_renderer_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_part_changed(IntPtr raw, int part);
static d_pango_renderer_part_changed pango_renderer_part_changed = FuncLoader.LoadFunction<d_pango_renderer_part_changed>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_part_changed"));
public void PartChanged(Pango.RenderPart part) {
pango_renderer_part_changed(Handle, (int) part);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_set_alpha(IntPtr raw, int part, ushort alpha);
static d_pango_renderer_set_alpha pango_renderer_set_alpha = FuncLoader.LoadFunction<d_pango_renderer_set_alpha>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_set_alpha"));
public void SetAlpha(Pango.RenderPart part, ushort alpha) {
pango_renderer_set_alpha(Handle, (int) part, alpha);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_pango_renderer_set_color(IntPtr raw, int part, IntPtr color);
static d_pango_renderer_set_color pango_renderer_set_color = FuncLoader.LoadFunction<d_pango_renderer_set_color>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_renderer_set_color"));
public void SetColor(Pango.RenderPart part, Pango.Color color) {
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color);
pango_renderer_set_color(Handle, (int) part, native_color);
Marshal.FreeHGlobal (native_color);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("underline"
, GLib.Object.abi_info.Fields
, (uint) sizeof(Pango.Underline) // underline
, null
, "strikethrough"
, (long) Marshal.OffsetOf<PangoRenderer_underlineAlign>("underline")
, 0
),
new GLib.AbiField("strikethrough"
, -1
, (uint) Marshal.SizeOf<bool>() // strikethrough
, "underline"
, "active_count"
, (long) Marshal.OffsetOf<PangoRenderer_strikethroughAlign>("strikethrough")
, 0
),
new GLib.AbiField("active_count"
, -1
, (uint) sizeof( int ) // active_count
, "strikethrough"
, "matrix"
, (long) Marshal.OffsetOf<PangoRenderer_active_countAlign>("active_count")
, 0
),
new GLib.AbiField("matrix"
, -1
, (uint) sizeof( IntPtr ) // matrix
, "active_count"
, "priv"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("priv"
, -1
, (uint) sizeof( IntPtr ) // priv
, "matrix"
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _abi_info;
}
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoRenderer_underlineAlign
{
sbyte f1;
private Pango.Underline underline;
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoRenderer_strikethroughAlign
{
sbyte f1;
private bool strikethrough;
}
[StructLayout(LayoutKind.Sequential)]
public struct PangoRenderer_active_countAlign
{
sbyte f1;
private int active_count;
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RunInfo : GLib.Opaque {
public RunInfo(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,145 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.ScriptGType))]
public enum Script {
InvalidCode = -1,
Common,
Inherited,
Arabic,
Armenian,
Bengali,
Bopomofo,
Cherokee,
Coptic,
Cyrillic,
Deseret,
Devanagari,
Ethiopic,
Georgian,
Gothic,
Greek,
Gujarati,
Gurmukhi,
Han,
Hangul,
Hebrew,
Hiragana,
Kannada,
Katakana,
Khmer,
Lao,
Latin,
Malayalam,
Mongolian,
Myanmar,
Ogham,
OldItalic,
Oriya,
Runic,
Sinhala,
Syriac,
Tamil,
Telugu,
Thaana,
Thai,
Tibetan,
CanadianAboriginal,
Yi,
Tagalog,
Hanunoo,
Buhid,
Tagbanwa,
Braille,
Cypriot,
Limbu,
Osmanya,
Shavian,
LinearB,
TaiLe,
Ugaritic,
NewTaiLue,
Buginese,
Glagolitic,
Tifinagh,
SylotiNagri,
OldPersian,
Kharoshthi,
Unknown,
Balinese,
Cuneiform,
Phoenician,
PhagsPa,
Nko,
KayahLi,
Lepcha,
Rejang,
Sundanese,
Saurashtra,
Cham,
OlChiki,
Vai,
Carian,
Lycian,
Lydian,
Batak,
Brahmi,
Mandaic,
Chakma,
MeroiticCursive,
MeroiticHieroglyphs,
Miao,
Sharada,
SoraSompeng,
Takri,
BassaVah,
CaucasianAlbanian,
Duployan,
Elbasan,
Grantha,
Khojki,
Khudawadi,
LinearA,
Mahajani,
Manichaean,
MendeKikakui,
Modi,
Mro,
Nabataean,
OldNorthArabian,
OldPermic,
PahawhHmong,
Palmyrene,
PauCinHau,
PsalterPahlavi,
Siddham,
Tirhuta,
WarangCiti,
Ahom,
AnatolianHieroglyphs,
Hatran,
Multani,
OldHungarian,
Signwriting,
}
internal class ScriptGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_script_get_type();
static d_pango_script_get_type pango_script_get_type = FuncLoader.LoadFunction<d_pango_script_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_script_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_script_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,36 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.StretchGType))]
public enum Stretch {
UltraCondensed,
ExtraCondensed,
Condensed,
SemiCondensed,
Normal,
SemiExpanded,
Expanded,
ExtraExpanded,
UltraExpanded,
}
internal class StretchGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_stretch_get_type();
static d_pango_stretch_get_type pango_stretch_get_type = FuncLoader.LoadFunction<d_pango_stretch_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_stretch_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_stretch_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,30 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.StyleGType))]
public enum Style {
Normal,
Oblique,
Italic,
}
internal class StyleGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_style_get_type();
static d_pango_style_get_type pango_style_get_type = FuncLoader.LoadFunction<d_pango_style_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_style_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_style_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Tab : GLib.Opaque {
public Tab(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,28 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Pango {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Pango.TabAlignGType))]
public enum TabAlign {
Left,
}
internal class TabAlignGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_pango_tab_align_get_type();
static d_pango_tab_align_get_type pango_tab_align_get_type = FuncLoader.LoadFunction<d_pango_tab_align_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_align_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (pango_tab_align_get_type ());
}
}
}
#endregion
}

Some files were not shown because too many files have changed in this diff Show More