vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / screen_savers / glife / GLifeConfig.h
blobfebb98e97ef279ae85f73440dfe0c2c2e4531c14
1 /*
2 * Copyright 2012, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Aaron Hill <serac@hillvisions.com>
7 */
8 #ifndef _GLIFE_GLIFECONFIG_H
9 #define _GLIFE_GLIFECONFIG_H
12 #include <Slider.h>
13 #include <View.h>
15 #include "GLifeState.h"
18 // Message IDs
19 enum {
20 kGridWidth = 'grdw',
21 kGridHeight = 'grdh',
22 kGridBorder = 'bord',
23 kGridDelay = 'dely'
27 // GLifeConfig Class Declaration
28 class GLifeConfig : public BView
30 private:
31 GLifeState* m_pglsState;
33 uint32 m_uiWindowFlags;
35 BSlider* fGridWidth;
36 BSlider* fGridHeight;
37 BSlider* fGridBorder;
38 BSlider* fGridDelay;
39 void _UpdateLabels();
41 public:
42 GLifeConfig(BRect, GLifeState*);
44 void AttachedToWindow(void);
45 void MessageReceived(BMessage*);
49 #endif /* _GLIFE_GLIFECONFIG_H */