vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / appearance / FontView.h
blob0b13afd41f5edc1e1abdd45b745fbe34948863a0
1 /*
2 * Copyright 2001-2012, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Mark Hogben
7 * DarkWyrm <bpmagic@columbus.rr.com>
8 * Axel Dörfler, axeld@pinc-software.de
9 * Philippe Saint-Pierre, stpere@gmail.com
10 * Stephan Aßmus <superstippi@gmx.de>
12 #ifndef FONT_VIEW_H
13 #define FONT_VIEW_H
16 #include <View.h>
19 class BMessageRunner;
20 class FontSelectionView;
23 class FontView : public BView {
24 public:
25 FontView(const char* name);
27 virtual void AttachedToWindow();
28 virtual void DetachedFromWindow();
30 virtual void MessageReceived(BMessage* message);
32 void SetDefaults();
33 void Revert();
34 void UpdateFonts();
36 bool IsDefaultable();
37 bool IsRevertable();
41 private:
42 FontSelectionView* fPlainView;
43 FontSelectionView* fBoldView;
44 FontSelectionView* fFixedView;
45 FontSelectionView* fMenuView;
47 BMessageRunner* fRunner;
51 #endif /* FONT_VIEW_H */