Make UEFI boot-platform build again
[haiku.git] / headers / os / interface / StringItem.h
blob75d11115a14bb60bdfa1badd4752e5fd2d3db9f1
1 /*
2 * Copyright 2006-2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _STRING_ITEM_H
6 #define _STRING_ITEM_H
9 #include <ListItem.h>
12 class BStringItem : public BListItem {
13 public:
14 BStringItem(const char* text,
15 uint32 outlineLevel = 0,
16 bool expanded = true);
17 BStringItem(BMessage* archive);
18 virtual ~BStringItem();
20 static BArchivable* Instantiate(BMessage* archive);
21 virtual status_t Archive(BMessage* archive,
22 bool deep = true) const;
24 virtual void DrawItem(BView* owner, BRect frame,
25 bool complete = false);
26 virtual void SetText(const char* text);
27 const char* Text() const;
29 virtual void Update(BView* owner, const BFont* font);
31 virtual status_t Perform(perform_code code, void* arg);
33 protected:
34 float BaselineOffset() const;
36 private:
37 // FBC padding and forbidden methods
38 virtual void _ReservedStringItem1();
39 virtual void _ReservedStringItem2();
41 BStringItem(const BStringItem& item);
42 BStringItem& operator=(const BStringItem& item);
44 private:
45 char* fText;
46 float fBaselineOffset;
47 uint32 _reserved[2];
50 #endif // _STRING_ITEM_H