2 * Copyright 2008, Andrej Spielmann, <andrej.spielmann@seh.ox.ac.uk>
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef ANTIALIASING_SETTINGS_VIEW_H
6 #define ANTIALIASING_SETTINGS_VIEW_H
18 class AntialiasingSettingsView
: public BView
{
20 AntialiasingSettingsView(const char* name
);
21 virtual ~AntialiasingSettingsView();
23 virtual void AttachedToWindow();
24 virtual void MessageReceived(BMessage
* message
);
32 void _BuildAntialiasingMenu();
33 void _SetCurrentAntialiasing();
34 void _BuildHintingMenu();
35 void _SetCurrentHinting();
36 void _SetCurrentAverageWeight();
42 BMenuField
* fAntialiasingMenuField
;
43 BPopUpMenu
* fAntialiasingMenu
;
44 BMenuField
* fHintingMenuField
;
45 BPopUpMenu
* fHintingMenu
;
46 BSlider
* fAverageWeightControl
;
47 BTextView
* fSubpixelAntialiasingDisabledLabel
;
49 bool fSavedSubpixelAntialiasing
;
50 bool fCurrentSubpixelAntialiasing
;
52 uint8 fCurrentHinting
;
53 unsigned char fSavedAverageWeight
;
54 unsigned char fCurrentAverageWeight
;
57 #endif // ANTIALIASING_SETTINGS_VIEW_H