Assorted whitespace cleanup and typo fixes.
[haiku.git] / src / preferences / keyboard / KeyboardSettings.h
blob31dc185d4801026486c11373790f7f2a3db31930
1 /*
2 * Copyright 2004-2006, the Haiku project. All rights reserved.
3 * Distributed under the terms of the Haiku License.
5 * Authors in chronological order:
6 * mccall@digitalparadise.co.uk
7 * Jérôme Duval
8 * Marcus Overhagen
9 */
10 #ifndef KEYBOARD_SETTINGS_H_
11 #define KEYBOARD_SETTINGS_H_
13 #include <SupportDefs.h>
14 #include "kb_mouse_settings.h"
16 class KeyboardSettings{
17 public :
18 KeyboardSettings();
19 ~KeyboardSettings();
21 void Dump();
22 void Revert();
23 void Defaults();
24 bool IsDefaultable();
26 BPoint WindowCorner() const { return fCorner; }
27 void SetWindowCorner(BPoint corner);
29 int32 KeyboardRepeatRate() const
30 { return fSettings.key_repeat_rate; }
31 void SetKeyboardRepeatRate(int32 rate);
33 bigtime_t KeyboardRepeatDelay() const
34 { return fSettings.key_repeat_delay; }
35 void SetKeyboardRepeatDelay(bigtime_t delay);
37 private:
38 BPoint fCorner;
39 kb_settings fSettings;
40 kb_settings fOriginalSettings;
43 #endif