xref: /haiku/src/apps/launchbox/support.h (revision 1294543de9ac0eff000eaea1b18368c36435d08e)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef SUPPORT_H
10 #define SUPPORT_H
11 
12 #include <GraphicsDefs.h>
13 #include <Rect.h>
14 
15 class BMessage;
16 class BView;
17 class BWindow;
18 
19 status_t load_settings(BMessage* message, const char* fileName,
20 					   const char* folder = NULL);
21 
22 status_t save_settings(BMessage* message, const char* fileName,
23 					   const char* folder = NULL);
24 
25 // looper of view must be locked!
26 void stroke_frame(BView* view, BRect frame,
27 				  rgb_color left, rgb_color top,
28 				  rgb_color right, rgb_color bottom);
29 
30 bool make_sure_frame_is_on_screen(BRect& frame, BWindow* window = NULL);
31 
32 #endif // SUPPORT_H
33