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