This file is indexed.

/usr/include/libaosd/aosd-text.h is in libaosd-dev 0.2.7-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* aosd -- OSD with transparency, cairo, and pango.
 *
 * Copyright (C) 2007,2010 Eugene Paskevich <eugene@raptor.kiev.ua>
 */

#ifndef __AOSD_TEXT_H__
#define __AOSD_TEXT_H__

#include <aosd.h>

#include "pango/pangocairo.h"

#ifdef __cplusplus
extern "C"
{
#endif

// Tiny Pango API augmentation
// Way more convenient for aosd.
PangoLayout* pango_layout_new_aosd(void);
void pango_layout_unref_aosd(PangoLayout* lay);

void pango_layout_get_size_aosd(PangoLayout* lay,
    unsigned* width, unsigned* height, int* lbearing);

// Converts all \n occurrences into U+2028 symbol
void pango_layout_set_text_aosd(PangoLayout* lay, const char* text);
void pango_layout_set_attr_aosd(PangoLayout* lay, PangoAttribute* attr);
void pango_layout_set_font_aosd(PangoLayout* lay, const char* font_desc);

typedef struct
{
  PangoLayout* lay;

  int lbearing;

  struct
  {
    guint8 x_offset;
    guint8 y_offset;
  } geom;

  struct
  {
    const char* color;
    guint8 opacity;
  } back;

  struct
  {
    const char* color;
    guint8 opacity;
    gint8 x_offset;
    gint8 y_offset;
  } shadow;

  struct
  {
    const char* color;
    guint8 opacity;
  } fore;
} TextRenderData;

void aosd_text_renderer(cairo_t* cr, void* TextRenderData_ptr);
void aosd_text_get_size(TextRenderData* trd, unsigned* width, unsigned* height);
int aosd_text_get_screen_wrap_width(Aosd* aosd, TextRenderData* trd);

#ifdef __cplusplus
}
#endif

#endif /* __AOSD_TEXT_H__ */

/* vim: set ts=2 sw=2 et : */