* style fixes to textview_support class LineBuffer

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38005 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-10 13:58:19 +00:00
parent e82e8f365e
commit cb06c64a5d
2 changed files with 22 additions and 13 deletions

View File

@ -6,8 +6,10 @@
* Marc Flerackers (mflerackers@androme.be)
*/
#include "LineBuffer.h"
BTextView::LineBuffer::LineBuffer()
: _BTextViewSupportBuffer_<STELine>(20, 2)
{

View File

@ -5,6 +5,9 @@
* Authors:
* Marc Flerackers (mflerackers@androme.be)
*/
#ifndef __LINE_BUFFER_H
#define __LINE_BUFFER_H
#include <SupportDefs.h>
#include <TextView.h>
@ -27,7 +30,8 @@ virtual ~LineBuffer();
void InsertLine(STELine* inLine, int32 index);
void RemoveLines(int32 index, int32 count = 1);
void RemoveLineRange(int32 fromOffset, int32 toOffset);
void RemoveLineRange(int32 fromOffset,
int32 toOffset);
int32 OffsetToLine(int32 offset) const;
int32 PixelToLine(float pixel) const;
@ -53,3 +57,6 @@ BTextView::LineBuffer::operator[](int32 index) const
{
return &fBuffer[index];
}
#endif // __LINE_BUFFER_H