Atrinik Client 2.5
Functions | Variables
toolkit/tooltip.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

void tooltip_create (int mx, int my, int font, const char *text)
void tooltip_show ()

Variables

static char tooltip_text [HUGE_BUF]
static int tooltip_font
static int tooltip_x = -1
static int tooltip_y = -1

Detailed Description

Tooltip API.

Definition in file tooltip.c.


Function Documentation

void tooltip_create ( int  mx,
int  my,
int  font,
const char *  text 
)

Creates a new tooltip. This must be called every frame in order for the tooltip to remain shown.

Parameters:
mxMouse X.
myMouse Y.
fontFont to use, one of FONT_xxx.
textThe text to show in the tooltip.

Definition at line 48 of file tooltip.c.

void tooltip_show ( )

Actually show the tooltip.

Definition at line 59 of file tooltip.c.


Variable Documentation

int tooltip_font [static]

Font of the tooltip text.

Definition at line 35 of file tooltip.c.

char tooltip_text[HUGE_BUF] [static]

Tooltip's text.

Definition at line 33 of file tooltip.c.

int tooltip_x = -1 [static]

Tooltip's X position.

Definition at line 37 of file tooltip.c.

int tooltip_y = -1 [static]

Tooltip's Y position.

Definition at line 39 of file tooltip.c.