gtktextdisplay.inc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. { Pointers to basic pascal types, inserted by h2pas conversion program.}
  2. Type
  3. PLongint = ^Longint;
  4. PSmallInt = ^SmallInt;
  5. PByte = ^Byte;
  6. PWord = ^Word;
  7. PDWord = ^DWord;
  8. PDouble = ^Double;
  9. {$PACKRECORDS C}
  10. { gtktextdisplay.c - display layed-out text
  11. Copyright (c) 1992-1994 The Regents of the University of California.
  12. Copyright (c) 1994-1997 Sun Microsystems, Inc.
  13. Copyright (c) 2000 Red Hat, Inc.
  14. Tk->Gtk port by Havoc Pennington
  15. This file can be used under your choice of two licenses, the LGPL
  16. and the original Tk license.
  17. LGPL:
  18. This library is free software; you can redistribute it and/or
  19. modify it under the terms of the GNU Lesser General Public
  20. License as published by the Free Software Foundation; either
  21. version 2 of the License, or (at your option) any later version.
  22. This library is distributed in the hope that it will be useful,
  23. but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25. Lesser General Public License for more details.
  26. You should have received a copy of the GNU Lesser General Public
  27. License along with this library; if not, write to the Free
  28. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  29. Original Tk license:
  30. This software is copyrighted by the Regents of the University of
  31. California, Sun Microsystems, Inc., and other parties. The
  32. following terms apply to all files associated with the software
  33. unless explicitly disclaimed in individual files.
  34. The authors hereby grant permission to use, copy, modify,
  35. distribute, and license this software and its documentation for any
  36. purpose, provided that existing copyright notices are retained in
  37. all copies and that this notice is included verbatim in any
  38. distributions. No written agreement, license, or royalty fee is
  39. required for any of the authorized uses. Modifications to this
  40. software may be copyrighted by their authors and need not follow
  41. the licensing terms described here, provided that the new terms are
  42. clearly indicated on the first page of each file where they apply.
  43. IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY
  44. PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  45. DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION,
  46. OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED
  47. OF THE POSSIBILITY OF SUCH DAMAGE.
  48. THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
  49. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  50. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
  51. NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS,
  52. AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
  53. MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  54. GOVERNMENT USE: If you are acquiring this software on behalf of the
  55. U.S. government, the Government shall have only "Restricted Rights"
  56. in the software and related documentation as defined in the Federal
  57. Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
  58. are acquiring the software on behalf of the Department of Defense,
  59. the software shall be classified as "Commercial Computer Software"
  60. and the Government shall have only "Restricted Rights" as defined
  61. in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the
  62. foregoing, the authors grant the U.S. Government and others acting
  63. in its behalf permission to use and distribute the software in
  64. accordance with the terms specified in this license.
  65. }
  66. {
  67. Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  68. file for a list of people on the GTK+ Team. See the ChangeLog
  69. files for a list of changes. These files are distributed with
  70. GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  71. }
  72. {$ifndef GTK_TEXT_DISPLAY_H}
  73. {$define GTK_TEXT_DISPLAY_H}
  74. {$include gtktextlayout.inc}
  75. { C++ extern C conditionnal removed }
  76. { __cplusplus }
  77. { A semi-public header intended for use by code that also
  78. uses GtkTextLayout
  79. }
  80. { The drawable should be pre-initialized to your preferred background.
  81. widget - Widget to grab some style info from
  82. drawable - Drawable to render to
  83. cursor_gc - Graphics context to use for cursor
  84. x_offset/y_offset - Position of the drawable in layout coordinates
  85. x/y/width/height - Region of the layout to render. x,y must be inside
  86. the drawable.
  87. widgets - list of widgets that need exposing
  88. }
  89. procedure gtk_text_layout_draw(layout:PGtkTextLayout; widget:PGtkWidget; drawable:PGdkDrawable; cursor_gc:PGdkGC; x_offset:gint;
  90. y_offset:gint; x:gint; y:gint; width:gint; height:gint;
  91. widgets:PPGList); cdecl; external gtklib;
  92. { C++ end of extern C conditionnal removed }
  93. { __cplusplus }
  94. {$endif}
  95. { GTK_TEXT_DISPLAY_H }