|
Packit Service |
fb6fa5 |
/* gtktextdisplay.c - display layed-out text
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* Copyright (c) 1992-1994 The Regents of the University of California.
|
|
Packit Service |
fb6fa5 |
* Copyright (c) 1994-1997 Sun Microsystems, Inc.
|
|
Packit Service |
fb6fa5 |
* Copyright (c) 2000 Red Hat, Inc.
|
|
Packit Service |
fb6fa5 |
* Tk->Gtk port by Havoc Pennington
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This file can be used under your choice of two licenses, the LGPL
|
|
Packit Service |
fb6fa5 |
* and the original Tk license.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* LGPL:
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
fb6fa5 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
fb6fa5 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
fb6fa5 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fb6fa5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
fb6fa5 |
* Lesser General Public License for more details.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License along with this library; if not, write to the Free
|
|
Packit Service |
fb6fa5 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* Original Tk license:
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This software is copyrighted by the Regents of the University of
|
|
Packit Service |
fb6fa5 |
* California, Sun Microsystems, Inc., and other parties. The
|
|
Packit Service |
fb6fa5 |
* following terms apply to all files associated with the software
|
|
Packit Service |
fb6fa5 |
* unless explicitly disclaimed in individual files.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* The authors hereby grant permission to use, copy, modify,
|
|
Packit Service |
fb6fa5 |
* distribute, and license this software and its documentation for any
|
|
Packit Service |
fb6fa5 |
* purpose, provided that existing copyright notices are retained in
|
|
Packit Service |
fb6fa5 |
* all copies and that this notice is included verbatim in any
|
|
Packit Service |
fb6fa5 |
* distributions. No written agreement, license, or royalty fee is
|
|
Packit Service |
fb6fa5 |
* required for any of the authorized uses. Modifications to this
|
|
Packit Service |
fb6fa5 |
* software may be copyrighted by their authors and need not follow
|
|
Packit Service |
fb6fa5 |
* the licensing terms described here, provided that the new terms are
|
|
Packit Service |
fb6fa5 |
* clearly indicated on the first page of each file where they apply.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY
|
|
Packit Service |
fb6fa5 |
* PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
|
|
Packit Service |
fb6fa5 |
* DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION,
|
|
Packit Service |
fb6fa5 |
* OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED
|
|
Packit Service |
fb6fa5 |
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
|
|
Packit Service |
fb6fa5 |
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
Packit Service |
fb6fa5 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
|
|
Packit Service |
fb6fa5 |
* NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS,
|
|
Packit Service |
fb6fa5 |
* AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
|
|
Packit Service |
fb6fa5 |
* MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* GOVERNMENT USE: If you are acquiring this software on behalf of the
|
|
Packit Service |
fb6fa5 |
* U.S. government, the Government shall have only "Restricted Rights"
|
|
Packit Service |
fb6fa5 |
* in the software and related documentation as defined in the Federal
|
|
Packit Service |
fb6fa5 |
* Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
|
|
Packit Service |
fb6fa5 |
* are acquiring the software on behalf of the Department of Defense,
|
|
Packit Service |
fb6fa5 |
* the software shall be classified as "Commercial Computer Software"
|
|
Packit Service |
fb6fa5 |
* and the Government shall have only "Restricted Rights" as defined
|
|
Packit Service |
fb6fa5 |
* in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the
|
|
Packit Service |
fb6fa5 |
* foregoing, the authors grant the U.S. Government and others acting
|
|
Packit Service |
fb6fa5 |
* in its behalf permission to use and distribute the software in
|
|
Packit Service |
fb6fa5 |
* accordance with the terms specified in this license.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
/*
|
|
Packit Service |
fb6fa5 |
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
Packit Service |
fb6fa5 |
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
Packit Service |
fb6fa5 |
* files for a list of changes. These files are distributed with
|
|
Packit Service |
fb6fa5 |
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifndef __GTK_TEXT_DISPLAY_H__
|
|
Packit Service |
fb6fa5 |
#define __GTK_TEXT_DISPLAY_H__
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtktextlayout.h>
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_BEGIN_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* A semi-public header intended for use by code that also
|
|
Packit Service |
fb6fa5 |
* uses GtkTextLayout
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* The drawable should be pre-initialized to your preferred background.
|
|
Packit Service |
fb6fa5 |
* widget - Widget to grab some style info from
|
|
Packit Service |
fb6fa5 |
* drawable - Drawable to render to
|
|
Packit Service |
fb6fa5 |
* cursor_gc - Graphics context to use for cursor
|
|
Packit Service |
fb6fa5 |
* x_offset/y_offset - Position of the drawable in layout coordinates
|
|
Packit Service |
fb6fa5 |
* x/y/width/height - Region of the layout to render. x,y must be inside
|
|
Packit Service |
fb6fa5 |
* the drawable.
|
|
Packit Service |
fb6fa5 |
* widgets - list of widgets that need exposing
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
void gtk_text_layout_draw (GtkTextLayout *layout,
|
|
Packit Service |
fb6fa5 |
GtkWidget *widget,
|
|
Packit Service |
fb6fa5 |
GdkDrawable *drawable,
|
|
Packit Service |
fb6fa5 |
GdkGC *cursor_gc,
|
|
Packit Service |
fb6fa5 |
gint x_offset,
|
|
Packit Service |
fb6fa5 |
gint y_offset,
|
|
Packit Service |
fb6fa5 |
gint x,
|
|
Packit Service |
fb6fa5 |
gint y,
|
|
Packit Service |
fb6fa5 |
gint width,
|
|
Packit Service |
fb6fa5 |
gint height,
|
|
Packit Service |
fb6fa5 |
GList **widgets);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_END_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#endif /* __GTK_TEXT_DISPLAY_H__ */
|