public NeedShownEventArgs(NativeScintillaEventArgs nsea, SciLexerBase sci) { _Position = nsea.SCNotification.position; _Length = nsea.SCNotification.length; _FirstLine = sci.LineFromPosition(_Position); _LastLine = sci.LineFromPosition(_Position + _Length - 1); }
public UserListSelectionEventArgs(NativeScintillaEventArgs nsea, Encoding encoding) { _ListType = nsea.SCNotification.listType; _Text = Utilities.IntPtrToString(encoding, nsea.SCNotification.text, nsea.SCNotification.length); // _Text = Utilities.ObtenerTextoMemoriaDll(nsea.SCNotification.text, encoding); _Position = nsea.SCNotification.position; }
public ModifiedEventArgs(NativeScintillaEventArgs nsea, Encoding enc) { _ModificationType = (ScintillaCsharp.Base.ModificationType)nsea.SCNotification.modificationType; _Position = nsea.SCNotification.position; _Length = nsea.SCNotification.length; _LinesAdded = nsea.SCNotification.linesAdded; // _Text = Utilities.ObtenerTextoMemoriaDll(nsea.SCNotification.text, enc); _Text = Utilities.IntPtrToString(enc, nsea.SCNotification.text, _Length); _Line = nsea.SCNotification.line; _FoldLevelNow = nsea.SCNotification.foldLevelNow; _FoldLevelPrev = nsea.SCNotification.foldLevelPrev; }
private void OnStyleNeeded(NativeScintillaEventArgs nsea) { if (StyleNeeded != null) { int startPos = GetEndStyled(); int lineNumber = LineFromPosition(startPos); startPos = PositionFromLine(lineNumber); StyleNeeded(this, new StyleNeededEventArgs(startPos, nsea.SCNotification.position, this)); } }
private void OnSetFocus(NativeScintillaEventArgs nsea) { // TODO: Implement OnSetFocus }
private void OnDoubleClick(NativeScintillaEventArgs nsea) { if (DoubleClick != null) DoubleClick(this, new EventArgs()); }
public MarginClickEventArgs(NativeScintillaEventArgs nsea) { _Modifiers = (CtrlKeys)nsea.SCNotification.modifiers; _Position = nsea.SCNotification.position; _Margin = nsea.SCNotification.margin; }
private void OnDwellStart(NativeScintillaEventArgs nsea) { if (DwellSart != null) DwellSart(this, new DwellEventArgs(nsea)); }
private void ReflectNotify(ref Message m) { SCNotification scn = (SCNotification)Marshal.PtrToStructure(m.LParam, typeof(SCNotification)); NativeScintillaEventArgs nsea = new NativeScintillaEventArgs(m, scn); switch (scn.nmhdr.code) { case Sci.SCN_STYLENEEDED: OnStyleNeeded(nsea); break; case Sci.SCN_CHARADDED: OnCharAdded(nsea); break; case Sci.SCN_SAVEPOINTREACHED: OnSavePointReached(nsea); break; case Sci.SCN_SAVEPOINTLEFT: OnSavePointLeft(nsea); break; case Sci.SCN_MODIFYATTEMPTRO: OnModifyAttemptRO(nsea); break; case Sci.SCN_KEY: OnKey(nsea); break; case Sci.SCN_DOUBLECLICK: OnDoubleClick(nsea); break; case Sci.SCN_UPDATEUI: OnUpdateUI(nsea); break; case Sci.SCN_MODIFIED: OnModified(nsea); break; case Sci.SCN_MACRORECORD: OnMacroRecord(nsea); break; case Sci.SCN_MARGINCLICK: OnMarginClick(nsea); break; case Sci.SCN_NEEDSHOWN: OnNeedShown(nsea); break; case Sci.SCN_PAINTED: OnPainted(nsea); break; case Sci.SCN_USERLISTSELECTION: OnUserListSelection(nsea); break; case Sci.SCN_URIDROPPED: OnUriDropped(nsea); break; case Sci.SCN_DWELLSTART: OnDwellStart(nsea); break; case Sci.SCN_DWELLEND: OnDwellEnd(nsea); break; case Sci.SCN_ZOOM: OnZoom(nsea); break; case Sci.SCN_HOTSPOTCLICK: OnHotSpotClick(nsea); break; case Sci.SCN_HOTSPOTDOUBLECLICK: OnHotSpotDblClick(nsea); break; case Sci.SCN_HOTSPOTRELEASECLICK: OnHotSpotReleaseClick(nsea); break; case Sci.SCN_INDICATORCLICK: OnIndicatorClick(nsea); break; case Sci.SCN_INDICATORRELEASE: OnIndicatorRelease(nsea); break; case Sci.SCN_CALLTIPCLICK: OnCalltipClick(nsea); break; case Sci.SCN_AUTOCSELECTION: OnAutoCompleteSelection(nsea); break; case Sci.SCN_AUTOCCANCELLED: OnAutoCompleteCancelled(nsea); break; case Sci.SCN_AUTOCCHARDELETED: OnAutoCompleteCharDeleted(nsea); break; } }
private void OnUserListSelection(NativeScintillaEventArgs nsea) { if (UserListSelection != null) UserListSelection(this, new UserListSelectionEventArgs(nsea, _encoding)); }
private void OnModified(NativeScintillaEventArgs nsea) { if (Modified != null) Modified(this, new ModifiedEventArgs(nsea, _encoding)); }
private void OnMarginClick(NativeScintillaEventArgs nsea) { if (MarginClick != null) MarginClick(this, new MarginClickEventArgs(nsea)); }
private void OnMacroRecord(NativeScintillaEventArgs nsea) { if (MacroRecord != null) MacroRecord(this, new EventArgs()); }
private void OnKey(NativeScintillaEventArgs nsea) { // TODO: Implement OnKey. // WINDOWS-en ez du notifikazio hau eragiten scintilla-k // honegatik ez det inplementatu }
private void OnIndicatorRelease(NativeScintillaEventArgs nsea) { if (IndicatorRelease != null) IndicatorRelease(this, new IndicatorEventArgs(nsea)); }
private void OnIndicatorClick(NativeScintillaEventArgs nsea) { if (IndicatorClick != null) IndicatorClick(this, new IndicatorEventArgs(nsea)); }
private void OnHotSpotReleaseClick(NativeScintillaEventArgs nsea) { if (HotSpotReleaseClick != null) HotSpotReleaseClick(this, new HotSpotEventArgs(nsea)); }
private void OnUpdateUI(NativeScintillaEventArgs nsea) { if (UpdateUI != null) { UpdateUI(this, new UpdateUIEventArgs((UpdateUIType)nsea.SCNotification.updated)); } }
private void OnUriDropped(NativeScintillaEventArgs nsea) { // Inplementatu gabe. Windows-en ez omen da gertatzen. }
private void OnModifyAttemptRO(NativeScintillaEventArgs nsea) { if (ModifyAttemptRO != null) ModifyAttemptRO(this, new EventArgs()); }
private void OnZoom(NativeScintillaEventArgs nsea) { if (Zoom != null) Zoom(this, new EventArgs()); }
public IndicatorEventArgs(NativeScintillaEventArgs nsea) { _Modifiers = (CtrlKeys)nsea.SCNotification.modifiers; _Position = nsea.SCNotification.position; }
private void OnNeedShown(NativeScintillaEventArgs nsea) { if (NeedShown != null) NeedShown(this, new NeedShownEventArgs(nsea, this)); }
private void OnDwellEnd(NativeScintillaEventArgs nsea) { if (DwellEnd != null) DwellEnd(this, new DwellEventArgs(nsea)); }
public CallTipEventArgs(NativeScintillaEventArgs nsea) { _Position = (CallTipPosition)nsea.SCNotification.position; }
private void OnPainted(NativeScintillaEventArgs nsea) { if (Painted != null) Painted(this, new EventArgs()); }
private void OnSavePointLeft(NativeScintillaEventArgs nsea) { if (SavePointLeft != null) SavePointLeft(this, new EventArgs()); }
private void OnSavePointReached(NativeScintillaEventArgs nsea) { if (SavePointReached != null) SavePointReached(this, new EventArgs()); }
public DwellEventArgs(NativeScintillaEventArgs nsea) { _Position = nsea.SCNotification.position; _X = nsea.SCNotification.x; _Y = nsea.SCNotification.y; }
private void OnCharAdded(NativeScintillaEventArgs nsea) { if (CharAdded != null) CharAdded(this, new CharAddedEventArgs(nsea.SCNotification.ch)); }