1/*
2 * Copyright 2000, Georges-Edouard Berenger. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef UTILITIES_H
6#define UTILITIES_H
7
8
9#include <Font.h>
10#include <GraphicsDefs.h>
11#include <Rect.h>
12#include <OS.h>
13
14
15class BDeskbar;
16class BBitmap;
17class BWindow;
18struct entry_ref;
19
20typedef struct {
21	::team_info		team_info;
22	BBitmap*		team_icon;
23	char			team_name[B_PATH_NAME_LENGTH];
24	::thread_info*	thread_info;
25} info_pack;
26
27bool get_team_name_and_icon(info_pack& infoPack, bool icon = false);
28bool launch(const char* mime, const char* path);
29void mix_colors(rgb_color& target, rgb_color& first, rgb_color& second, float mix);
30void find_self(entry_ref& ref);
31void move_to_deskbar(BDeskbar& deskbar);
32void make_window_visible(BWindow* window, bool mayResize = false);
33
34BRect bar_rect(BRect& frame, BFont* font);
35
36extern const uchar k_cpu_mini[];
37
38#endif // UTILITIES_H
39