Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends

ScintillaWX Class Reference

Inheritance diagram for ScintillaWX:
Inheritance graph
Collaboration diagram for ScintillaWX:
Collaboration graph

List of all members.

Public Member Functions

virtual void AddToPopUp (const char *label, int cmd=0, bool enabled=true)
virtual void CancelModes ()
bool CanPaste ()
virtual void ClaimSelection ()
void ClipChildren (wxDC &dc, PRectangle rect)
virtual void Copy ()
virtual void CopyToClipboard (const SelectionText &selectedText)
virtual void CreateCallTipWindow (PRectangle rc)
virtual sptr_t DefWndProc (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
void DoAddChar (int key)
void DoCommand (int ID)
void DoContextMenu (Point pt)
void DoGainFocus ()
void DoHScroll (int type, int pos)
int DoKeyDown (const wxKeyEvent &event, bool *consumed)
void DoLeftButtonDown (Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt)
void DoLeftButtonMove (Point pt)
void DoLeftButtonUp (Point pt, unsigned int curTime, bool ctrl)
void DoLoseFocus ()
void DoMiddleButtonUp (Point pt)
void DoMouseWheel (int rotation, int delta, int linesPerAction, int ctrlDown, bool isPageScroll)
void DoOnIdle (wxIdleEvent &evt)
void DoOnListBox ()
void DoPaint (wxDC *dc, wxRect rect)
void DoScrollToColumn (int column)
void DoScrollToLine (int line)
void DoSize (int width, int height)
void DoSysColourChange ()
void DoTick ()
void DoVScroll (int type, int pos)
virtual void Finalise ()
void FullPaint ()
bool GetHideSelection ()
virtual bool HaveMouseCapture ()
virtual void Initialise ()
bool IsUnicodeMode () const
virtual bool ModifyScrollBars (int nMax, int nPage)
virtual void NotifyChange ()
virtual void NotifyFocus (bool focus)
virtual void NotifyParent (SCNotification scn)
virtual void Paste ()
 ScintillaWX (wxScintilla *win)
virtual void ScrollText (int linesToMove)
virtual void SetHorizontalScrollPos ()
virtual bool SetIdle (bool on)
virtual void SetMouseCapture (bool on)
virtual void SetTicking (bool on)
virtual void SetVerticalScrollPos ()
virtual void StartDrag ()
virtual void UpdateSystemCaret ()
virtual sptr_t WndProc (unsigned int iMessage, uptr_t wParam, sptr_t lParam)

Static Public Member Functions

static sptr_t DirectFunction (ScintillaWX *wxsci, unsigned int iMessage, uptr_t wParam, sptr_t lParam)

Public Attributes

int ctrlID
int errorStatus

Protected Types

enum  { autoScrollDelay = 200 }
enum  { selChar, selWord, selLine }
enum  { ddNone, ddInitial, ddDragging }
enum  { notPainting, painting, paintAbandoned }
enum  { eWrapNone, eWrapWord, eWrapChar }
enum  { wrapLineLarge = 0x7ffffff }
enum  {
  idCallTip = 1, idAutoComplete = 2, idcmdUndo = 10, idcmdRedo = 11,
  idcmdCut = 12, idcmdCopy = 13, idcmdPaste = 14, idcmdDelete = 15,
  idcmdSelectAll = 16

Protected Member Functions

bool AbandonPaint ()
void AddChar (char ch)
virtual void AddCharUTF (char *s, unsigned int len, bool treatAsDBCS=false)
void AddStyledText (char *buffer, int appendLength)
void AutoCompleteCancel ()
void AutoCompleteCharacterAdded (char ch)
void AutoCompleteCharacterDeleted ()
void AutoCompleteCompleted ()
int AutoCompleteGetCurrent ()
int AutoCompleteGetCurrentText (char *buffer)
void AutoCompleteMove (int delta)
void AutoCompleteMoveToCurrentWord ()
void AutoCompleteStart (int lenEntered, const char *list)
virtual void ButtonDown (Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt)
void ButtonMove (Point pt)
void ButtonUp (Point pt, unsigned int curTime, bool ctrl)
void CallTipClick ()
void CallTipShow (Point pt, const char *defn)
void ChangeCaseOfSelection (bool makeUpperCase)
void ChangeSize ()
void CheckForChangeOutsidePaint (Range r)
void CheckModificationForWrap (DocModification mh)
SelectionPosition ClampPositionIntoDocument (SelectionPosition sp) const
void Clear ()
void ClearAll ()
void ClearDocumentStyle ()
void ClearSelection ()
int CodePage () const
void Command (int cmdId)
void ContextMenu (Point pt)
virtual void CopyAllowLine ()
char * CopyRange (int start, int end)
void CopyRangeToClipboard (int start, int end)
void CopySelectionRange (SelectionText *ss, bool allowLineCopy=false)
void CopyText (int length, const char *text)
int CurrentPosition ()
void CursorUpOrDown (int direction, Selection::selTypes sel=Selection::noSel)
void Cut ()
void DelChar ()
void DelCharBack (bool allowLineStartDeletion)
virtual void DisplayCursor (Window::Cursor c)
int DisplayFromPosition (int pos)
virtual bool DragThreshold (Point ptStart, Point ptNow)
void DrawAnnotation (Surface *surface, ViewStyle &vsDraw, int line, int xStart, PRectangle rcLine, LineLayout *ll, int subLine)
void DrawBlockCaret (Surface *surface, ViewStyle &vsDraw, LineLayout *ll, int subLine, int xStart, int offset, int posCaret, PRectangle rcCaret, ColourAllocated caretColour)
void DrawCarets (Surface *surface, ViewStyle &vsDraw, int line, int xStart, PRectangle rcLine, LineLayout *ll, int subLine)
void DrawEOL (Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, LineLayout *ll, int line, int lineEnd, int xStart, int subLine, int subLineStart, bool overrideBackground, ColourAllocated background, bool drawWrapMark, ColourAllocated wrapColour)
void DrawIndentGuide (Surface *surface, int lineVisible, int lineHeight, int start, PRectangle rcSegment, bool highlight)
void DrawIndicators (Surface *surface, ViewStyle &vsDraw, int line, int xStart, PRectangle rcLine, LineLayout *ll, int subLine, int lineEnd, bool under)
void DrawLine (Surface *surface, ViewStyle &vsDraw, int line, int lineVisible, int xStart, PRectangle rcLine, LineLayout *ll, int subLine)
void DrawWrapMarker (Surface *surface, PRectangle rcPlace, bool isEndMarker, ColourAllocated wrapColour)
void DropAt (SelectionPosition position, const char *value, bool moving, bool rectangular)
void DropCaret ()
void DropGraphics ()
void Duplicate (bool forLine)
void DwellEnd (bool mouseMoved)
void EnsureCaretVisible (bool useMargin=true, bool vert=true, bool horiz=true)
void EnsureLineVisible (int lineDoc, bool enforcePolicy)
void Expand (int &line, bool doExpand)
void FilterSelections ()
long FindText (uptr_t wParam, sptr_t lParam)
long FormatRange (bool draw, Sci_RangeToFormat *pfr)
virtual PRectangle GetClientRectangle ()
virtual int GetCtrlID ()
void GetHotSpotRange (int &hsStart, int &hsEnd)
PRectangle GetTextRectangle ()
int GetWhitespaceVisible ()
void GoToLine (int lineNo)
void HorizontalScrollTo (int xPos)
bool Idle ()
void Indent (bool forwards)
int InsertSpace (int position, unsigned int spaces)
void InvalidateCaret ()
void InvalidateRange (int start, int end)
void InvalidateSelection (SelectionRange newMain, bool invalidateWholeSelection=false)
void InvalidateStyleData ()
void InvalidateStyleRedraw ()
virtual int KeyCommand (unsigned int iMessage)
virtual int KeyDefault (int, int)
int KeyDown (int key, bool shift, bool ctrl, bool alt, bool *consumed=0)
void LayoutLine (int line, Surface *surface, ViewStyle &vstyle, LineLayout *ll, int width=LineLayout::wrapWidthInfinite)
int LineFromLocation (Point pt)
void LineSelection (int lineCurrent_, int lineAnchor_)
void LinesJoin ()
int LinesOnScreen ()
void LinesSplit (int pixelWidth)
int LinesToScroll ()
void LineTranspose ()
Point LocationFromPosition (SelectionPosition pos)
Point LocationFromPosition (int pos)
int MaxScrollPos ()
void MoveCaretInsideView (bool ensureVisible=true)
int MovePositionOutsideChar (int pos, int moveDir, bool checkLineEnd=true) const
SelectionPosition MovePositionOutsideChar (SelectionPosition pos, int moveDir, bool checkLineEnd=true) const
SelectionPosition MovePositionSoVisible (SelectionPosition pos, int moveDir)
SelectionPosition MovePositionSoVisible (int pos, int moveDir)
int MovePositionTo (int newPos, Selection::selTypes sel=Selection::noSel, bool ensureVisible=true)
int MovePositionTo (SelectionPosition newPos, Selection::selTypes sel=Selection::noSel, bool ensureVisible=true)
void NeedWrapping (int docLineStart=0, int docLineEnd=wrapLineLarge)
void NewLine ()
void NotifyChar (int ch)
void NotifyDeleted (Document *document, void *userData)
virtual void NotifyDoubleClick (Point pt, bool shift, bool ctrl, bool alt)
void NotifyDwelling (Point pt, bool state)
void NotifyHotSpotClicked (int position, bool shift, bool ctrl, bool alt)
void NotifyHotSpotDoubleClicked (int position, bool shift, bool ctrl, bool alt)
void NotifyIndicatorClick (bool click, int position, bool shift, bool ctrl, bool alt)
void NotifyMacroRecord (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
bool NotifyMarginClick (Point pt, bool shift, bool ctrl, bool alt)
void NotifyModified (Document *document, DocModification mh, void *userData)
void NotifyModifyAttempt (Document *document, void *userData)
void NotifyModifyAttempt ()
void NotifyNeedShown (int pos, int len)
void NotifyPainted ()
void NotifySavePoint (Document *document, void *userData, bool atSavePoint)
void NotifySavePoint (bool isSavePoint)
void NotifyStyleNeeded (Document *doc, void *userData, int endPos)
virtual void NotifyStyleToNeeded (int endStyleNeeded)
void NotifyUpdateUI ()
void NotifyZoom ()
void PageMove (int direction, Selection::selTypes sel=Selection::noSel, bool stuttered=false)
void Paint (Surface *surfaceWindow, PRectangle rcArea)
virtual bool PaintContains (PRectangle rc)
bool PaintContainsMargin ()
void PaintSelMargin (Surface *surface, PRectangle &rc)
void ParaUpOrDown (int direction, Selection::selTypes sel=Selection::noSel)
void PasteRectangular (SelectionPosition pos, const char *ptr, int len)
bool PointInSelection (Point pt)
bool PointInSelMargin (Point pt)
bool PointIsHotspot (Point pt)
Point PointMainCaret ()
int PositionFromLineX (int line, int x)
int PositionFromLocation (Point pt, bool canReturnInvalid=false, bool charPosition=false)
bool PositionInSelection (int pos)
bool PositionIsHotspot (int position)
bool RangeContainsProtected (int start, int end) const
virtual void ReconfigureScrollBars ()
PRectangle RectangleFromRange (int start, int end)
void Redo ()
void Redraw ()
void RedrawRect (PRectangle rc)
void RedrawSelMargin (int line=-1)
virtual void RefreshColourPalette (Palette &pal, bool want)
void RefreshPixMaps (Surface *surfaceWindow)
void RefreshStyleData ()
int ReplaceTarget (bool replacePatterns, const char *text, int length=-1)
LineLayoutRetrieveLineLayout (int lineNumber)
void ScrollTo (int line, bool moveThumb=true)
void SearchAnchor ()
long SearchInTarget (const char *text, int length)
long SearchText (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
void SelectAll ()
ColourAllocated SelectionBackground (ViewStyle &vsDraw, bool main)
bool SelectionContainsProtected ()
bool SelectionEmpty ()
SelectionPosition SelectionEnd ()
SelectionPosition SelectionStart ()
void SetAnnotationHeights (int start, int end)
void SetAnnotationVisible (int visible)
void SetBraceHighlight (Position pos0, Position pos1, int matchStyle)
void SetDocPointer (Document *document)
void SetDragPosition (SelectionPosition newPos)
void SetEmptySelection (SelectionPosition currentPos_)
void SetEmptySelection (int currentPos_)
void SetFocusState (bool focusState)
void SetHotSpotRange (Point *pt)
void SetLastXChosen ()
void SetRectangularRange ()
void SetScrollBars ()
void SetSelection (int currentPos_, int anchor_)
void SetSelection (SelectionPosition currentPos_, SelectionPosition anchor_)
void SetSelection (SelectionPosition currentPos_)
void SetSelection (int currentPos_)
void SetTopLine (int topLineNew)
void SetWhitespaceVisible (int view)
void ShowCaretAtCurrentPosition ()
SelectionPosition SPositionFromLineX (int lineDoc, int x)
SelectionPosition SPositionFromLocation (Point pt, bool canReturnInvalid=false, bool charPosition=false, bool virtualSpace=true)
int StartEndDisplayLine (int pos, bool start)
sptr_t StyleGetMessage (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
void StyleSetMessage (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
int SubstituteMarkerIfEmpty (int markerCheck, int markerDefault)
ColourAllocated TextBackground (ViewStyle &vsDraw, bool overrideBackground, ColourAllocated background, int inSelection, bool inHotspot, int styleMain, int i, LineLayout *ll)
int TextWidth (int style, const char *text)
void ThinRectangularRange ()
void Tick ()
void ToggleContraction (int line)
void Undo ()
bool UserVirtualSpace () const
virtual bool ValidCodePage (int) const
int WrapCount (int line)
bool WrapLines (bool fullWrap, int priorityWrapLineStart)
bool WrapOneLine (Surface *surface, int lineToWrap)
int XFromPosition (int pos)
int XFromPosition (SelectionPosition sp)

Static Protected Member Functions

static void AutoCompleteDoubleClick (void *p)
static const char * StringFromEOLMode (int eolMode)
static sptr_t StringResult (sptr_t lParam, const char *val)

Protected Attributes

AutoComplete ac
bool additionalCaretsBlink
bool additionalCaretsVisible
bool additionalSelectionTyping
Timer autoScrollTimer
Position braces [2]
int bracesMatchStyle
bool bufferedDraw
Caret caret
bool caretSticky
int caretXPolicy
int caretXSlop
 Ensure this many pixels visible on both sides of caret.
int caretYPolicy
int caretYSlop
 Ensure this many lines visible on both sides of caret.
int controlCharSymbol
bool convertPastes
ContractionState cs
CallTip ct
int cursorMode
bool displayPopupMenu
SelectionText drag
bool dropWentOutside
int dwellDelay
bool dwelling
bool endAtLastLine
int foldFlags
bool hasFocus
bool hideSelection
int highlightGuideColumn
bool horizontalScrollBarVisible
int hsEnd
int hsStart
Idler idler
enum Editor:: { ... }  inDragDrop
bool inOverstrike
KeyMap kmap
Point lastClick
unsigned int lastClickTime
int lastXChosen
int lengthForEncode
int lineAnchor
int lineWidthMaxSeen
int listType
 0 is an autocomplete list
LineLayoutCache llc
int maxListWidth
int modEventMask
bool mouseDownCaptures
bool multipleSelection
bool needUpdateUI
int originalAnchorPos
bool paintingAllText
enum Editor:: { ... }  paintState
Palette palette
Menu popup
PositionCache posCache
SelectionPosition posDrag
SelectionPosition posDrop
int posTopLine
bool primarySelection
int printColourMode
int printMagnification
int printWrapState
Point ptMouseLast
PRectangle rcPaint
bool recordingMacro
int scrollWidth
int searchAnchor
int searchFlags
Selection sel
enum Editor:: { ... }  selectionType
bool stylesValid
int targetEnd
int targetStart
int theEdge
int ticksToDwell
Timer timer
int topLine
bool trackLineWidth
bool twoPhaseDraw
bool verticalScrollBarVisible
int virtualSpaceOptions
int visiblePolicy
int visibleSlop
ViewStyle vs
Window wMain
 The Scintilla parent window.
int wrapAddIndent
int wrapEnd
int wrapIndentMode
int wrapStart
enum Editor:: { ... }  wrapState
int wrapVisualFlags
int wrapVisualFlagsLocation
int wrapVisualStartIndent
int wrapWidth
int xCaretMargin
 Ensure this many pixels visible on both sides of caret.
int xOffset
 Horizontal scrolled amount in pixels.

Private Member Functions

bool CreateSystemCaret ()
bool DestroySystemCaret ()
bool HasCaretSizeChanged ()

Private Attributes

bool capturedMouse
bool focusEvent
int wheelRotation


class AutoSurface
class SelectionLineIterator
class wxSCICallTipContent

Detailed Description

Definition at line 96 of file ScintillaWX.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index