Exemple #1
0
 public void GetTabs(out TabAlign[] alignments, out int[] locations)
 {
     int sz = Size;
     IntPtr align_ptr, loc_ptr;
     alignments = new TabAlign [sz];
     locations = new int [sz];
     int[] tmp = new int [sz];
     if (sz == 0)
         return;
     pango_tab_array_get_tabs (Handle, out align_ptr, out loc_ptr);
     Marshal.Copy (loc_ptr, locations, 0, sz);
     Marshal.Copy (align_ptr, tmp, 0, sz);
     for (int i = 0; i < sz; i++)
         alignments [i] = (TabAlign) tmp [i];
     g_free (align_ptr);
     g_free (loc_ptr);
 }
Exemple #2
0
        public void GetTabs(out TabAlign[] alignments, out int[] locations)
        {
            int    sz = Size;
            IntPtr align_ptr, loc_ptr;

            alignments = new TabAlign [sz];
            locations  = new int [sz];
            int[] tmp = new int [sz];
            if (sz == 0)
            {
                return;
            }
            pango_tab_array_get_tabs(Handle, out align_ptr, out loc_ptr);
            Marshal.Copy(loc_ptr, locations, 0, sz);
            Marshal.Copy(align_ptr, tmp, 0, sz);
            for (int i = 0; i < sz; i++)
            {
                alignments [i] = (TabAlign)tmp [i];
            }
            GLib.Marshaller.Free(align_ptr);
            GLib.Marshaller.Free(loc_ptr);
        }
Exemple #3
0
 public void SetTab(int index, TabAlign align = TabAlign.Left, double width = 1)
 {
 }
Exemple #4
0
 /// <summary>
 /// The alignment of the Tabs (defaults to 'Left'). Other option includes 'Right'. Note that tab scrolling is only supported for TabAlign='Left'. Note that when 'Right', the Tabs will be rendered in reverse order.
 /// </summary>
 public virtual TBuilder TabAlign(TabAlign tabAlign)
 {
     this.ToComponent().TabAlign = tabAlign;
     return(this as TBuilder);
 }
Exemple #5
0
 public Tab(TabAlign pAlign, int pPosition)
 {
     _align    = pAlign;
     _position = pPosition;
 }
Exemple #6
0
 /// <summary>
 ///   Configures the Align and position of the tabs ('\t'). Position is pretty much the size of EACH tab or each '\t'.
 /// </summary>
 /// <param name = "tabAlign">Right or Left according to the Enum @TabAlign</param>
 /// <param name = "position">Kind of size of EACH tab or each '\t'</param>
 /// <returns>The fluent actual paragraph</returns>
 public Paragraph AddTab(TabAlign tabAlign, int position)
 {
     _tabs.Add(new Tab(tabAlign, position));
     return(this);
 }