geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Scintilla::ScintillaGTK Class Reference

#include <ScintillaGTK.h>

Inheritance diagram for Scintilla::ScintillaGTK:
[legend]
Collaboration diagram for Scintilla::ScintillaGTK:
[legend]

Classes

struct  TimeThunk
 

Public Member Functions

 ScintillaGTK (_ScintillaObject *sci_)
 
 ScintillaGTK (const ScintillaGTK &)=delete
 
 ScintillaGTK (ScintillaGTK &&)=delete
 
ScintillaGTKoperator= (const ScintillaGTK &)=delete
 
ScintillaGTKoperator= (ScintillaGTK &&)=delete
 
virtual ~ScintillaGTK ()
 
sptr_t WndProc (unsigned int iMessage, uptr_t wParam, sptr_t lParam) override
 
GObject * MainObject () const noexcept
 
void ReceivedClipboard (GtkClipboard *clipBoard, GtkSelectionData *selection_data) noexcept
 
- Public Member Functions inherited from Scintilla::ScintillaBase
 ~ScintillaBase () override
 
sptr_t WndProc (unsigned int iMessage, uptr_t wParam, sptr_t lParam) override
 
- Public Member Functions inherited from Scintilla::Editor
 ~Editor () override
 
bool IsUnicodeMode () const noexcept
 
virtual sptr_t WndProc (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
 
- Public Member Functions inherited from Scintilla::EditModel
 EditModel ()
 
 EditModel (const EditModel &)=delete
 
 EditModel (EditModel &&)=delete
 
EditModeloperator= (const EditModel &)=delete
 
EditModeloperator= (EditModel &&)=delete
 
virtual ~EditModel ()
 
virtual Sci::Line TopLineOfMain () const =0
 
virtual Point GetVisibleOriginInMain () const =0
 
virtual Sci::Line LinesOnScreen () const =0
 
virtual Range GetHotSpotRange () const noexcept=0
 
void SetDefaultFoldDisplayText (const char *text)
 
const char * GetDefaultFoldDisplayText () const noexcept
 
const char * GetFoldDisplayText (Sci::Line lineDoc) const noexcept
 
- Public Member Functions inherited from Scintilla::DocWatcher
virtual ~DocWatcher ()
 
virtual void NotifyModifyAttempt (Document *doc, void *userData)=0
 
virtual void NotifySavePoint (Document *doc, void *userData, bool atSavePoint)=0
 
virtual void NotifyModified (Document *doc, DocModification mh, void *userData)=0
 
virtual void NotifyDeleted (Document *doc, void *userData) noexcept=0
 
virtual void NotifyStyleNeeded (Document *doc, void *userData, Sci::Position endPos)=0
 
virtual void NotifyLexerChanged (Document *doc, void *userData)=0
 
virtual void NotifyErrorOccurred (Document *doc, void *userData, int status)=0
 

Static Public Member Functions

static ScintillaGTKFromWidget (GtkWidget *widget) noexcept
 
static void ClassInit (GObjectClass *object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class)
 

Private Member Functions

void Init ()
 
void Finalise () override
 
bool AbandonPaint () override
 If painting then abandon the painting because a wider redraw is needed. More...
 
void DisplayCursor (Window::Cursor c) override
 
bool DragThreshold (Point ptStart, Point ptNow) override
 
void StartDrag () override
 
Sci::Position TargetAsUTF8 (char *text) const
 
Sci::Position EncodedFromUTF8 (const char *utf8, char *encoded) const
 
bool ValidCodePage (int codePage) const override
 
sptr_t DefWndProc (unsigned int iMessage, uptr_t wParam, sptr_t lParam) override
 
bool FineTickerRunning (TickReason reason) override
 
void FineTickerStart (TickReason reason, int millis, int tolerance) override
 
void FineTickerCancel (TickReason reason) override
 
bool SetIdle (bool on) override
 
void SetMouseCapture (bool on) override
 
bool HaveMouseCapture () override
 
bool PaintContains (PRectangle rc) override
 
void FullPaint ()
 
PRectangle GetClientRectangle () const override
 
void ScrollText (Sci::Line linesToMove) override
 
void SetVerticalScrollPos () override
 
void SetHorizontalScrollPos () override
 
bool ModifyScrollBars (Sci::Line nMax, Sci::Line nPage) override
 
void ReconfigureScrollBars () override
 
void NotifyChange () override
 
void NotifyFocus (bool focus) override
 
void NotifyParent (SCNotification scn) override
 
void NotifyKey (int key, int modifiers)
 
void NotifyURIDropped (const char *list)
 
const char * CharacterSetID () const
 
CaseFolderCaseFolderForEncoding () override
 
std::string CaseMapString (const std::string &s, int caseMapping) override
 
int KeyDefault (int key, int modifiers) override
 
void CopyToClipboard (const SelectionText &selectedText) override
 
void Copy () override
 
void RequestSelection (GdkAtom atomSelection)
 
void Paste () override
 
void CreateCallTipWindow (PRectangle rc) override
 
void AddToPopUp (const char *label, int cmd=0, bool enabled=true) override
 
bool OwnPrimarySelection ()
 
void ClaimSelection () override
 
void GetGtkSelectionText (GtkSelectionData *selectionData, SelectionText &selText)
 
void InsertSelection (GtkClipboard *clipBoard, GtkSelectionData *selectionData)
 
void ReceivedSelection (GtkSelectionData *selection_data)
 
void ReceivedDrop (GtkSelectionData *selection_data)
 
void StoreOnClipboard (SelectionText *clipText)
 
void UnclaimSelection (GdkEventSelection *selection_event)
 
void Resize (int width, int height)
 
void RealizeThis (GtkWidget *widget)
 
void UnRealizeThis (GtkWidget *widget)
 
void MapThis ()
 
void UnMapThis ()
 
gint FocusInThis (GtkWidget *widget)
 
gint FocusOutThis (GtkWidget *widget)
 
gboolean ExposeTextThis (GtkWidget *widget, GdkEventExpose *ose)
 
gboolean Expose (GtkWidget *widget, GdkEventExpose *ose)
 
void ForAll (GtkCallback callback, gpointer callback_data)
 
gint PressThis (GdkEventButton *event)
 
gboolean KeyThis (GdkEventKey *event)
 
gboolean ExposePreeditThis (GtkWidget *widget, GdkEventExpose *ose)
 
AtkObject * GetAccessibleThis (GtkWidget *widget)
 
bool KoreanIME ()
 
void CommitThis (char *commitStr)
 
void PreeditChangedInlineThis ()
 
void PreeditChangedWindowedThis ()
 
void MoveImeCarets (int pos)
 
void DrawImeIndicator (int indicator, int len)
 
void SetCandidateWindowPos ()
 
gboolean DragMotionThis (GdkDragContext *context, gint x, gint y, guint dragtime)
 
void IdleWork () override
 
void QueueIdleWork (WorkNeeded::workItems items, Sci::Position upTo) override
 
void SetDocPointer (Document *document) override
 

Static Private Member Functions

static bool IsStringAtom (GdkAtom type)
 
static void GetSelection (GtkSelectionData *selection_data, guint info, SelectionText *text)
 
static void ClipboardGetSelection (GtkClipboard *clip, GtkSelectionData *selection_data, guint info, void *data)
 
static void ClipboardClearSelection (GtkClipboard *clip, void *data)
 
static void PrimarySelection (GtkWidget *widget, GtkSelectionData *selection_data, guint info, guint time_stamp, ScintillaGTK *sciThis)
 
static gboolean PrimaryClear (GtkWidget *widget, GdkEventSelection *event, ScintillaGTK *sciThis)
 
static void Realize (GtkWidget *widget)
 
static void UnRealize (GtkWidget *widget)
 
static void Map (GtkWidget *widget)
 
static void UnMap (GtkWidget *widget)
 
static gint FocusIn (GtkWidget *widget, GdkEventFocus *event)
 
static gint FocusOut (GtkWidget *widget, GdkEventFocus *event)
 
static void SizeRequest (GtkWidget *widget, GtkRequisition *requisition)
 
static void SizeAllocate (GtkWidget *widget, GtkAllocation *allocation)
 
static gboolean ExposeText (GtkWidget *widget, GdkEventExpose *ose, ScintillaGTK *sciThis)
 
static gboolean ExposeMain (GtkWidget *widget, GdkEventExpose *ose)
 
static void MainForAll (GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data)
 
static void ScrollSignal (GtkAdjustment *adj, ScintillaGTK *sciThis)
 
static void ScrollHSignal (GtkAdjustment *adj, ScintillaGTK *sciThis)
 
static gint Press (GtkWidget *widget, GdkEventButton *event)
 
static gint MouseRelease (GtkWidget *widget, GdkEventButton *event)
 
static gint ScrollEvent (GtkWidget *widget, GdkEventScroll *event)
 
static gint Motion (GtkWidget *widget, GdkEventMotion *event)
 
static gboolean KeyPress (GtkWidget *widget, GdkEventKey *event)
 
static gboolean KeyRelease (GtkWidget *widget, GdkEventKey *event)
 
static gboolean ExposePreedit (GtkWidget *widget, GdkEventExpose *ose, ScintillaGTK *sciThis)
 
static AtkObject * GetAccessible (GtkWidget *widget)
 
static void Commit (GtkIMContext *context, char *str, ScintillaGTK *sciThis)
 
static void PreeditChanged (GtkIMContext *context, ScintillaGTK *sciThis)
 
static void StyleSetText (GtkWidget *widget, GtkStyle *previous, void *)
 
static void RealizeText (GtkWidget *widget, void *)
 
static void Dispose (GObject *object)
 
static void Destroy (GObject *object)
 
static void SelectionReceived (GtkWidget *widget, GtkSelectionData *selection_data, guint time)
 
static void SelectionGet (GtkWidget *widget, GtkSelectionData *selection_data, guint info, guint time)
 
static gint SelectionClear (GtkWidget *widget, GdkEventSelection *selection_event)
 
static gboolean DragMotion (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint dragtime)
 
static void DragLeave (GtkWidget *widget, GdkDragContext *context, guint time)
 
static void DragEnd (GtkWidget *widget, GdkDragContext *context)
 
static gboolean Drop (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time)
 
static void DragDataReceived (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info, guint time)
 
static void DragDataGet (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection_data, guint info, guint time)
 
static gboolean TimeOut (gpointer ptt)
 
static gboolean IdleCallback (gpointer pSci)
 
static gboolean StyleIdle (gpointer pSci)
 
static void PopUpCB (GtkMenuItem *menuItem, ScintillaGTK *sciThis)
 
static gboolean ExposeCT (GtkWidget *widget, GdkEventExpose *ose, CallTip *ctip)
 
static gboolean PressCT (GtkWidget *widget, GdkEventButton *event, ScintillaGTK *sciThis)
 
static sptr_t DirectFunction (sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam)
 

Private Attributes

_ScintillaObject * sci
 
Window wText
 
Window scrollbarv
 
Window scrollbarh
 
GtkAdjustment * adjustmentv
 
GtkAdjustment * adjustmenth
 
Window wSelection
 
int verticalScrollBarWidth
 
int horizontalScrollBarHeight
 
SelectionText primary
 
GdkEvent * evbtn
 
guint buttonMouse
 
bool capturedMouse
 
bool dragWasDropped
 
int lastKey
 
int rectangularSelectionModifier
 
GtkWidgetClass * parentClass
 
GdkAtom atomSought
 
bool preeditInitialized
 
Window wPreedit
 
Window wPreeditDraw
 
GtkIMContext * im_context
 
GUnicodeScript lastNonCommonScript
 
unsigned int linesPerScroll
 
gint64 lastWheelMouseTime
 
gint lastWheelMouseDirection
 
gint wheelMouseIntensity
 
gdouble smoothScrollY
 
gdouble smoothScrollX
 
GdkRegion * rgnUpdate
 
bool repaintFullWindow
 
guint styleIdleID
 
int accessibilityEnabled
 
AtkObject * accessible
 
TimeThunk timers [tickDwell+1]
 

Static Private Attributes

static GdkAtom atomUTF8 = nullptr
 
static GdkAtom atomUTF8Mime = nullptr
 
static GdkAtom atomString = nullptr
 
static GdkAtom atomUriList = nullptr
 
static GdkAtom atomDROPFILES_DND = nullptr
 

Friends

class ScintillaGTKAccessible
 

Additional Inherited Members

- Public Types inherited from Scintilla::EditModel
enum  IMEInteraction { imeWindowed , imeInline }
 
enum class  CharacterSource { directInput , tentativeInput , imeResult }
 
- Public Attributes inherited from Scintilla::Editor
int ctrlID
 
int errorStatus
 
- Public Attributes inherited from Scintilla::EditModel
bool inOverstrike
 
int xOffset
 Horizontal scrolled amount in pixels. More...
 
bool trackLineWidth
 
SpecialRepresentations reprs
 
Caret caret
 
SelectionPosition posDrag
 
Sci::Position braces [2]
 
int bracesMatchStyle
 
int highlightGuideColumn
 
Selection sel
 
bool primarySelection
 
enum Scintilla::EditModel::IMEInteraction imeInteraction
 
int foldFlags
 
int foldDisplayTextStyle
 
UniqueString defaultFoldDisplayText
 
std::unique_ptr< IContractionStatepcs
 
Range hotspot
 
Sci::Position hoverIndicatorPos
 
int wrapWidth
 
Documentpdoc
 
- Protected Types inherited from Scintilla::ScintillaBase
enum  {
  idCallTip =1 , idAutoComplete =2 , idcmdUndo =10 , idcmdRedo =11 ,
  idcmdCut =12 , idcmdCopy =13 , idcmdPaste =14 , idcmdDelete =15 ,
  idcmdSelectAll =16
}
 Enumeration of commands and child windows. More...
 
enum  { maxLenInputIME = 200 }
 
- Protected Types inherited from Scintilla::Editor
enum  { autoScrollDelay = 200 }
 
enum class  TextUnit { character , word , subLine , wholeLine }
 
enum  { ddNone , ddInitial , ddDragging }
 
enum  { notPainting , painting , paintAbandoned }
 
enum class  AddNumber { one , each }
 
enum  XYScrollOptions { xysUseMargin =0x1 , xysVertical =0x2 , xysHorizontal =0x4 , xysDefault =xysUseMargin|xysVertical|xysHorizontal }
 
enum class  WrapScope { wsAll , wsVisible , wsIdle }
 
enum  PasteShape { pasteStream =0 , pasteRectangular = 1 , pasteLine = 2 }
 
enum  { cmSame , cmUpper , cmLower }
 
enum  TickReason {
  tickCaret , tickScroll , tickWiden , tickDwell ,
  tickPlatform
}
 
- Protected Member Functions inherited from Scintilla::ScintillaBase
 ScintillaBase ()
 Mode for autocompleting when multiple selections are present. More...
 
 ScintillaBase (const ScintillaBase &)=delete
 
 ScintillaBase (ScintillaBase &&)=delete
 
ScintillaBaseoperator= (const ScintillaBase &)=delete
 
ScintillaBaseoperator= (ScintillaBase &&)=delete
 
void Initialise () override
 
void Finalise () override
 
virtual void AddCharUTF (const char *s, unsigned int len, bool treatAsDBCS=false)
 
void InsertCharacter (const char *s, unsigned int len, CharacterSource charSource) override
 
void Command (int cmdId)
 
void CancelModes () override
 
int KeyCommand (unsigned int iMessage) override
 
void AutoCompleteInsert (Sci::Position startPos, Sci::Position removeLen, const char *text, Sci::Position textLen)
 
void AutoCompleteStart (Sci::Position lenEntered, const char *list)
 
void AutoCompleteCancel ()
 
void AutoCompleteMove (int delta)
 
int AutoCompleteGetCurrent () const
 
int AutoCompleteGetCurrentText (char *buffer) const
 
void AutoCompleteCharacterAdded (char ch)
 
void AutoCompleteCharacterDeleted ()
 
void AutoCompleteCompleted (char ch, unsigned int completionMethod)
 
void AutoCompleteMoveToCurrentWord ()
 
void AutoCompleteSelection ()
 
void ListNotify (ListBoxEvent *plbe) override
 
void CallTipClick ()
 
void CallTipShow (Point pt, const char *defn)
 
virtual void CreateCallTipWindow (PRectangle rc)=0
 
virtual void AddToPopUp (const char *label, int cmd=0, bool enabled=true)=0
 
bool ShouldDisplayPopup (Point ptInWindowCoordinates) const
 
void ContextMenu (Point pt)
 
void ButtonDownWithModifiers (Point pt, unsigned int curTime, int modifiers) override
 
void RightButtonDownWithModifiers (Point pt, unsigned int curTime, int modifiers) override
 
void NotifyStyleToNeeded (Sci::Position endStyleNeeded) override
 
void NotifyLexerChanged (Document *doc, void *userData) override
 
- Protected Member Functions inherited from Scintilla::Editor
 Editor ()
 
 Editor (const Editor &)=delete
 
 Editor (Editor &&)=delete
 
Editoroperator= (const Editor &)=delete
 
Editoroperator= (Editor &&)=delete
 
virtual void Initialise ()=0
 
virtual void Finalise ()
 
void InvalidateStyleData ()
 
void InvalidateStyleRedraw ()
 
void RefreshStyleData ()
 
void SetRepresentations ()
 
void DropGraphics (bool freeObjects)
 
void AllocateGraphics ()
 
Point GetVisibleOriginInMain () const override
 
PointDocument DocumentPointFromView (Point ptView) const
 
Sci::Line TopLineOfMain () const override
 
virtual PRectangle GetClientRectangle () const
 
virtual PRectangle GetClientDrawingRectangle ()
 
PRectangle GetTextRectangle () const
 
Sci::Line LinesOnScreen () const override
 
Sci::Line LinesToScroll () const
 
Sci::Line MaxScrollPos () const
 
SelectionPosition ClampPositionIntoDocument (SelectionPosition sp) const
 
Point LocationFromPosition (SelectionPosition pos, PointEnd pe=peDefault)
 
Point LocationFromPosition (Sci::Position pos, PointEnd pe=peDefault)
 
int XFromPosition (SelectionPosition sp)
 
SelectionPosition SPositionFromLocation (Point pt, bool canReturnInvalid=false, bool charPosition=false, bool virtualSpace=true)
 
Sci::Position PositionFromLocation (Point pt, bool canReturnInvalid=false, bool charPosition=false)
 
SelectionPosition SPositionFromLineX (Sci::Line lineDoc, int x)
 Find the document position corresponding to an x coordinate on a particular document line. More...
 
Sci::Position PositionFromLineX (Sci::Line lineDoc, int x)
 
Sci::Line LineFromLocation (Point pt) const
 
void SetTopLine (Sci::Line topLineNew)
 
virtual bool AbandonPaint ()
 If painting then abandon the painting because a wider redraw is needed. More...
 
virtual void RedrawRect (PRectangle rc)
 
virtual void DiscardOverdraw ()
 
virtual void Redraw ()
 
void RedrawSelMargin (Sci::Line line=-1, bool allAfter=false)
 
PRectangle RectangleFromRange (Range r, int overlap)
 
void InvalidateRange (Sci::Position start, Sci::Position end)
 
bool UserVirtualSpace () const noexcept
 
Sci::Position CurrentPosition () const
 
bool SelectionEmpty () const noexcept
 
SelectionPosition SelectionStart ()
 
SelectionPosition SelectionEnd ()
 
void SetRectangularRange ()
 
void ThinRectangularRange ()
 
void InvalidateSelection (SelectionRange newMain, bool invalidateWholeSelection=false)
 
void InvalidateWholeSelection ()
 
SelectionRange LineSelectionRange (SelectionPosition currentPos_, SelectionPosition anchor_) const
 
void SetSelection (SelectionPosition currentPos_, SelectionPosition anchor_)
 
void SetSelection (Sci::Position currentPos_, Sci::Position anchor_)
 
void SetSelection (SelectionPosition currentPos_)
 
void SetSelection (int currentPos_)
 
void SetEmptySelection (SelectionPosition currentPos_)
 
void SetEmptySelection (Sci::Position currentPos_)
 
void MultipleSelectAdd (AddNumber addNumber)
 
bool RangeContainsProtected (Sci::Position start, Sci::Position end) const noexcept
 
bool SelectionContainsProtected () const
 
Sci::Position MovePositionOutsideChar (Sci::Position pos, Sci::Position moveDir, bool checkLineEnd=true) const
 Asks document to find a good position and then moves out of any invisible positions. More...
 
SelectionPosition MovePositionOutsideChar (SelectionPosition pos, Sci::Position moveDir, bool checkLineEnd=true) const
 
void MovedCaret (SelectionPosition newPos, SelectionPosition previousPos, bool ensureVisible, CaretPolicies policies)
 
void MovePositionTo (SelectionPosition newPos, Selection::selTypes selt=Selection::noSel, bool ensureVisible=true)
 
void MovePositionTo (Sci::Position newPos, Selection::selTypes selt=Selection::noSel, bool ensureVisible=true)
 
SelectionPosition MovePositionSoVisible (SelectionPosition pos, int moveDir)
 
SelectionPosition MovePositionSoVisible (Sci::Position pos, int moveDir)
 
Point PointMainCaret ()
 
void SetLastXChosen ()
 Choose the x position that the caret will try to stick to as it moves up and down. More...
 
void ScrollTo (Sci::Line line, bool moveThumb=true)
 
virtual void ScrollText (Sci::Line linesToMove)
 
void HorizontalScrollTo (int xPos)
 
void VerticalCentreCaret ()
 
void MoveSelectedLines (int lineDelta)
 
void MoveSelectedLinesUp ()
 
void MoveSelectedLinesDown ()
 
void MoveCaretInsideView (bool ensureVisible=true)
 
Sci::Line DisplayFromPosition (Sci::Position pos)
 
XYScrollPosition XYScrollToMakeVisible (const SelectionRange &range, const XYScrollOptions options, CaretPolicies policies)
 Ensure the caret is reasonably visible in context. More...
 
void SetXYScroll (XYScrollPosition newXY)
 
void EnsureCaretVisible (bool useMargin=true, bool vert=true, bool horiz=true)
 
void ScrollRange (SelectionRange range)
 
void ShowCaretAtCurrentPosition ()
 
void DropCaret ()
 
void CaretSetPeriod (int period)
 
void InvalidateCaret ()
 
virtual void NotifyCaretMove ()
 
virtual void UpdateSystemCaret ()
 
bool Wrapping () const noexcept
 
void NeedWrapping (Sci::Line docLineStart=0, Sci::Line docLineEnd=WrapPending::lineLarge)
 
bool WrapOneLine (Surface *surface, Sci::Line lineToWrap)
 
bool WrapLines (WrapScope ws)
 
void LinesJoin ()
 
void LinesSplit (int pixelWidth)
 
void PaintSelMargin (Surface *surfaceWindow, const PRectangle &rc)
 
void RefreshPixMaps (Surface *surfaceWindow)
 
void Paint (Surface *surfaceWindow, PRectangle rcArea)
 
Sci::Position FormatRange (bool draw, const Sci_RangeToFormat *pfr)
 
long TextWidth (uptr_t style, const char *text)
 
virtual void SetVerticalScrollPos ()=0
 
virtual void SetHorizontalScrollPos ()=0
 
virtual bool ModifyScrollBars (Sci::Line nMax, Sci::Line nPage)=0
 
virtual void ReconfigureScrollBars ()
 
void SetScrollBars ()
 
void ChangeSize ()
 
void FilterSelections ()
 
Sci::Position RealizeVirtualSpace (Sci::Position position, Sci::Position virtualSpace)
 
SelectionPosition RealizeVirtualSpace (const SelectionPosition &position)
 
void AddChar (char ch)
 
virtual void InsertCharacter (const char *s, unsigned int len, CharacterSource charSource)
 
void ClearBeforeTentativeStart ()
 
void InsertPaste (const char *text, Sci::Position len)
 
void InsertPasteShape (const char *text, Sci::Position len, PasteShape shape)
 
void ClearSelection (bool retainMultipleSelections=false)
 
void ClearAll ()
 
void ClearDocumentStyle ()
 
virtual void Cut ()
 
void PasteRectangular (SelectionPosition pos, const char *ptr, Sci::Position len)
 
virtual void Copy ()=0
 
void CopyAllowLine ()
 
virtual bool CanPaste ()
 
virtual void Paste ()=0
 
void Clear ()
 
virtual void SelectAll ()
 
virtual void Undo ()
 
virtual void Redo ()
 
void DelCharBack (bool allowLineStartDeletion)
 
virtual void ClaimSelection ()=0
 
virtual void NotifyChange ()=0
 
virtual void NotifyFocus (bool focus)
 
virtual void SetCtrlID (int identifier)
 
virtual int GetCtrlID ()
 
virtual void NotifyParent (SCNotification scn)=0
 
virtual void NotifyStyleToNeeded (Sci::Position endStyleNeeded)
 
void NotifyChar (int ch, CharacterSource charSource)
 
void NotifySavePoint (bool isSavePoint)
 
void NotifyModifyAttempt ()
 
virtual void NotifyDoubleClick (Point pt, int modifiers)
 
void NotifyHotSpotClicked (Sci::Position position, int modifiers)
 
void NotifyHotSpotDoubleClicked (Sci::Position position, int modifiers)
 
void NotifyHotSpotReleaseClick (Sci::Position position, int modifiers)
 
bool NotifyUpdateUI ()
 
void NotifyPainted ()
 
void NotifyIndicatorClick (bool click, Sci::Position position, int modifiers)
 
bool NotifyMarginClick (Point pt, int modifiers)
 
bool NotifyMarginRightClick (Point pt, int modifiers)
 
void NotifyNeedShown (Sci::Position pos, Sci::Position len)
 
void NotifyDwelling (Point pt, bool state)
 
void NotifyZoom ()
 
void NotifyModifyAttempt (Document *document, void *userData) override
 
void NotifySavePoint (Document *document, void *userData, bool atSavePoint) override
 
void CheckModificationForWrap (DocModification mh)
 
void NotifyModified (Document *document, DocModification mh, void *userData) override
 
void NotifyDeleted (Document *document, void *userData) noexcept override
 
void NotifyStyleNeeded (Document *doc, void *userData, Sci::Position endStyleNeeded) override
 
void NotifyLexerChanged (Document *doc, void *userData) override
 
void NotifyErrorOccurred (Document *doc, void *userData, int status) override
 
void NotifyMacroRecord (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
 
void ContainerNeedsUpdate (int flags) noexcept
 
void PageMove (int direction, Selection::selTypes selt=Selection::noSel, bool stuttered=false)
 Force scroll and keep position relative to top of window. More...
 
virtual std::string CaseMapString (const std::string &s, int caseMapping)
 
void ChangeCaseOfSelection (int caseMapping)
 
void LineTranspose ()
 
void LineReverse ()
 
void Duplicate (bool forLine)
 
virtual void CancelModes ()
 
void NewLine ()
 
SelectionPosition PositionUpOrDown (SelectionPosition spStart, int direction, int lastX)
 
void CursorUpOrDown (int direction, Selection::selTypes selt)
 
void ParaUpOrDown (int direction, Selection::selTypes selt)
 
Range RangeDisplayLine (Sci::Line lineVisible)
 
Sci::Position StartEndDisplayLine (Sci::Position pos, bool start)
 
Sci::Position VCHomeDisplayPosition (Sci::Position position)
 
Sci::Position VCHomeWrapPosition (Sci::Position position)
 
Sci::Position LineEndWrapPosition (Sci::Position position)
 
int HorizontalMove (unsigned int iMessage)
 
int DelWordOrLine (unsigned int iMessage)
 
virtual int KeyCommand (unsigned int iMessage)
 
virtual int KeyDefault (int, int)
 
int KeyDownWithModifiers (int key, int modifiers, bool *consumed)
 
void Indent (bool forwards)
 
virtual CaseFolderCaseFolderForEncoding ()
 
Sci::Position FindText (uptr_t wParam, sptr_t lParam)
 Search of a text in the document, in the given range. More...
 
void SearchAnchor ()
 Relocatable search support : Searches relative to current selection point and sets the selection to the found text range with each search. More...
 
Sci::Position SearchText (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
 Find text from current search anchor: Must call SearchAnchor first. More...
 
Sci::Position SearchInTarget (const char *text, Sci::Position length)
 Search for text in the target range of the document. More...
 
void GoToLine (Sci::Line lineNo)
 
virtual void CopyToClipboard (const SelectionText &selectedText)=0
 
std::string RangeText (Sci::Position start, Sci::Position end) const
 
void CopySelectionRange (SelectionText *ss, bool allowLineCopy=false)
 
void CopyRangeToClipboard (Sci::Position start, Sci::Position end)
 
void CopyText (size_t length, const char *text)
 
void SetDragPosition (SelectionPosition newPos)
 
virtual void DisplayCursor (Window::Cursor c)
 
virtual bool DragThreshold (Point ptStart, Point ptNow)
 
virtual void StartDrag ()
 
void DropAt (SelectionPosition position, const char *value, size_t lengthValue, bool moving, bool rectangular)
 
void DropAt (SelectionPosition position, const char *value, bool moving, bool rectangular)
 
bool PositionInSelection (Sci::Position pos)
 PositionInSelection returns true if position in selection. More...
 
bool PointInSelection (Point pt)
 
bool PointInSelMargin (Point pt) const
 
Window::Cursor GetMarginCursor (Point pt) const noexcept
 
void TrimAndSetSelection (Sci::Position currentPos_, Sci::Position anchor_)
 
void LineSelection (Sci::Position lineCurrentPos_, Sci::Position lineAnchorPos_, bool wholeLine)
 
void WordSelection (Sci::Position pos)
 
void DwellEnd (bool mouseMoved)
 
void MouseLeave ()
 
virtual void ButtonDownWithModifiers (Point pt, unsigned int curTime, int modifiers)
 
virtual void RightButtonDownWithModifiers (Point pt, unsigned int curTime, int modifiers)
 
void ButtonMoveWithModifiers (Point pt, unsigned int curTime, int modifiers)
 
void ButtonUpWithModifiers (Point pt, unsigned int curTime, int modifiers)
 
bool Idle ()
 
virtual void TickFor (TickReason reason)
 
virtual bool FineTickerRunning (TickReason reason)
 
virtual void FineTickerStart (TickReason reason, int millis, int tolerance)
 
virtual void FineTickerCancel (TickReason reason)
 
virtual bool SetIdle (bool)
 
virtual void SetMouseCapture (bool on)=0
 
virtual bool HaveMouseCapture ()=0
 
void SetFocusState (bool focusState)
 
Sci::Position PositionAfterArea (PRectangle rcArea) const
 
void StyleToPositionInView (Sci::Position pos)
 
Sci::Position PositionAfterMaxStyling (Sci::Position posMax, bool scrolling) const
 
void StartIdleStyling (bool truncatedLastStyling)
 
void StyleAreaBounded (PRectangle rcArea, bool scrolling)
 
bool SynchronousStylingToVisible () const noexcept
 
void IdleStyling ()
 
virtual void IdleWork ()
 
virtual void QueueIdleWork (WorkNeeded::workItems items, Sci::Position upTo=0)
 
virtual bool PaintContains (PRectangle rc)
 
bool PaintContainsMargin ()
 
void CheckForChangeOutsidePaint (Range r)
 
void SetBraceHighlight (Sci::Position pos0, Sci::Position pos1, int matchStyle)
 
void SetAnnotationHeights (Sci::Line start, Sci::Line end)
 
virtual void SetDocPointer (Document *document)
 
void SetAnnotationVisible (int visible)
 
void SetEOLAnnotationVisible (int visible)
 
Sci::Line ExpandLine (Sci::Line line)
 Recursively expand a fold, making lines visible except where they have an unexpanded parent. More...
 
void SetFoldExpanded (Sci::Line lineDoc, bool expanded)
 
void FoldLine (Sci::Line line, int action)
 
void FoldExpand (Sci::Line line, int action, int level)
 
Sci::Line ContractedFoldNext (Sci::Line lineStart) const
 
void EnsureLineVisible (Sci::Line lineDoc, bool enforcePolicy)
 Recurse up from this line to find any folds that prevent this line from being visible and unfold them all. More...
 
void FoldChanged (Sci::Line line, int levelNow, int levelPrev)
 
void NeedShown (Sci::Position pos, Sci::Position len)
 
void FoldAll (int action)
 
Sci::Position GetTag (char *tagValue, int tagNumber)
 
Sci::Position ReplaceTarget (bool replacePatterns, const char *text, Sci::Position length=-1)
 
bool PositionIsHotspot (Sci::Position position) const
 
bool PointIsHotspot (Point pt)
 
void SetHotSpotRange (const Point *pt)
 
Range GetHotSpotRange () const noexcept override
 
void SetHoverIndicatorPosition (Sci::Position position)
 
void SetHoverIndicatorPoint (Point pt)
 
int CodePage () const noexcept
 
virtual bool ValidCodePage (int) const
 
Sci::Line WrapCount (Sci::Line line)
 
void AddStyledText (const char *buffer, Sci::Position appendLength)
 
virtual sptr_t DefWndProc (unsigned int iMessage, uptr_t wParam, sptr_t lParam)=0
 
bool ValidMargin (uptr_t wParam) const noexcept
 
void StyleSetMessage (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
 
sptr_t StyleGetMessage (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
 
void SetSelectionNMessage (unsigned int iMessage, uptr_t wParam, sptr_t lParam)
 
template<typename T >
bool SetAppearance (T &variable, T value)
 
- Static Protected Member Functions inherited from Scintilla::Editor
static int ModifierFlags (bool shift, bool ctrl, bool alt, bool meta=false, bool super=false) noexcept
 
static const char * StringFromEOLMode (int eolMode) noexcept
 
static void * PtrFromSPtr (sptr_t lParam) noexcept
 
static const char * ConstCharPtrFromSPtr (sptr_t lParam) noexcept
 
static const unsigned char * ConstUCharPtrFromSPtr (sptr_t lParam) noexcept
 
static char * CharPtrFromSPtr (sptr_t lParam) noexcept
 
static unsigned char * UCharPtrFromSPtr (sptr_t lParam) noexcept
 
static void * PtrFromUPtr (uptr_t wParam) noexcept
 
static const char * ConstCharPtrFromUPtr (uptr_t wParam) noexcept
 
static sptr_t StringResult (sptr_t lParam, const char *val) noexcept
 
static sptr_t BytesResult (sptr_t lParam, const unsigned char *val, size_t len) noexcept
 
- Protected Attributes inherited from Scintilla::ScintillaBase
int displayPopupMenu
 
Menu popup
 
AutoComplete ac
 
CallTip ct
 
int listType
 0 is an autocomplete list More...
 
int maxListWidth
 
int multiAutoCMode
 Maximum width of list, in average character widths. More...
 
- Protected Attributes inherited from Scintilla::Editor
Window wMain
 On GTK+, Scintilla is a container widget holding two scroll bars whereas on Windows there is just one window with both scroll bars turned on. More...
 
Window wMargin
 May be separate when using a scroll view for wMain. More...
 
bool stylesValid
 Style resources may be expensive to allocate so are cached between uses. More...
 
ViewStyle vs
 
int technology
 
Point sizeRGBAImage
 
float scaleRGBAImage
 
MarginView marginView
 
EditView view
 
int cursorMode
 
bool hasFocus
 
bool mouseDownCaptures
 
bool mouseWheelCaptures
 
int xCaretMargin
 Ensure this many pixels visible on both sides of caret. More...
 
bool horizontalScrollBarVisible
 
int scrollWidth
 
bool verticalScrollBarVisible
 
bool endAtLastLine
 
int caretSticky
 
int marginOptions
 
bool mouseSelectionRectangularSwitch
 
bool multipleSelection
 
bool additionalSelectionTyping
 
int multiPasteMode
 
int virtualSpaceOptions
 
KeyMap kmap
 
Timer timer
 
Timer autoScrollTimer
 
Idler idler
 
Point lastClick
 
unsigned int lastClickTime
 
Point doubleClickCloseThreshold
 
int dwellDelay
 
int ticksToDwell
 
bool dwelling
 
enum Scintilla::Editor::TextUnit selectionUnit
 
Point ptMouseLast
 
enum Scintilla::Editor:: { ... }  inDragDrop
 
bool dropWentOutside
 
SelectionPosition posDrop
 
Sci::Position hotSpotClickPos
 
int lastXChosen
 
Sci::Position lineAnchorPos
 
Sci::Position originalAnchorPos
 
Sci::Position wordSelectAnchorStartPos
 
Sci::Position wordSelectAnchorEndPos
 
Sci::Position wordSelectInitialCaretPos
 
SelectionSegment targetRange
 
int searchFlags
 
Sci::Line topLine
 
Sci::Position posTopLine
 
Sci::Position lengthForEncode
 
int needUpdateUI
 
enum Scintilla::Editor:: { ... }  paintState
 
bool paintAbandonedByStyling
 
PRectangle rcPaint
 
bool paintingAllText
 
bool willRedrawAll
 
WorkNeeded workNeeded
 
int idleStyling
 
bool needIdleStyling
 
int modEventMask
 
bool commandEvents
 
SelectionText drag
 
CaretPolicies caretPolicies
 
CaretPolicy visiblePolicy
 
Sci::Position searchAnchor
 
bool recordingMacro
 
int foldAutomatic
 
WrapPending wrapPending
 
ActionDuration durationWrapOneLine
 
bool convertPastes
 

Detailed Description

Definition at line 15 of file ScintillaGTK.h.

Constructor & Destructor Documentation

◆ ScintillaGTK() [1/3]

ScintillaGTK::ScintillaGTK ( _ScintillaObject *  sci_)
explicit

◆ ScintillaGTK() [2/3]

Scintilla::ScintillaGTK::ScintillaGTK ( const ScintillaGTK )
delete

◆ ScintillaGTK() [3/3]

Scintilla::ScintillaGTK::ScintillaGTK ( ScintillaGTK &&  )
delete

◆ ~ScintillaGTK()

ScintillaGTK::~ScintillaGTK ( )
virtual

Definition at line 200 of file ScintillaGTK.cxx.

References Scintilla::Window::Destroy(), evbtn, styleIdleID, and wPreedit.

Member Function Documentation

◆ AbandonPaint()

bool ScintillaGTK::AbandonPaint ( )
overrideprivatevirtual

If painting then abandon the painting because a wider redraw is needed.

Returns
true if calling code should stop drawing.

Reimplemented from Scintilla::Editor.

Definition at line 681 of file ScintillaGTK.cxx.

References Scintilla::Editor::painting, Scintilla::Editor::paintingAllText, Scintilla::Editor::paintState, and repaintFullWindow.

◆ AddToPopUp()

void ScintillaGTK::AddToPopUp ( const char *  label,
int  cmd = 0,
bool  enabled = true 
)
overrideprivatevirtual

◆ CaseFolderForEncoding()

◆ CaseMapString()

std::string ScintillaGTK::CaseMapString ( const std::string &  s,
int  caseMapping 
)
overrideprivatevirtual

◆ CharacterSetID()

◆ ClaimSelection()

◆ ClassInit()

◆ ClipboardClearSelection()

void ScintillaGTK::ClipboardClearSelection ( GtkClipboard *  clip,
void *  data 
)
staticprivate

Definition at line 1589 of file ScintillaGTK.cxx.

Referenced by StoreOnClipboard().

◆ ClipboardGetSelection()

void ScintillaGTK::ClipboardGetSelection ( GtkClipboard *  clip,
GtkSelectionData *  selection_data,
guint  info,
void *  data 
)
staticprivate

Definition at line 1585 of file ScintillaGTK.cxx.

References GetSelection().

Referenced by StoreOnClipboard().

◆ Commit()

void ScintillaGTK::Commit ( GtkIMContext *  context,
char *  str,
ScintillaGTK sciThis 
)
staticprivate

Definition at line 2376 of file ScintillaGTK.cxx.

References CommitThis().

Referenced by RealizeThis().

◆ CommitThis()

◆ Copy()

◆ CopyToClipboard()

void ScintillaGTK::CopyToClipboard ( const SelectionText selectedText)
overrideprivatevirtual

Implements Scintilla::Editor.

Definition at line 1248 of file ScintillaGTK.cxx.

References Scintilla::SelectionText::Copy(), and StoreOnClipboard().

◆ CreateCallTipWindow()

◆ DefWndProc()

sptr_t ScintillaGTK::DefWndProc ( unsigned int  iMessage,
uptr_t  wParam,
sptr_t  lParam 
)
overrideprivatevirtual

Implements Scintilla::Editor.

Definition at line 885 of file ScintillaGTK.cxx.

◆ Destroy()

void ScintillaGTK::Destroy ( GObject *  object)
staticprivate

Definition at line 2540 of file ScintillaGTK.cxx.

References Finalise(), and scintilla_class_parent_class.

Referenced by ClassInit().

◆ DirectFunction()

sptr_t ScintillaGTK::DirectFunction ( sptr_t  ptr,
unsigned int  iMessage,
uptr_t  wParam,
sptr_t  lParam 
)
staticprivate

Definition at line 3005 of file ScintillaGTK.cxx.

References ptr, and WndProc().

Referenced by WndProc().

◆ DisplayCursor()

void ScintillaGTK::DisplayCursor ( Window::Cursor  c)
overrideprivatevirtual

◆ Dispose()

void ScintillaGTK::Dispose ( GObject *  object)
staticprivate

Definition at line 2519 of file ScintillaGTK.cxx.

References PWidget(), scintilla_class_parent_class, scrollbarh, and scrollbarv.

Referenced by ClassInit().

◆ DragDataGet()

◆ DragDataReceived()

void ScintillaGTK::DragDataReceived ( GtkWidget *  widget,
GdkDragContext *  context,
gint  x,
gint  y,
GtkSelectionData *  selection_data,
guint  info,
guint  time 
)
staticprivate

◆ DragEnd()

◆ DragLeave()

void ScintillaGTK::DragLeave ( GtkWidget *  widget,
GdkDragContext *  context,
guint  time 
)
staticprivate

◆ DragMotion()

gboolean ScintillaGTK::DragMotion ( GtkWidget *  widget,
GdkDragContext *  context,
gint  x,
gint  y,
guint  dragtime 
)
staticprivate

Definition at line 2798 of file ScintillaGTK.cxx.

References DragMotionThis(), and FromWidget().

Referenced by ClassInit().

◆ DragMotionThis()

◆ DragThreshold()

bool ScintillaGTK::DragThreshold ( Point  ptStart,
Point  ptNow 
)
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 695 of file ScintillaGTK.cxx.

References PWidget(), Scintilla::Editor::wMain, Scintilla::Point::x, and Scintilla::Point::y.

◆ DrawImeIndicator()

◆ Drop()

gboolean ScintillaGTK::Drop ( GtkWidget *  widget,
GdkDragContext *  context,
gint  x,
gint  y,
guint  time 
)
staticprivate

◆ EncodedFromUTF8()

Sci::Position ScintillaGTK::EncodedFromUTF8 ( const char *  utf8,
char *  encoded 
) const
private

◆ Expose()

gboolean ScintillaGTK::Expose ( GtkWidget *  widget,
GdkEventExpose *  ose 
)
private

◆ ExposeCT()

gboolean ScintillaGTK::ExposeCT ( GtkWidget *  widget,
GdkEventExpose *  ose,
CallTip ctip 
)
staticprivate

◆ ExposeMain()

gboolean ScintillaGTK::ExposeMain ( GtkWidget *  widget,
GdkEventExpose *  ose 
)
staticprivate

Definition at line 2701 of file ScintillaGTK.cxx.

References Expose(), and FromWidget().

Referenced by ClassInit().

◆ ExposePreedit()

gboolean ScintillaGTK::ExposePreedit ( GtkWidget *  widget,
GdkEventExpose *  ose,
ScintillaGTK sciThis 
)
staticprivate

Definition at line 2248 of file ScintillaGTK.cxx.

References ExposePreeditThis().

Referenced by Init().

◆ ExposePreeditThis()

gboolean ScintillaGTK::ExposePreeditThis ( GtkWidget *  widget,
GdkEventExpose *  ose 
)
private

◆ ExposeText()

gboolean ScintillaGTK::ExposeText ( GtkWidget *  widget,
GdkEventExpose *  ose,
ScintillaGTK sciThis 
)
staticprivate

Definition at line 2697 of file ScintillaGTK.cxx.

References ExposeTextThis().

Referenced by Init().

◆ ExposeTextThis()

◆ Finalise()

void ScintillaGTK::Finalise ( )
overrideprivatevirtual

◆ FineTickerCancel()

void ScintillaGTK::FineTickerCancel ( TickReason  reason)
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 898 of file ScintillaGTK.cxx.

References Scintilla::ScintillaGTK::TimeThunk::timer, Scintilla::Editor::timer, and timers.

Referenced by Finalise(), and FineTickerStart().

◆ FineTickerRunning()

bool ScintillaGTK::FineTickerRunning ( TickReason  reason)
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 889 of file ScintillaGTK.cxx.

References Scintilla::ScintillaGTK::TimeThunk::timer, and timers.

◆ FineTickerStart()

void ScintillaGTK::FineTickerStart ( TickReason  reason,
int  millis,
int  tolerance 
)
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 893 of file ScintillaGTK.cxx.

References FineTickerCancel(), TimeOut(), Scintilla::ScintillaGTK::TimeThunk::timer, and timers.

◆ FocusIn()

gint ScintillaGTK::FocusIn ( GtkWidget *  widget,
GdkEventFocus *  event 
)
staticprivate

Definition at line 470 of file ScintillaGTK.cxx.

References FocusInThis(), and FromWidget().

Referenced by ClassInit().

◆ FocusInThis()

gint ScintillaGTK::FocusInThis ( GtkWidget *  widget)
private

◆ FocusOut()

gint ScintillaGTK::FocusOut ( GtkWidget *  widget,
GdkEventFocus *  event 
)
staticprivate

Definition at line 490 of file ScintillaGTK.cxx.

References FocusOutThis(), and FromWidget().

Referenced by ClassInit().

◆ FocusOutThis()

gint ScintillaGTK::FocusOutThis ( GtkWidget *  widget)
private

◆ ForAll()

void ScintillaGTK::ForAll ( GtkCallback  callback,
gpointer  callback_data 
)
private

◆ FromWidget()

◆ FullPaint()

void ScintillaGTK::FullPaint ( )
private

Definition at line 986 of file ScintillaGTK.cxx.

References Scintilla::Window::InvalidateAll(), and wText.

Referenced by ExposeTextThis(), and UnclaimSelection().

◆ GetAccessible()

AtkObject * ScintillaGTK::GetAccessible ( GtkWidget *  widget)
staticprivate

Definition at line 3001 of file ScintillaGTK.cxx.

References FromWidget(), and GetAccessibleThis().

Referenced by ClassInit().

◆ GetAccessibleThis()

AtkObject * ScintillaGTK::GetAccessibleThis ( GtkWidget *  widget)
private

◆ GetClientRectangle()

◆ GetGtkSelectionText()

◆ GetSelection()

void ScintillaGTK::GetSelection ( GtkSelectionData *  selection_data,
guint  info,
SelectionText text 
)
staticprivate

◆ HaveMouseCapture()

bool ScintillaGTK::HaveMouseCapture ( )
overrideprivatevirtual

Implements Scintilla::Editor.

Definition at line 934 of file ScintillaGTK.cxx.

References capturedMouse.

Referenced by MouseRelease().

◆ IdleCallback()

gboolean ScintillaGTK::IdleCallback ( gpointer  pSci)
staticprivate

Definition at line 2884 of file ScintillaGTK.cxx.

References Scintilla::Editor::Idle(), and SetIdle().

Referenced by SetIdle().

◆ IdleWork()

void ScintillaGTK::IdleWork ( )
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 2905 of file ScintillaGTK.cxx.

References Scintilla::Editor::IdleWork(), and styleIdleID.

Referenced by StyleIdle().

◆ Init()

◆ InsertSelection()

◆ IsStringAtom()

bool ScintillaGTK::IsStringAtom ( GdkAtom  type)
staticprivate

Definition at line 1381 of file ScintillaGTK.cxx.

References atomUTF8, and atomUTF8Mime.

Referenced by GetGtkSelectionText(), ReceivedDrop(), and ReceivedSelection().

◆ KeyDefault()

int ScintillaGTK::KeyDefault ( int  key,
int  modifiers 
)
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 1242 of file ScintillaGTK.cxx.

References NotifyKey().

◆ KeyPress()

gboolean ScintillaGTK::KeyPress ( GtkWidget *  widget,
GdkEventKey *  event 
)
staticprivate

Definition at line 2193 of file ScintillaGTK.cxx.

References FromWidget(), and KeyThis().

Referenced by ClassInit().

◆ KeyRelease()

gboolean ScintillaGTK::KeyRelease ( GtkWidget *  widget,
GdkEventKey *  event 
)
staticprivate

Definition at line 2198 of file ScintillaGTK.cxx.

References FromWidget(), and im_context.

Referenced by ClassInit().

◆ KeyThis()

◆ KoreanIME()

bool ScintillaGTK::KoreanIME ( )
private

Definition at line 2254 of file ScintillaGTK.cxx.

References im_context, and lastNonCommonScript.

Referenced by PreeditChanged(), and PreeditChangedInlineThis().

◆ MainForAll()

void ScintillaGTK::MainForAll ( GtkContainer *  container,
gboolean  include_internals,
GtkCallback  callback,
gpointer  callback_data 
)
staticprivate

Definition at line 403 of file ScintillaGTK.cxx.

References ForAll(), and FromWidget().

Referenced by ClassInit().

◆ MainObject()

GObject * ScintillaGTK::MainObject ( ) const
noexcept

Definition at line 1471 of file ScintillaGTK.cxx.

References PWidget(), and Scintilla::Editor::wMain.

◆ Map()

void ScintillaGTK::Map ( GtkWidget *  widget)
staticprivate

Definition at line 365 of file ScintillaGTK.cxx.

References FromWidget(), and MapThis().

Referenced by ClassInit().

◆ MapThis()

◆ ModifyScrollBars()

◆ Motion()

gint ScintillaGTK::Motion ( GtkWidget *  widget,
GdkEventMotion *  event 
)
staticprivate

◆ MouseRelease()

◆ MoveImeCarets()

◆ NotifyChange()

void ScintillaGTK::NotifyChange ( )
overrideprivatevirtual

◆ NotifyFocus()

◆ NotifyKey()

void ScintillaGTK::NotifyKey ( int  key,
int  modifiers 
)
private

◆ NotifyParent()

◆ NotifyURIDropped()

void ScintillaGTK::NotifyURIDropped ( const char *  list)
private

◆ operator=() [1/2]

ScintillaGTK & Scintilla::ScintillaGTK::operator= ( const ScintillaGTK )
delete

◆ operator=() [2/2]

ScintillaGTK & Scintilla::ScintillaGTK::operator= ( ScintillaGTK &&  )
delete

◆ OwnPrimarySelection()

bool ScintillaGTK::OwnPrimarySelection ( )
private

Definition at line 1357 of file ScintillaGTK.cxx.

References Scintilla::Window::Created(), PWindow(), and wSelection.

Referenced by ClaimSelection(), PressThis(), and UnclaimSelection().

◆ PaintContains()

◆ Paste()

void ScintillaGTK::Paste ( )
overrideprivatevirtual

Implements Scintilla::Editor.

Definition at line 1308 of file ScintillaGTK.cxx.

References RequestSelection().

◆ PopUpCB()

void ScintillaGTK::PopUpCB ( GtkMenuItem *  menuItem,
ScintillaGTK sciThis 
)
staticprivate

Definition at line 2940 of file ScintillaGTK.cxx.

References Scintilla::ScintillaBase::Command().

Referenced by AddToPopUp().

◆ PreeditChanged()

void ScintillaGTK::PreeditChanged ( GtkIMContext *  context,
ScintillaGTK sciThis 
)
staticprivate

◆ PreeditChangedInlineThis()

◆ PreeditChangedWindowedThis()

◆ Press()

gint ScintillaGTK::Press ( GtkWidget *  widget,
GdkEventButton *  event 
)
staticprivate

Definition at line 1828 of file ScintillaGTK.cxx.

References FromWidget(), PressThis(), and WindowFromWidget().

Referenced by ClassInit().

◆ PressCT()

gboolean ScintillaGTK::PressCT ( GtkWidget *  widget,
GdkEventButton *  event,
ScintillaGTK sciThis 
)
staticprivate

◆ PressThis()

◆ PrimaryClear()

gboolean ScintillaGTK::PrimaryClear ( GtkWidget *  widget,
GdkEventSelection *  event,
ScintillaGTK sciThis 
)
staticprivate

Definition at line 1623 of file ScintillaGTK.cxx.

References parentClass, and UnclaimSelection().

Referenced by RealizeThis().

◆ PrimarySelection()

void ScintillaGTK::PrimarySelection ( GtkWidget *  widget,
GtkSelectionData *  selection_data,
guint  info,
guint  time_stamp,
ScintillaGTK sciThis 
)
staticprivate

◆ QueueIdleWork()

void ScintillaGTK::QueueIdleWork ( WorkNeeded::workItems  items,
Sci::Position  upTo 
)
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 2910 of file ScintillaGTK.cxx.

References Scintilla::Editor::QueueIdleWork(), StyleIdle(), and styleIdleID.

◆ Realize()

void ScintillaGTK::Realize ( GtkWidget *  widget)
staticprivate

Definition at line 303 of file ScintillaGTK.cxx.

References FromWidget(), and RealizeThis().

Referenced by ClassInit().

◆ RealizeText()

void ScintillaGTK::RealizeText ( GtkWidget *  widget,
void *   
)
staticprivate

Definition at line 2504 of file ScintillaGTK.cxx.

References WindowFromWidget().

Referenced by RealizeThis(), and StyleSetText().

◆ RealizeThis()

◆ ReceivedClipboard()

void ScintillaGTK::ReceivedClipboard ( GtkClipboard *  clipBoard,
GtkSelectionData *  selection_data 
)
noexcept

Definition at line 1475 of file ScintillaGTK.cxx.

References SC_STATUS_FAILURE.

◆ ReceivedDrop()

◆ ReceivedSelection()

void ScintillaGTK::ReceivedSelection ( GtkSelectionData *  selection_data)
private

◆ ReconfigureScrollBars()

void ScintillaGTK::ReconfigureScrollBars ( )
overrideprivatevirtual

◆ RequestSelection()

void ScintillaGTK::RequestSelection ( GdkAtom  atomSelection)
private

Definition at line 1297 of file ScintillaGTK.cxx.

References atomSought, atomUTF8, PWidget(), and Scintilla::Editor::wMain.

Referenced by Paste(), and PressThis().

◆ Resize()

◆ ScrollEvent()

◆ ScrollHSignal()

void ScintillaGTK::ScrollHSignal ( GtkAdjustment *  adj,
ScintillaGTK sciThis 
)
staticprivate

◆ ScrollSignal()

void ScintillaGTK::ScrollSignal ( GtkAdjustment *  adj,
ScintillaGTK sciThis 
)
staticprivate

Definition at line 2727 of file ScintillaGTK.cxx.

References Scintilla::Editor::errorStatus, SC_STATUS_FAILURE, and Scintilla::Editor::ScrollTo().

Referenced by Init().

◆ ScrollText()

void ScintillaGTK::ScrollText ( Sci::Line  linesToMove)
overrideprivatevirtual

◆ SelectionClear()

gint ScintillaGTK::SelectionClear ( GtkWidget *  widget,
GdkEventSelection *  selection_event 
)
staticprivate

Definition at line 2766 of file ScintillaGTK.cxx.

References FromWidget(), parentClass, and UnclaimSelection().

Referenced by ClassInit().

◆ SelectionGet()

void ScintillaGTK::SelectionGet ( GtkWidget *  widget,
GtkSelectionData *  selection_data,
guint  info,
guint  time 
)
staticprivate

◆ SelectionReceived()

void ScintillaGTK::SelectionReceived ( GtkWidget *  widget,
GtkSelectionData *  selection_data,
guint  time 
)
staticprivate

Definition at line 2743 of file ScintillaGTK.cxx.

References FromWidget(), and ReceivedSelection().

Referenced by ClassInit().

◆ SetCandidateWindowPos()

◆ SetDocPointer()

◆ SetHorizontalScrollPos()

void ScintillaGTK::SetHorizontalScrollPos ( )
overrideprivatevirtual

◆ SetIdle()

bool ScintillaGTK::SetIdle ( bool  on)
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 905 of file ScintillaGTK.cxx.

References IdleCallback(), Scintilla::Editor::idler, Scintilla::Idler::idlerID, and Scintilla::Idler::state.

Referenced by IdleCallback().

◆ SetMouseCapture()

void ScintillaGTK::SetMouseCapture ( bool  on)
overrideprivatevirtual

◆ SetVerticalScrollPos()

void ScintillaGTK::SetVerticalScrollPos ( )
overrideprivatevirtual

◆ SizeAllocate()

void ScintillaGTK::SizeAllocate ( GtkWidget *  widget,
GtkAllocation *  allocation 
)
staticprivate

◆ SizeRequest()

void ScintillaGTK::SizeRequest ( GtkWidget *  widget,
GtkRequisition *  requisition 
)
staticprivate

Definition at line 495 of file ScintillaGTK.cxx.

References FromWidget(), PWidget(), scrollbarh, and scrollbarv.

Referenced by ClassInit().

◆ StartDrag()

◆ StoreOnClipboard()

void ScintillaGTK::StoreOnClipboard ( SelectionText clipText)
private

◆ StyleIdle()

gboolean ScintillaGTK::StyleIdle ( gpointer  pSci)
staticprivate

Definition at line 2898 of file ScintillaGTK.cxx.

References IdleWork().

Referenced by QueueIdleWork().

◆ StyleSetText()

void ScintillaGTK::StyleSetText ( GtkWidget *  widget,
GtkStyle *  previous,
void *   
)
staticprivate

Definition at line 2500 of file ScintillaGTK.cxx.

References RealizeText().

Referenced by RealizeThis().

◆ TargetAsUTF8()

◆ TimeOut()

int ScintillaGTK::TimeOut ( gpointer  ptt)
staticprivate

◆ UnclaimSelection()

void ScintillaGTK::UnclaimSelection ( GdkEventSelection *  selection_event)
private

◆ UnMap()

void ScintillaGTK::UnMap ( GtkWidget *  widget)
staticprivate

Definition at line 386 of file ScintillaGTK.cxx.

References FromWidget(), and UnMapThis().

Referenced by ClassInit().

◆ UnMapThis()

void ScintillaGTK::UnMapThis ( )
private

◆ UnRealize()

void ScintillaGTK::UnRealize ( GtkWidget *  widget)
staticprivate

Definition at line 335 of file ScintillaGTK.cxx.

References FromWidget(), and UnRealizeThis().

Referenced by ClassInit().

◆ UnRealizeThis()

void ScintillaGTK::UnRealizeThis ( GtkWidget *  widget)
private

◆ ValidCodePage()

bool ScintillaGTK::ValidCodePage ( int  codePage) const
overrideprivatevirtual

Reimplemented from Scintilla::Editor.

Definition at line 812 of file ScintillaGTK.cxx.

References SC_CP_UTF8.

◆ WndProc()

sptr_t ScintillaGTK::WndProc ( unsigned int  iMessage,
uptr_t  wParam,
sptr_t  lParam 
)
overridevirtual

Reimplemented from Scintilla::Editor.

Definition at line 822 of file ScintillaGTK.cxx.

References accessibilityEnabled, accessible, Scintilla::Editor::CharPtrFromSPtr(), Scintilla::Editor::ConstCharPtrFromUPtr(), DirectFunction(), EncodedFromUTF8(), Scintilla::Editor::errorStatus, Scintilla::ScintillaGTKAccessible::FromAccessible(), Scintilla::ScintillaGTKAccessible::NotifyReadOnly(), PWidget(), rectangularSelectionModifier, SC_STATUS_BADALLOC, SC_STATUS_FAILURE, SCI_ENCODEDFROMUTF8, SCI_GETACCESSIBILITY, SCI_GETDIRECTFUNCTION, SCI_GETDIRECTPOINTER, SCI_GETRECTANGULARSELECTIONMODIFIER, SCI_GRABFOCUS, SCI_SETACCESSIBILITY, SCI_SETREADONLY, SCI_SETRECTANGULARSELECTIONMODIFIER, SCI_TARGETASUTF8, Scintilla::ScintillaGTKAccessible::SetAccessibility(), TargetAsUTF8(), Scintilla::Editor::wMain, and Scintilla::ScintillaBase::WndProc().

Referenced by Scintilla::ScintillaGTKAccessible::AddSelection(), DirectFunction(), Scintilla::ScintillaGTKAccessible::GetCaretOffset(), Scintilla::ScintillaGTKAccessible::GetCharacterExtents(), Scintilla::ScintillaGTKAccessible::GetOffsetAtPoint(), Scintilla::ScintillaGTKAccessible::GetRunAttributes(), Scintilla::ScintillaGTKAccessible::GetTextAfterOffset(), Scintilla::ScintillaGTKAccessible::GetTextAtOffset(), Scintilla::ScintillaGTKAccessible::GetTextBeforeOffset(), Scintilla::ScintillaGTKAccessible::RemoveSelection(), scintilla_send_message(), Scintilla::ScintillaGTKAccessible::SetCaretOffset(), Scintilla::ScintillaGTKAccessible::SetSelection(), Scintilla::ScintillaGTKAccessible::SetTextContents(), and Scintilla::ScintillaGTKAccessible::UpdateCursor().

Friends And Related Function Documentation

◆ ScintillaGTKAccessible

friend class ScintillaGTKAccessible
friend

Definition at line 16 of file ScintillaGTK.h.

Member Data Documentation

◆ accessibilityEnabled

int Scintilla::ScintillaGTK::accessibilityEnabled
private

Definition at line 72 of file ScintillaGTK.h.

Referenced by Scintilla::ScintillaGTKAccessible::Enabled(), and WndProc().

◆ accessible

AtkObject* Scintilla::ScintillaGTK::accessible
private

Definition at line 73 of file ScintillaGTK.h.

Referenced by Finalise(), GetAccessibleThis(), SetDocPointer(), and WndProc().

◆ adjustmenth

GtkAdjustment* Scintilla::ScintillaGTK::adjustmenth
private

Definition at line 23 of file ScintillaGTK.h.

Referenced by Init(), ModifyScrollBars(), PressThis(), and SetHorizontalScrollPos().

◆ adjustmentv

GtkAdjustment* Scintilla::ScintillaGTK::adjustmentv
private

Definition at line 22 of file ScintillaGTK.h.

Referenced by Init(), ModifyScrollBars(), PressThis(), and SetVerticalScrollPos().

◆ atomDROPFILES_DND

GdkAtom ScintillaGTK::atomDROPFILES_DND = nullptr
staticprivate

Definition at line 43 of file ScintillaGTK.h.

Referenced by ClassInit(), and ReceivedDrop().

◆ atomSought

GdkAtom Scintilla::ScintillaGTK::atomSought
private

Definition at line 44 of file ScintillaGTK.h.

Referenced by ReceivedSelection(), and RequestSelection().

◆ atomString

GdkAtom ScintillaGTK::atomString = nullptr
staticprivate

Definition at line 41 of file ScintillaGTK.h.

Referenced by ClassInit(), and ReceivedSelection().

◆ atomUriList

GdkAtom ScintillaGTK::atomUriList = nullptr
staticprivate

Definition at line 42 of file ScintillaGTK.h.

Referenced by ClassInit(), and ReceivedDrop().

◆ atomUTF8

GdkAtom ScintillaGTK::atomUTF8 = nullptr
staticprivate

◆ atomUTF8Mime

GdkAtom ScintillaGTK::atomUTF8Mime = nullptr
staticprivate

Definition at line 40 of file ScintillaGTK.h.

Referenced by ClassInit(), InsertSelection(), and IsStringAtom().

◆ buttonMouse

guint Scintilla::ScintillaGTK::buttonMouse
private

Definition at line 31 of file ScintillaGTK.h.

Referenced by PressThis(), and StartDrag().

◆ capturedMouse

bool Scintilla::ScintillaGTK::capturedMouse
private

Definition at line 32 of file ScintillaGTK.h.

Referenced by HaveMouseCapture(), and SetMouseCapture().

◆ dragWasDropped

bool Scintilla::ScintillaGTK::dragWasDropped
private

Definition at line 33 of file ScintillaGTK.h.

Referenced by DragDataGet(), DragEnd(), ReceivedDrop(), and StartDrag().

◆ evbtn

GdkEvent* Scintilla::ScintillaGTK::evbtn
private

Definition at line 30 of file ScintillaGTK.h.

Referenced by PressThis(), StartDrag(), and ~ScintillaGTK().

◆ horizontalScrollBarHeight

int Scintilla::ScintillaGTK::horizontalScrollBarHeight
private

Definition at line 26 of file ScintillaGTK.h.

Referenced by GetClientRectangle(), and Resize().

◆ im_context

◆ lastKey

int Scintilla::ScintillaGTK::lastKey
private

Definition at line 34 of file ScintillaGTK.h.

◆ lastNonCommonScript

GUnicodeScript Scintilla::ScintillaGTK::lastNonCommonScript
private

Definition at line 54 of file ScintillaGTK.h.

Referenced by KoreanIME().

◆ lastWheelMouseDirection

gint Scintilla::ScintillaGTK::lastWheelMouseDirection
private

Definition at line 59 of file ScintillaGTK.h.

Referenced by ScrollEvent().

◆ lastWheelMouseTime

gint64 Scintilla::ScintillaGTK::lastWheelMouseTime
private

Definition at line 58 of file ScintillaGTK.h.

Referenced by ScrollEvent().

◆ linesPerScroll

unsigned int Scintilla::ScintillaGTK::linesPerScroll
private

Definition at line 57 of file ScintillaGTK.h.

Referenced by ScintillaGTK(), and ScrollEvent().

◆ parentClass

GtkWidgetClass* Scintilla::ScintillaGTK::parentClass
private

Definition at line 37 of file ScintillaGTK.h.

Referenced by Init(), PrimaryClear(), SelectionClear(), and UnRealizeThis().

◆ preeditInitialized

bool Scintilla::ScintillaGTK::preeditInitialized
private

Definition at line 50 of file ScintillaGTK.h.

Referenced by FocusInThis(), and RealizeThis().

◆ primary

SelectionText Scintilla::ScintillaGTK::primary
private

◆ rectangularSelectionModifier

int Scintilla::ScintillaGTK::rectangularSelectionModifier
private

Definition at line 35 of file ScintillaGTK.h.

Referenced by Motion(), MouseRelease(), PressThis(), ScintillaGTK(), and WndProc().

◆ repaintFullWindow

bool Scintilla::ScintillaGTK::repaintFullWindow
private

Definition at line 69 of file ScintillaGTK.h.

Referenced by AbandonPaint(), ExposeTextThis(), and ModifyScrollBars().

◆ rgnUpdate

GdkRegion* Scintilla::ScintillaGTK::rgnUpdate
private

Definition at line 67 of file ScintillaGTK.h.

Referenced by ExposeTextThis(), and PaintContains().

◆ sci

◆ scrollbarh

Window Scintilla::ScintillaGTK::scrollbarh
private

◆ scrollbarv

Window Scintilla::ScintillaGTK::scrollbarv
private

◆ smoothScrollX

gdouble Scintilla::ScintillaGTK::smoothScrollX
private

Definition at line 62 of file ScintillaGTK.h.

Referenced by ScrollEvent().

◆ smoothScrollY

gdouble Scintilla::ScintillaGTK::smoothScrollY
private

Definition at line 61 of file ScintillaGTK.h.

Referenced by ScrollEvent().

◆ styleIdleID

guint Scintilla::ScintillaGTK::styleIdleID
private

Definition at line 71 of file ScintillaGTK.h.

Referenced by IdleWork(), QueueIdleWork(), and ~ScintillaGTK().

◆ timers

TimeThunk Scintilla::ScintillaGTK::timers[tickDwell+1]
private

Definition at line 105 of file ScintillaGTK.h.

Referenced by FineTickerCancel(), FineTickerRunning(), FineTickerStart(), and Init().

◆ verticalScrollBarWidth

int Scintilla::ScintillaGTK::verticalScrollBarWidth
private

Definition at line 25 of file ScintillaGTK.h.

Referenced by GetClientRectangle(), and Resize().

◆ wheelMouseIntensity

gint Scintilla::ScintillaGTK::wheelMouseIntensity
private

Definition at line 60 of file ScintillaGTK.h.

Referenced by ScrollEvent().

◆ wPreedit

Window Scintilla::ScintillaGTK::wPreedit
private

◆ wPreeditDraw

Window Scintilla::ScintillaGTK::wPreeditDraw
private

Definition at line 52 of file ScintillaGTK.h.

Referenced by Init(), PreeditChangedWindowedThis(), RealizeThis(), and UnRealizeThis().

◆ wSelection

Window Scintilla::ScintillaGTK::wSelection
private

Definition at line 24 of file ScintillaGTK.h.

Referenced by ClaimSelection(), OwnPrimarySelection(), RealizeThis(), and UnRealizeThis().

◆ wText


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