summaryrefslogtreecommitdiffstats
path: root/beos/liblayout/MTextControl.h
blob: 46f1a746feced785d0c763d0c768785649c41b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

#ifndef _MTEXTCONTROL_H
#define _MTEXTCONTROL_H
#include "layout.h"
#include "MDividable.h"
#include <TextControl.h>

#if __POWERPC__
#pragma simple_class_byval off
#endif

class IMPEXPLIBLAYOUT MTextControl:
	public MView, public MDividable, public BTextControl
{
	public:		MTextControl(char *label, char *text);
				MTextControl(char *label, char *text, BMessage *mes);
				MTextControl(BMessage*);
				virtual ~MTextControl();
				virtual long Archive(BMessage *archive, bool deep=true) const;
				static BArchivable *Instantiate(BMessage *archive);

				virtual void	SetLabel(const char *);
				virtual float	LabelWidth();

				virtual	minimax	layoutprefs();
				virtual BRect	layout(BRect rect);
				virtual void	reloadfont(BFont *font[]);
				virtual void	AttachedToWindow();
				virtual void DetachedFromWindow();

	private:	float lastheight;

				uint32  _expansiondata[2];
};

#endif