You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
2.6 KiB

  1. /* Pango
  2. * pango-tabs.h: Tab-related stuff
  3. *
  4. * Copyright (C) 2000 Red Hat Software
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. * Boston, MA 02111-1307, USA.
  20. */
  21. #ifndef __PANGO_TABS_H__
  22. #define __PANGO_TABS_H__
  23. #include <pango/pango-types.h>
  24. G_BEGIN_DECLS
  25. typedef struct _PangoTabArray PangoTabArray;
  26. typedef enum
  27. {
  28. PANGO_TAB_LEFT
  29. /* These are not supported now, but may be in the
  30. * future.
  31. *
  32. * PANGO_TAB_RIGHT,
  33. * PANGO_TAB_CENTER,
  34. * PANGO_TAB_NUMERIC
  35. */
  36. } PangoTabAlign;
  37. #define PANGO_TYPE_TAB_ARRAY (pango_tab_array_get_type ())
  38. PangoTabArray *pango_tab_array_new (gint initial_size,
  39. gboolean positions_in_pixels);
  40. PangoTabArray *pango_tab_array_new_with_positions (gint size,
  41. gboolean positions_in_pixels,
  42. PangoTabAlign first_alignment,
  43. gint first_position,
  44. ...);
  45. GType pango_tab_array_get_type (void) G_GNUC_CONST;
  46. PangoTabArray *pango_tab_array_copy (PangoTabArray *src);
  47. void pango_tab_array_free (PangoTabArray *tab_array);
  48. gint pango_tab_array_get_size (PangoTabArray *tab_array);
  49. void pango_tab_array_resize (PangoTabArray *tab_array,
  50. gint new_size);
  51. void pango_tab_array_set_tab (PangoTabArray *tab_array,
  52. gint tab_index,
  53. PangoTabAlign alignment,
  54. gint location);
  55. void pango_tab_array_get_tab (PangoTabArray *tab_array,
  56. gint tab_index,
  57. PangoTabAlign *alignment,
  58. gint *location);
  59. void pango_tab_array_get_tabs (PangoTabArray *tab_array,
  60. PangoTabAlign **alignments,
  61. gint **locations);
  62. gboolean pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array);
  63. G_END_DECLS
  64. #endif /* __PANGO_TABS_H__ */