1/* gtktextchildprivate.h - child pixmaps and widgets
2 *
3 * Copyright (c) 1994 The Regents of the University of California.
4 * Copyright (c) 1994-1997 Sun Microsystems, Inc.
5 * Copyright (c) 2000 Red Hat, Inc.
6 * Tk -> Gtk port by Havoc Pennington <hp@redhat.com>
7 *
8 * This software is copyrighted by the Regents of the University of
9 * California, Sun Microsystems, Inc., and other parties. The
10 * following terms apply to all files associated with the software
11 * unless explicitly disclaimed in individual files.
12 *
13 * The authors hereby grant permission to use, copy, modify,
14 * distribute, and license this software and its documentation for any
15 * purpose, provided that existing copyright notices are retained in
16 * all copies and that this notice is included verbatim in any
17 * distributions. No written agreement, license, or royalty fee is
18 * required for any of the authorized uses. Modifications to this
19 * software may be copyrighted by their authors and need not follow
20 * the licensing terms described here, provided that the new terms are
21 * clearly indicated on the first page of each file where they apply.
22 *
23 * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY
24 * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
25 * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION,
26 * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED
27 * OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
30 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
31 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
32 * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS,
33 * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
34 * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
35 *
36 * GOVERNMENT USE: If you are acquiring this software on behalf of the
37 * U.S. government, the Government shall have only "Restricted Rights"
38 * in the software and related documentation as defined in the Federal
39 * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
40 * are acquiring the software on behalf of the Department of Defense,
41 * the software shall be classified as "Commercial Computer Software"
42 * and the Government shall have only "Restricted Rights" as defined
43 * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the
44 * foregoing, the authors grant the U.S. Government and others acting
45 * in its behalf permission to use and distribute the software in
46 * accordance with the terms specified in this license.
47 *
48 */
49
50#ifndef __GTK_TEXT_CHILD_PRIVATE_H__
51#define __GTK_TEXT_CHILD_PRIVATE_H__
52
53#include <gtk/gtktexttypes.h>
54
55G_BEGIN_DECLS
56
57typedef struct _GtkTextPaintable GtkTextPaintable;
58
59struct _GtkTextPaintable
60{
61 GdkPaintable *paintable;
62 GtkTextBTree *tree;
63 GtkTextLine *line;
64};
65
66GtkTextLineSegment *_gtk_paintable_segment_new (GdkPaintable *paintable);
67
68typedef struct _GtkTextChildBody GtkTextChildBody;
69
70struct _GtkTextChildBody
71{
72 GtkTextChildAnchor *obj;
73 GSList *widgets;
74 GtkTextBTree *tree;
75 GtkTextLine *line;
76};
77
78GtkTextLineSegment *_gtk_widget_segment_new (GtkTextChildAnchor *anchor);
79void _gtk_widget_segment_add (GtkTextLineSegment *widget_segment,
80 GtkWidget *child);
81void _gtk_widget_segment_remove (GtkTextLineSegment *widget_segment,
82 GtkWidget *child);
83void _gtk_widget_segment_ref (GtkTextLineSegment *widget_segment);
84void _gtk_widget_segment_unref (GtkTextLineSegment *widget_segment);
85
86GtkTextLayout* _gtk_anchored_child_get_layout (GtkWidget *child);
87
88const char * gtk_text_child_anchor_get_replacement (GtkTextChildAnchor *anchor);
89
90G_END_DECLS
91
92#endif
93

source code of gtk/gtk/gtktextchildprivate.h