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); }
public DepthNoteTag GetDepthTag(int depth, Pango.Direction direction) { string name = "depth:" + depth + ":" + direction; DepthNoteTag tag = Lookup(name) as DepthNoteTag; if (tag == null) { tag = new DepthNoteTag(depth, direction); tag.Indent = -14; if (direction == Pango.Direction.Rtl) { tag.RightMargin = (depth + 1) * 25; } else { tag.LeftMargin = (depth + 1) * 25; } tag.PixelsBelowLines = 4; tag.Scale = Pango.Scale.Medium; Add(tag); } return(tag); }
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); }
public static GLib.List 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); GLib.List ret = new GLib.List(raw_ret); GLib.Marshaller.Free(native_text); return(ret); }
public DepthNoteTag(int depth, Pango.Direction direction) : base("depth:" + depth + ":" + direction) { this.depth = depth; this.direction = direction; }
public static void InsertionCursor(Gtk.StyleContext context, Cairo.Context cr, double x, double y, Pango.Layout layout, int index, Pango.Direction direction) { gtk_render_insertion_cursor(context == null ? IntPtr.Zero : context.Handle, cr == null ? IntPtr.Zero : cr.Handle, x, y, layout == null ? IntPtr.Zero : layout.Handle, index, (int)direction); }
public DepthNoteTag (int depth, Pango.Direction direction) : base("depth:" + depth + ":" + direction) { this.depth = depth; this.direction = direction; }
public InsertBulletEventArgs (int offset, int depth, Pango.Direction direction) { this.offset = offset; this.depth = depth; this.direction = direction; }
public InsertBulletAction(int offset, int depth, Pango.Direction direction) { this.offset = offset; this.depth = depth; this.direction = direction; }