Loading...
Searching...
No Matches
get_t_box.c
Go to the documentation of this file.
#include "driver.h"
#include "driverlib.h"
void COM_Get_text_box(const char *text, double *t, double *b, double *l,
double *r)
{
switch (font_get_type()) {
case GFONT_STROKE:
get_text_ext(text, t, b, l, r);
break;
case GFONT_FREETYPE:
get_text_ext_freetype(text, t, b, l, r);
break;
case GFONT_DRIVER:
if (driver->Text_box)
(*driver->Text_box)(text, t, b, l, r);
break;
}
}
b
double b
Definition driver/set_window.c:5
l
double l
Definition driver/set_window.c:5
t
double t
Definition driver/set_window.c:5
r
double r
Definition driver/set_window.c:5
driver.h
driverlib.h
font_get_type
int font_get_type(void)
Definition font.c:29
get_text_ext_freetype
void get_text_ext_freetype(const char *, double *, double *, double *, double *)
Definition text3.c:269
get_text_ext
void get_text_ext(const char *, double *, double *, double *, double *)
Definition text2.c:90
COM_Get_text_box
void COM_Get_text_box(const char *text, double *t, double *b, double *l, double *r)
Definition get_t_box.c:4
driver
Definition driver.h:27
driver::Text_box
void(* Text_box)(const char *, double *, double *, double *, double *)
Definition driver.h:52