2 * Copyright 2006 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Stephan Aßmus, superstippi@gmx.de
8 #ifndef INPUT_TEXT_VIEW_H
9 #define INPUT_TEXT_VIEW_H
16 class InputTextView
: public BTextView
, public BInvoker
{
18 InputTextView(BRect frame
,
23 virtual ~InputTextView();
25 // BTextView interface
26 virtual void MouseDown(BPoint where
);
27 virtual void MouseUp(BPoint where
);
29 virtual void KeyDown(const char* bytes
, int32 numBytes
);
30 virtual void MakeFocus(bool focus
);
33 virtual status_t
Invoke(BMessage
* message
= NULL
);
36 virtual void RevertChanges() = 0;
37 virtual void ApplyChanges() = 0;
41 virtual void Select(int32 start
, int32 finish
);
43 virtual void InsertText(const char* inText
,
46 const text_run_array
* inRuns
);
47 virtual void DeleteText(int32 fromOffset
,
50 void _CheckTextRect();
55 #endif // INPUT_TEXT_VIEW_H