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 15class BMessage; 16class BView; 17class BWindow; 18 19status_t load_settings(BMessage* message, const char* fileName, 20 const char* folder = NULL); 21 22status_t save_settings(BMessage* message, const char* fileName, 23 const char* folder = NULL); 24 25// looper of view must be locked! 26void stroke_frame(BView* view, BRect frame, 27 rgb_color left, rgb_color top, 28 rgb_color right, rgb_color bottom); 29 30bool make_sure_frame_is_on_screen(BRect& frame, BWindow* window = NULL); 31 32#endif // SUPPORT_H 33