+/* Draw a bar (a filled rectangle) using the current color. */
+
+void __fastcall__ tgi_settextdir (unsigned char dir);
+/* Set the direction for text output. dir is one of the TGI_TEXT_XXX
+** constants.
+*/
+
+void __fastcall__ tgi_settextscale (unsigned width, unsigned height);
+/* Set the scaling for text output. The scaling factors for width and height
+** are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
+*/
+
+void __fastcall__ tgi_settextstyle (unsigned width, unsigned height,
+ unsigned char dir, unsigned char font);
+/* Set the style for text output. The scaling factors for width and height
+** are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
+** dir is one of the TGI_TEXT_XXX constants. font is one of the TGI_FONT_XXX
+** constants.
+*/
+
+unsigned __fastcall__ tgi_gettextwidth (const char* s);
+/* Calculate the width of the text in pixels according to the current text
+** style.
+*/
+
+unsigned __fastcall__ tgi_gettextheight (const char* s);
+/* Calculate the height of the text in pixels according to the current text
+** style.
+*/
+
+void __fastcall__ tgi_outtext (const char* s);
+/* Output text at the current graphics cursor position. The graphics cursor
+** is moved to the end of the text.
+*/
+
+void __fastcall__ tgi_outtextxy (int x, int y, const char* s);
+/* Output text at the given cursor position. The graphics cursor is moved to
+** the end of the text.
+*/
+
+unsigned __fastcall__ tgi_ioctl (unsigned char code, void* data);
+/* Call the driver specific control function. What this function does for
+** a specific code depends on the driver. The driver will set an error
+** for unknown codes or values.
+*/
+
+int __fastcall__ tgi_imulround (int rhs, int lhs);
+/* Helper function for functions using sine/cosine: Multiply two values, one
+** being an 8.8 fixed point one, and return the rounded and scaled result.
+*/