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); }
public bool IncludesScript(Pango.Script script) { bool raw_ret = pango_language_includes_script(Handle, (int)script); bool ret = raw_ret; return(ret); }
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); }
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); }
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); }
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); }
public void GetRange(out int start, out int len, out Pango.Script script) { IntPtr start_ptr; IntPtr end_ptr; pango_script_iter_get_range(Handle, out start_ptr, out end_ptr, out script); start = (int)g_utf8_pointer_to_offset(native_text, start_ptr); len = (int)g_utf8_pointer_to_offset(start_ptr, end_ptr); }
static extern void pango_script_iter_get_range(IntPtr raw, out IntPtr start, out IntPtr end, out Pango.Script script);