vfs: check userland buffers before reading them.
[haiku.git] / src / apps / haikudepot / textview / Bullet.h
blob2fc8568b917ae8f916aeba8790261d8abb9124fd
1 /*
2 * Copyright 2013, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #ifndef BULLET_H
6 #define BULLET_H
8 #include "BulletData.h"
11 class Bullet {
12 public:
13 Bullet();
14 Bullet(const BString& string, float spacing);
15 Bullet(const Bullet& other);
17 Bullet& operator=(const Bullet& other);
18 bool operator==(const Bullet& other) const;
19 bool operator!=(const Bullet& other) const;
21 bool SetString(const BString& string);
22 const BString& String() const;
24 bool SetSpacing(float spacing);
25 float Spacing() const;
27 private:
28 BulletDataRef fBulletData;
32 #endif // BULLET_H