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_UI_H
10#define SUPPORT_UI_H
11
12#include <GraphicsDefs.h>
13#include <Rect.h>
14#include <agg_math_stroke.h>
15
16class BBitmap;
17class BDataIO;
18class BMessage;
19class BPositionIO;
20class BString;
21class BView;
22class BWindow;
23
24// looper of view must be locked!
25void stroke_frame(BView* view, BRect frame,
26				  rgb_color left, rgb_color top,
27				  rgb_color right, rgb_color bottom);
28
29
30status_t store_color_in_message(BMessage* message, rgb_color color);
31
32status_t restore_color_from_message(const BMessage* message, rgb_color& color, int32 index = 0);
33
34BMessage make_color_drop_message(rgb_color color, BBitmap* bitmap);
35
36void make_sure_frame_is_on_screen(BRect& frame, BWindow* window);
37
38void print_modifiers();
39
40//agg::line_cap_e convert_cap_mode(uint32 mode);
41//agg::line_join_e convert_join_mode(uint32 mode);
42
43const char* string_for_color_space(color_space format);
44void print_color_space(color_space format);
45
46#endif // SUPPORT_UI_H
47