summaryrefslogtreecommitdiff
path: root/pango/pango-line-breaker.h
blob: fb38318ee6d52f663e5b18f96039d16ed65e0928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once

#include <glib-object.h>
#include <pango/pango-types.h>
#include <pango/pango-break.h>
#include <pango/pango-layout.h>
#include <pango/pango-layout-line.h>

G_BEGIN_DECLS

#define PANGO_TYPE_LINE_BREAKER pango_line_breaker_get_type ()

PANGO_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (PangoLineBreaker, pango_line_breaker, PANGO, LINE_BREAKER, GObject);

PANGO_AVAILABLE_IN_ALL
PangoLineBreaker *      pango_line_breaker_new          (PangoContext          *context);

PANGO_AVAILABLE_IN_ALL
PangoContext *          pango_line_breaker_get_context  (PangoLineBreaker      *self);

PANGO_AVAILABLE_IN_ALL
void                    pango_line_breaker_set_tabs     (PangoLineBreaker      *self,
                                                         PangoTabArray         *tabs);
PANGO_AVAILABLE_IN_ALL
PangoTabArray *         pango_line_breaker_get_tabs     (PangoLineBreaker      *self);

PANGO_AVAILABLE_IN_ALL
void                    pango_line_breaker_set_base_dir (PangoLineBreaker      *self,
                                                         PangoDirection         direction);
PANGO_AVAILABLE_IN_ALL
PangoDirection          pango_line_breaker_get_base_dir (PangoLineBreaker      *self);

PANGO_AVAILABLE_IN_ALL
void                    pango_line_breaker_add_text     (PangoLineBreaker      *self,
                                                         const char            *text,
                                                         int                    length,
                                                         PangoAttrList         *attrs);

PANGO_AVAILABLE_IN_ALL
PangoDirection          pango_line_breaker_get_direction (PangoLineBreaker      *self);

PANGO_AVAILABLE_IN_ALL
gboolean                pango_line_breaker_done         (PangoLineBreaker      *self);

PANGO_AVAILABLE_IN_ALL
PangoLayoutLine *       pango_line_breaker_next_line    (PangoLineBreaker      *self,
                                                         int                    x,
                                                         int                    width,
                                                         PangoWrapMode          wrap,
                                                         PangoEllipsizeMode     ellipsize);

PANGO_AVAILABLE_IN_ALL
gboolean                pango_line_breaker_undo_line    (PangoLineBreaker      *self,
                                                         PangoLayoutLine       *line);

G_END_DECLS