summaryrefslogtreecommitdiffstats
path: root/beos/liblayout/MTextView.h
blob: 512a85cd10f71d49dd67b4b39b2f5fc2231daa83 (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

#ifndef _MTEXTVIEW_H
#define _MTEXTVIEW_H
#include "layout.h"
#include <TextView.h>

#if __POWERPC__
#pragma simple_class_byval off
#endif

class IMPEXPLIBLAYOUT MTextView :  public MView, public BTextView
{
	public:		MTextView(minimax size=0);
				MTextView(BMessage*);
				virtual ~MTextView();
				virtual long Archive(BMessage *archive, bool deep=true) const;
				static BArchivable *Instantiate(BMessage *archive);

				virtual	minimax	layoutprefs();
				virtual BRect	layout(BRect rect);
				virtual void	AttachedToWindow();
				virtual void DetachedFromWindow();
				virtual void MessageReceived(BMessage *mes);

	private:	void initobject();
				static long AsyncSetTextRect(void *arg);
				thread_id resizer;
				uint32  _expansiondata[2];
};

#endif