mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
637a466d5c
Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com> * docs/Changes-1.4.txt: Started * gtk/Makefile.am (gdk_headers): Include all the new headers. * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces. * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private into C file. * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput header to gdkinputprivate.h. * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been unused since before 1.2.
91 lines
2.6 KiB
C
91 lines
2.6 KiB
C
#ifndef __GDK_FONT_H__
|
|
#define __GDK_FONT_H__
|
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* Types of font.
|
|
* GDK_FONT_FONT: the font is an XFontStruct.
|
|
* GDK_FONT_FONTSET: the font is an XFontSet used for I18N.
|
|
*/
|
|
typedef enum
|
|
{
|
|
GDK_FONT_FONT,
|
|
GDK_FONT_FONTSET
|
|
} GdkFontType;
|
|
|
|
struct _GdkFont
|
|
{
|
|
GdkFontType type;
|
|
gint ascent;
|
|
gint descent;
|
|
};
|
|
|
|
GdkFont* gdk_font_load (const gchar *font_name);
|
|
GdkFont* gdk_fontset_load (gchar *fontset_name);
|
|
GdkFont* gdk_font_ref (GdkFont *font);
|
|
void gdk_font_unref (GdkFont *font);
|
|
gint gdk_font_id (const GdkFont *font);
|
|
gint gdk_font_equal (const GdkFont *fonta,
|
|
const GdkFont *fontb);
|
|
|
|
gint gdk_string_width (GdkFont *font,
|
|
const gchar *string);
|
|
gint gdk_text_width (GdkFont *font,
|
|
const gchar *text,
|
|
gint text_length);
|
|
gint gdk_text_width_wc (GdkFont *font,
|
|
const GdkWChar *text,
|
|
gint text_length);
|
|
gint gdk_char_width (GdkFont *font,
|
|
gchar character);
|
|
gint gdk_char_width_wc (GdkFont *font,
|
|
GdkWChar character);
|
|
gint gdk_string_measure (GdkFont *font,
|
|
const gchar *string);
|
|
gint gdk_text_measure (GdkFont *font,
|
|
const gchar *text,
|
|
gint text_length);
|
|
gint gdk_char_measure (GdkFont *font,
|
|
gchar character);
|
|
gint gdk_string_height (GdkFont *font,
|
|
const gchar *string);
|
|
gint gdk_text_height (GdkFont *font,
|
|
const gchar *text,
|
|
gint text_length);
|
|
gint gdk_char_height (GdkFont *font,
|
|
gchar character);
|
|
|
|
void gdk_text_extents (GdkFont *font,
|
|
const gchar *text,
|
|
gint text_length,
|
|
gint *lbearing,
|
|
gint *rbearing,
|
|
gint *width,
|
|
gint *ascent,
|
|
gint *descent);
|
|
void gdk_text_extents_wc (GdkFont *font,
|
|
const GdkWChar *text,
|
|
gint text_length,
|
|
gint *lbearing,
|
|
gint *rbearing,
|
|
gint *width,
|
|
gint *ascent,
|
|
gint *descent);
|
|
void gdk_string_extents (GdkFont *font,
|
|
const gchar *string,
|
|
gint *lbearing,
|
|
gint *rbearing,
|
|
gint *width,
|
|
gint *ascent,
|
|
gint *descent);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GDK_FONT_H__ */
|