summaryrefslogtreecommitdiff
path: root/src/Xutf8.h
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/Xutf8.h
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'src/Xutf8.h')
-rw-r--r--src/Xutf8.h117
1 files changed, 56 insertions, 61 deletions
diff --git a/src/Xutf8.h b/src/Xutf8.h
index 050226500..207c879b6 100644
--- a/src/Xutf8.h
+++ b/src/Xutf8.h
@@ -1,5 +1,4 @@
-/* "$Id$"
- *
+/*
* Author: Jean-Marc Lienher ( http://oksid.ch )
* Copyright 2000-2010 by O'ksi'D.
*
@@ -7,11 +6,11 @@
* the file "COPYING" which should have been included with this file. If this
* file is missing or damaged, see the license at:
*
- * http://www.fltk.org/COPYING.php
+ * https://www.fltk.org/COPYING.php
*
- * Please report all bugs and problems on the following page:
+ * Please see the following page on how to report bugs and issues:
*
- * http://www.fltk.org/str.php
+ * https://www.fltk.org/bugs.php
*/
#if ! ( defined(_Xutf8_h) || defined(FL_DOXYGEN) )
@@ -28,55 +27,55 @@ extern "C" {
#include <FL/Fl_Export.H>
typedef struct {
- int nb_font;
- char **font_name_list;
- int *encodings;
- XFontStruct **fonts;
- Font fid;
- int ascent;
- int descent;
- int *ranges;
+ int nb_font;
+ char **font_name_list;
+ int *encodings;
+ XFontStruct **fonts;
+ Font fid;
+ int ascent;
+ int descent;
+ int *ranges;
} XUtf8FontStruct;
XUtf8FontStruct *
XCreateUtf8FontStruct (
- Display *dpy,
- const char *base_font_name_list);
+ Display *dpy,
+ const char *base_font_name_list);
void
XUtf8DrawString(
- Display *display,
- Drawable d,
+ Display *display,
+ Drawable d,
XUtf8FontStruct *font_set,
- GC gc,
- int x,
- int y,
- const char *string,
- int num_bytes);
+ GC gc,
+ int x,
+ int y,
+ const char *string,
+ int num_bytes);
void
XUtf8_measure_extents(
- Display *display,
- Drawable d,
+ Display *display,
+ Drawable d,
XUtf8FontStruct *font_set,
- GC gc,
- int *xx,
- int *yy,
- int *ww,
- int *hh,
- const char *string,
- int num_bytes);
+ GC gc,
+ int *xx,
+ int *yy,
+ int *ww,
+ int *hh,
+ const char *string,
+ int num_bytes);
void
XUtf8DrawRtlString(
- Display *display,
- Drawable d,
+ Display *display,
+ Drawable d,
XUtf8FontStruct *font_set,
- GC gc,
- int x,
- int y,
- const char *string,
- int num_bytes);
+ GC gc,
+ int x,
+ int y,
+ const char *string,
+ int num_bytes);
void
XUtf8DrawImageString(
@@ -92,12 +91,12 @@ XUtf8DrawImageString(
int
XUtf8TextWidth(
XUtf8FontStruct *font_set,
- const char *string,
- int num_bytes);
+ const char *string,
+ int num_bytes);
int
XUtf8UcsWidth(
- XUtf8FontStruct *font_set,
- unsigned int ucs);
+ XUtf8FontStruct *font_set,
+ unsigned int ucs);
FL_EXPORT int
fl_XGetUtf8FontAndGlyph(
@@ -108,40 +107,40 @@ fl_XGetUtf8FontAndGlyph(
void
XFreeUtf8FontStruct(
- Display *dpy,
- XUtf8FontStruct *font_set);
+ Display *dpy,
+ XUtf8FontStruct *font_set);
int
XConvertUtf8ToUcs(
- const unsigned char *buf,
- int len,
- unsigned int *ucs);
+ const unsigned char *buf,
+ int len,
+ unsigned int *ucs);
int
XConvertUcsToUtf8(
- unsigned int ucs,
- char *buf);
+ unsigned int ucs,
+ char *buf);
int
XUtf8CharByteLen(
- const unsigned char *buf,
- int len);
+ const unsigned char *buf,
+ int len);
int
XCountUtf8Char(
- const unsigned char *buf,
- int len);
+ const unsigned char *buf,
+ int len);
int
XFastConvertUtf8ToUcs(
- const unsigned char *buf,
- int len,
- unsigned int *ucs);
+ const unsigned char *buf,
+ int len,
+ unsigned int *ucs);
long
XKeysymToUcs(
- KeySym keysym);
+ KeySym keysym);
#ifdef X_HAVE_UTF8_STRING
#define XUtf8LookupString Xutf8LookupString
@@ -161,7 +160,3 @@ XUtf8LookupString(
# endif
#endif
-
-/*
- * End of "$Id$".
- */