Files
KioskApp/GtkSharp/Source/Libs/PangoSharp/Generated/Pango/Context.cs

272 lines
12 KiB
C#
Raw Normal View History

2024-09-15 22:40:48 +02:00
// 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
}
}