153 lines
5.5 KiB
C#
153 lines
5.5 KiB
C#
// 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 TabArray : GLib.Opaque {
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate IntPtr d_pango_tab_array_copy(IntPtr raw);
|
|
static d_pango_tab_array_copy pango_tab_array_copy = FuncLoader.LoadFunction<d_pango_tab_array_copy>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_copy"));
|
|
|
|
public Pango.TabArray Copy() {
|
|
IntPtr raw_ret = pango_tab_array_copy(Handle);
|
|
Pango.TabArray ret = raw_ret == IntPtr.Zero ? null : (Pango.TabArray) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.TabArray), true);
|
|
return ret;
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate bool d_pango_tab_array_get_positions_in_pixels(IntPtr raw);
|
|
static d_pango_tab_array_get_positions_in_pixels pango_tab_array_get_positions_in_pixels = FuncLoader.LoadFunction<d_pango_tab_array_get_positions_in_pixels>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_get_positions_in_pixels"));
|
|
|
|
public bool PositionsInPixels {
|
|
get {
|
|
bool raw_ret = pango_tab_array_get_positions_in_pixels(Handle);
|
|
bool ret = raw_ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate int d_pango_tab_array_get_size(IntPtr raw);
|
|
static d_pango_tab_array_get_size pango_tab_array_get_size = FuncLoader.LoadFunction<d_pango_tab_array_get_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_get_size"));
|
|
|
|
public int Size {
|
|
get {
|
|
int raw_ret = pango_tab_array_get_size(Handle);
|
|
int ret = raw_ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void d_pango_tab_array_get_tab(IntPtr raw, int tab_index, out int alignment, out int location);
|
|
static d_pango_tab_array_get_tab pango_tab_array_get_tab = FuncLoader.LoadFunction<d_pango_tab_array_get_tab>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_get_tab"));
|
|
|
|
public void GetTab(int tab_index, out Pango.TabAlign alignment, out int location) {
|
|
int native_alignment;
|
|
pango_tab_array_get_tab(Handle, tab_index, out native_alignment, out location);
|
|
alignment = (Pango.TabAlign) native_alignment;
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate IntPtr d_pango_tab_array_get_type();
|
|
static d_pango_tab_array_get_type pango_tab_array_get_type = FuncLoader.LoadFunction<d_pango_tab_array_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_get_type"));
|
|
|
|
public static GLib.GType GType {
|
|
get {
|
|
IntPtr raw_ret = pango_tab_array_get_type();
|
|
GLib.GType ret = new GLib.GType(raw_ret);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void d_pango_tab_array_resize(IntPtr raw, int new_size);
|
|
static d_pango_tab_array_resize pango_tab_array_resize = FuncLoader.LoadFunction<d_pango_tab_array_resize>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_resize"));
|
|
|
|
public void Resize(int new_size) {
|
|
pango_tab_array_resize(Handle, new_size);
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void d_pango_tab_array_set_tab(IntPtr raw, int tab_index, int alignment, int location);
|
|
static d_pango_tab_array_set_tab pango_tab_array_set_tab = FuncLoader.LoadFunction<d_pango_tab_array_set_tab>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_set_tab"));
|
|
|
|
public void SetTab(int tab_index, Pango.TabAlign alignment, int location) {
|
|
pango_tab_array_set_tab(Handle, tab_index, (int) alignment, location);
|
|
}
|
|
|
|
public TabArray(IntPtr raw) : base(raw) {}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate IntPtr d_pango_tab_array_new(int initial_size, bool positions_in_pixels);
|
|
static d_pango_tab_array_new pango_tab_array_new = FuncLoader.LoadFunction<d_pango_tab_array_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_new"));
|
|
|
|
public TabArray (int initial_size, bool positions_in_pixels)
|
|
{
|
|
Raw = pango_tab_array_new(initial_size, positions_in_pixels);
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void d_pango_tab_array_free(IntPtr raw);
|
|
static d_pango_tab_array_free pango_tab_array_free = FuncLoader.LoadFunction<d_pango_tab_array_free>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Pango), "pango_tab_array_free"));
|
|
|
|
protected override void Free (IntPtr raw)
|
|
{
|
|
pango_tab_array_free (raw);
|
|
}
|
|
|
|
[Obsolete("Pango.TabArray 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_tab_array_free (handle);
|
|
GLib.Timeout.Remove(timeoutHandlerId);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
~TabArray ()
|
|
{
|
|
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
|
|
}
|
|
}
|