// Set the display mode of visual flags for wrapped lines.
void SetWrapVisualFlags(int wrapVisualFlags);
- // Retrieve the display mode of visual flags for wrapped lines.
+ // Retrive the display mode of visual flags for wrapped lines.
int GetWrapVisualFlags() const;
// Set the location of visual flags for wrapped lines.
void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation);
- // Retrieve the location of visual flags for wrapped lines.
+ // Retrive the location of visual flags for wrapped lines.
int GetWrapVisualFlagsLocation() const;
// Set the start indent for wrapped lines.
void SetWrapStartIndent(int indent);
- // Retrieve the start indent for wrapped lines.
+ // Retrive the start indent for wrapped lines.
int GetWrapStartIndent() const;
// Sets how wrapped sublines are placed. Default is fixed.
// Delete forwards from the current position to the end of the line.
void DelLineRight();
- // Get and Set the xOffset (ie, horizontal scroll position).
+ // Get and Set the xOffset (ie, horizonal scroll position).
void SetXOffset(int newOffset);
int GetXOffset() const;
// what is used internally by Scintilla in unicode builds.
// Add text to the document at current position.
- void AddTextRaw(const char* text);
+ void AddTextRaw(const char* text, int length=-1);
// Insert string at a position.
void InsertTextRaw(int pos, const char* text);
wxCharBuffer GetTextRaw();
// Append a string to the end of the document without changing the selection.
- void AppendTextRaw(const char* text);
+ void AppendTextRaw(const char* text, int length=-1);
#ifdef SWIG
%pythoncode "_stc_utf8_methods.py"
virtual bool PositionToXY(long pos, long *x, long *y) const
{
+ long l = LineFromPosition(pos);
+ if ( l == -1 )
+ return false;
+
if ( x )
- *x = -1; // TODO
+ *x = pos - PositionFromLine(l);
if ( y )
- {
- long l = LineFromPosition(pos);
- if ( l == -1 )
- return false;
*y = l;
- }
return true;
}
bool m_lastKeyDownConsumed;
- // the timestamp that consists of the last wheel event
- // added to the time taken to process that event.
- long m_lastWheelTimestamp;
+ // Time until when we should ignore any new mouse wheel events.
+ wxLongLong m_timeToBlockWheelEventsUntil;
friend class ScintillaWX;
friend class Platform;