Fix for the problem that SDL applications exited
[AROS-Contrib.git] / Games / lbreakout2 / client / hint.h
blob91f4a0cb4f91648e07ffd2615f627c6021cd9b88
1 /***************************************************************************
2 hint.h - description
3 -------------------
4 begin : Sun Jan 6 2002
5 copyright : (C) 2001 by Michael Speck
6 email : kulkanie@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef __HINT_H
19 #define __HINT_H
21 typedef struct {
22 Text *text; /* contents */
23 int peek_x, peek_y;
24 /* screen geometry -- computed when displaying hint */
25 SDL_Rect rect;
26 } Hint;
29 ====================================================================
30 Load/delete hint resources.
31 ====================================================================
33 void hint_load_res();
34 void hint_delete_res();
37 ====================================================================
38 Create a hint. The passed x,y position is where the end of the
39 Sprechblasenspitze is. Contents is converted to lines (duplicated).
40 ====================================================================
42 Hint* hint_create( int x, int y, char *contents );
43 void hint_delete( Hint *hint );
46 ====================================================================
47 Set the background on which the hints will be displayed.
48 ====================================================================
50 void hint_set_bkgnd( SDL_Surface *bkgnd );
53 ====================================================================
54 Set this hint as actual one. If NULL was passed no hint will be
55 handled.
56 ====================================================================
58 void hint_set( Hint *hint );
61 ====================================================================
62 Set hint to this position.
63 ====================================================================
65 void hint_set_pos( Hint *hint, int x, int y );
68 ====================================================================
69 Update the contents of a hint.
70 ====================================================================
72 void hint_set_contents( Hint *hint, char *contents );
75 ====================================================================
76 Show/hide/update _current_ hint.
77 ====================================================================
79 void hint_hide();
80 void hint_show();
81 void hint_update( int ms );
83 #endif