Interface IDisplayBuffer

Index

Properties

Methods

Properties

public behaviors: any

public buffer: ITextBuffer

public charWidthsByScope: any

public constructor: IDisplayBufferStatic

public declaredPropertyValues: any

public eventHandlersByEventName: any

public foldsByMarkerId: any

public horizontalScrollMargin: number

public longestScreenRow: number

public markers: { [index: number]: AtomCore.IDisplayBufferMarker; }

(): IDisplayBufferMarker

Returns

IDisplayBufferMarker

public maxLineLength: number

public pendingChangeEvent: any

public rowMap: any

public screenLines: ITokenizedLine[]

public softWrap: boolean

public subscriptionCounts: any

public subscriptions: ISubscription[]

public subscriptionsByObject: any

public tokenizedBuffer: ITokenizedBuffer

public verticalScrollMargin: number

Methods

public bufferPositionForScreenPosition(bufferPosition: any, options: any): any

Parameters

  • bufferPosition: any
  • options: any

Returns

any

public bufferRangeForScopeAtPosition(selector: any, position: any): any

Parameters

  • selector: any
  • position: any

Returns

any

public bufferRangeForScreenRange(screenRange: IPoint[]): IRange

Parameters

Returns

IRange

public bufferRangeForScreenRange(screenRange: IRange): IRange

Parameters

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }): IRange

Parameters

  • screenRange: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: number[]; end: TextBuffer.IPoint; }): IRange

Parameters

  • screenRange: { start: number[]; end: TextBuffer.IPoint; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: { row: number; col: number; }; end: TextBuffer.IPoint; }): IRange

Parameters

  • screenRange: { start: { row: number; col: number; }; end: TextBuffer.IPoint; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: TextBuffer.IPoint; end: number[]; }): IRange

Parameters

  • screenRange: { start: TextBuffer.IPoint; end: number[]; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: number[]; end: number[]; }): IRange

Parameters

  • screenRange: { start: number[]; end: number[]; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: { row: number; col: number; }; end: number[]; }): IRange

Parameters

  • screenRange: { start: { row: number; col: number; }; end: number[]; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: TextBuffer.IPoint; end: { row: number; col: number; }; }): IRange

Parameters

  • screenRange: { start: TextBuffer.IPoint; end: { row: number; col: number; }; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: number[]; end: { row: number; col: number; }; }): IRange

Parameters

  • screenRange: { start: number[]; end: { row: number; col: number; }; }

Returns

IRange

public bufferRangeForScreenRange(screenRange: { start: { row: number; col: number; }; end: { row: number; col: number; }; }): IRange

Parameters

  • screenRange: { start: { row: number; col: number; }; end: { row: number; col: number; }; }

Returns

IRange

public bufferRowForScreenRow(screenRow: number): number

Parameters

  • screenRow: number

Returns

number

public bufferRowsForScreenRows(startScreenRow: any, endScreenRow: any): any

Parameters

  • startScreenRow: any
  • endScreenRow: any

Returns

any

public buildScreenLines(startBufferRow: any, endBufferRow: any): any

Parameters

  • startBufferRow: any
  • endBufferRow: any

Returns

any

public clearScopedCharWidths(): any

Returns

any

public clipScreenPosition(screenPosition: any, options: any): any

Parameters

  • screenPosition: any
  • options: any

Returns

any

public copy(): IDisplayBuffer

Returns

IDisplayBuffer

public createFold(startRow: number, endRow: number): IFold

Parameters

  • startRow: number
  • endRow: number

Returns

IFold

public createFoldForMarker(maker: any): IFold

Parameters

  • maker: any

Returns

IFold

public deserializeParams(params: any): any

Parameters

  • params: any

Returns

any

public destroy(): any

Returns

any

public destroyFoldWithId(id: number): any

Parameters

  • id: number

Returns

any

public destroyMarker(id: number): any

Parameters

  • id: number

Returns

any

public emitChanged(eventProperties: any, refreshMarkers?: boolean): any

Parameters

  • eventProperties: any
  • refreshMarkers?: boolean optional

Returns

any

public findFoldMarker(attributes: any): IMarker

Parameters

  • attributes: any

Returns

IMarker

public findFoldMarkers(attributes: any): IMarker[]

Parameters

  • attributes: any

Returns

IMarker[]

public findMarker(params?: any): IDisplayBufferMarker

Parameters

  • params?: any optional

Returns

IDisplayBufferMarker

public findMarkers(params?: any): IDisplayBufferMarker[]

Parameters

  • params?: any optional

Returns

IDisplayBufferMarker[]

public findMaxLineLength(startScreenRow: any, endScreenRow: any, newScreenLines: any): any

Parameters

  • startScreenRow: any
  • endScreenRow: any
  • newScreenLines: any

Returns

any

public findWrapColumn(line: any, softWrapColumn: any): any

Parameters

  • line: any
  • softWrapColumn: any

Returns

any

public foldForMarker(marker: any): any

Parameters

  • marker: any

Returns

any

public foldsContainingBufferRow(bufferRow: any): Array<any>

Parameters

  • bufferRow: any

Returns

Array<any>

public foldsStartingAtBufferRow(bufferRow: number): any

Parameters

  • bufferRow: number

Returns

any

public getDefaultCharWidth(): any

Returns

any

public getEditorWidthInChars(): number

Returns

number

public getFoldMarkerAttributes(attributes?: any): any

Parameters

  • attributes?: any optional

Returns

any

public getGrammar(): IGrammar

Returns

IGrammar

public getHeight(): any

Returns

any

public getHorizontalScrollMargin(): number

Returns

number

public getLastRow(): number

Returns

number

public getLineCount(): number

Returns

number

public getLineHeight(): any

Returns

any

public getLines(): Array<any>

Returns

Array<any>

public getMarker(id: number): IDisplayBufferMarker

Parameters

  • id: number

Returns

IDisplayBufferMarker

public getMarkerCount(): number

Returns

number

public getMarkers(): IDisplayBufferMarker[]

Returns

IDisplayBufferMarker[]

public getMaxLineLength(): number

Returns

number

public getScopedCharWidth(scopeNames: any, char: any): any

Parameters

  • scopeNames: any
  • char: any

Returns

any

public getScopedCharWidths(scopeNames: any): any

Parameters

  • scopeNames: any

Returns

any

public getScrollBottom(): number

Returns

number

public getScrollHeight(): number

Returns

number

public getScrollLeft(): number

Returns

number

public getScrollRight(): number

Returns

number

public getScrollTop(): number

Returns

number

public getScrollWidth(): number

Returns

number

public getSoftWrap(): boolean

Returns

boolean

public getSoftWrapColumn(): number

Returns

number

public getTabLength(): number

Returns

number

public getVerticalScrollMargin(): number

Returns

number

public getVisibleRowRange(): Array<number>

Returns

Array<number>

public getWidth(): any

Returns

any

public handleBufferMarkerCreated(marker: any): any

Parameters

  • marker: any

Returns

any

public handleBufferMarkersUpdated(): any

Returns

any

public handleTokenizedBufferChange(tokenizedBufferChange: any): any

Parameters

  • tokenizedBufferChange: any

Returns

any

public indentLevelForLine(line: any): any

Parameters

  • line: any

Returns

any

public intersectsVisibleRowRange(startRow: any, endRow: any): any

Parameters

  • startRow: any
  • endRow: any

Returns

any

public isFoldedAtBufferRow(bufferRow: number): boolean

Parameters

  • bufferRow: number

Returns

boolean

public isFoldedAtScreenRow(screenRow: number): boolean

Parameters

  • screenRow: number

Returns

boolean

public largestFoldContainingBufferRow(bufferRow: any): any

Parameters

  • bufferRow: any

Returns

any

public largestFoldStartingAtBufferRow(bufferRow: number): any

Parameters

  • bufferRow: number

Returns

any

public largestFoldStartingAtScreenRow(screenRow: any): any

Parameters

  • screenRow: any

Returns

any

public lastScreenRowForBufferRow(bufferRow: number): number

Parameters

  • bufferRow: number

Returns

number

public lineForRow(row: number): any

Parameters

  • row: number

Returns

any

public linesForRows(startRow: number, endRow: number): any

Parameters

  • startRow: number
  • endRow: number

Returns

any

public logLines(start: number, end: number): Array<any>

Parameters

  • start: number
  • end: number

Returns

Array<any>

public markBufferPosition(bufferPosition: IPoint, options?: any): IDisplayBufferMarker

Parameters

  • bufferPosition: IPoint
  • options?: any optional

Returns

IDisplayBufferMarker

public markBufferRange(range: IRange, options?: any): IDisplayBufferMarker

Parameters

  • range: IRange
  • options?: any optional

Returns

IDisplayBufferMarker

public markScreenPosition(screenPosition: IPoint, options?: any): IDisplayBufferMarker

Parameters

  • screenPosition: IPoint
  • options?: any optional

Returns

IDisplayBufferMarker

public markScreenRange(range: IRange, args?: Array<any>): IDisplayBufferMarker

Parameters

  • range: IRange
  • args?: Array<any> optional

Returns

IDisplayBufferMarker

public outermostFoldsInBufferRowRange(startRow: any, endRow: any): Array<any>

Parameters

  • startRow: any
  • endRow: any

Returns

Array<any>

public pauseMarkerObservers(): any

Returns

any

public pixelPositionForBufferPosition(bufferPosition: any): any

Parameters

  • bufferPosition: any

Returns

any

public pixelPositionForScreenPosition(screenPosition: IPoint, clip?: boolean): IPoint

Parameters

  • screenPosition: IPoint
  • clip?: boolean optional

Returns

IPoint

public pixelPositionForScreenPosition(screenPosition: Array<number>, clip?: boolean): IPoint

Parameters

  • screenPosition: Array<number>
  • clip?: boolean optional

Returns

IPoint

public pixelPositionForScreenPosition(screenPosition: { row: number; col: number; }, clip?: boolean): IPoint

Parameters

  • screenPosition: { row: number; col: number; }
  • clip?: boolean optional

Returns

IPoint

public pixelRangeForScreenRange(screenRange: IPoint[], clip?: boolean): IRange

Parameters

  • screenRange: IPoint[]
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: IRange, clip?: boolean): IRange

Parameters

  • screenRange: IRange
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: number[]; end: TextBuffer.IPoint; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: number[]; end: TextBuffer.IPoint; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: { row: number; col: number; }; end: TextBuffer.IPoint; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: { row: number; col: number; }; end: TextBuffer.IPoint; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: TextBuffer.IPoint; end: number[]; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: TextBuffer.IPoint; end: number[]; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: number[]; end: number[]; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: number[]; end: number[]; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: { row: number; col: number; }; end: number[]; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: { row: number; col: number; }; end: number[]; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: TextBuffer.IPoint; end: { row: number; col: number; }; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: TextBuffer.IPoint; end: { row: number; col: number; }; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: number[]; end: { row: number; col: number; }; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: number[]; end: { row: number; col: number; }; }
  • clip?: boolean optional

Returns

IRange

public pixelRangeForScreenRange(screenRange: { start: { row: number; col: number; }; end: { row: number; col: number; }; }, clip?: boolean): IRange

Parameters

  • screenRange: { start: { row: number; col: number; }; end: { row: number; col: number; }; }
  • clip?: boolean optional

Returns

IRange

public pixelRectForScreenRange(screenRange: IRange): any

Parameters

Returns

any

public rangeForAllLines(): IRange

Returns

IRange

public refreshMarkerScreenPositions(): any

Returns

any

public reloadGrammar(): any

Returns

any

public resumeMarkerObservers(): any

Returns

any

public scopesForBufferPosition(bufferPosition: any): any

Parameters

  • bufferPosition: any

Returns

any

public screenPositionForBufferPosition(bufferPosition: any, options: any): any

Parameters

  • bufferPosition: any
  • options: any

Returns

any

public screenPositionForPixelPosition(pixelPosition: any): IPoint

Parameters

  • pixelPosition: any

Returns

IPoint

public screenRangeForBufferRange(bufferRange: IPoint[]): IRange

Parameters

Returns

IRange

public screenRangeForBufferRange(bufferRange: IRange): IRange

Parameters

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }): IRange

Parameters

  • bufferRange: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: number[]; end: TextBuffer.IPoint; }): IRange

Parameters

  • bufferRange: { start: number[]; end: TextBuffer.IPoint; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: { row: number; col: number; }; end: TextBuffer.IPoint; }): IRange

Parameters

  • bufferRange: { start: { row: number; col: number; }; end: TextBuffer.IPoint; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: TextBuffer.IPoint; end: number[]; }): IRange

Parameters

  • bufferRange: { start: TextBuffer.IPoint; end: number[]; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: number[]; end: number[]; }): IRange

Parameters

  • bufferRange: { start: number[]; end: number[]; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: { row: number; col: number; }; end: number[]; }): IRange

Parameters

  • bufferRange: { start: { row: number; col: number; }; end: number[]; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: TextBuffer.IPoint; end: { row: number; col: number; }; }): IRange

Parameters

  • bufferRange: { start: TextBuffer.IPoint; end: { row: number; col: number; }; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: number[]; end: { row: number; col: number; }; }): IRange

Parameters

  • bufferRange: { start: number[]; end: { row: number; col: number; }; }

Returns

IRange

public screenRangeForBufferRange(bufferRange: { start: { row: number; col: number; }; end: { row: number; col: number; }; }): IRange

Parameters

  • bufferRange: { start: { row: number; col: number; }; end: { row: number; col: number; }; }

Returns

IRange

public screenRowForBufferRow(bufferRow: number): number

Parameters

  • bufferRow: number

Returns

number

public scrollToBufferPosition(bufferPosition: any): any

Parameters

  • bufferPosition: any

Returns

any

public scrollToScreenPosition(screenPosition: any): any

Parameters

  • screenPosition: any

Returns

any

public scrollToScreenRange(screenRange: any): any

Parameters

  • screenRange: any

Returns

any

public selectionIntersectsVisibleRowRange(selection: any): any

Parameters

  • selection: any

Returns

any

public serializeParams(): { id: number; softWrap: boolean; editorWidthInChars: number; scrollTop: number; scrollLeft: number; tokenizedBuffer: any; }

Returns

{ id: number; softWrap: boolean; editorWidthInChars: number; scrollTop: number; scrollLeft: number; tokenizedBuffer: any; }

public setDefaultCharWidth(defaultCharWidth: any): any

Parameters

  • defaultCharWidth: any

Returns

any

public setEditorWidthInChars(editorWidthInChars: number): any

Parameters

  • editorWidthInChars: number

Returns

any

public setGrammar(grammar: IGrammar): any

Parameters

Returns

any

public setHeight(height: any): any

Parameters

  • height: any

Returns

any

public setHorizontalScrollMargin(horizontalScrollMargin: number): number

Parameters

  • horizontalScrollMargin: number

Returns

number

public setLineHeight(lineHeight: any): any

Parameters

  • lineHeight: any

Returns

any

public setScopedCharWidth(scopeNames: any, char: any, width: any): any

Parameters

  • scopeNames: any
  • char: any
  • width: any

Returns

any

public setScopedCharWidths(scopeNames: any, charWidths: any): any

Parameters

  • scopeNames: any
  • charWidths: any

Returns

any

public setScrollBottom(scrollBottom: number): number

Parameters

  • scrollBottom: number

Returns

number

public setScrollLeft(scrollLeft: number): number

Parameters

  • scrollLeft: number

Returns

number

public setScrollRight(scrollRight: number): number

Parameters

  • scrollRight: number

Returns

number

public setScrollTop(scrollTop: number): number

Parameters

  • scrollTop: number

Returns

number

public setSoftWrap(softWrap: boolean): boolean

Parameters

  • softWrap: boolean

Returns

boolean

public setTabLength(tabLength: number): any

Parameters

  • tabLength: number

Returns

any

public setVerticalScrollMargin(verticalScrollMargin: number): number

Parameters

  • verticalScrollMargin: number

Returns

number

public setVisible(visible: any): any

Parameters

  • visible: any

Returns

any

public setWidth(newWidth: any): any

Parameters

  • newWidth: any

Returns

any

public tokenForBufferPosition(bufferPosition: any): any

Parameters

  • bufferPosition: any

Returns

any

public translateToBufferMarkerParams(params?: any): any

Parameters

  • params?: any optional

Returns

any

public unfoldBufferRow(bufferRow: number): Array<any>

Parameters

  • bufferRow: number

Returns

Array<any>

public updateAllScreenLines(): any

Returns

any

public updateScreenLines(startBufferRow: any, endBufferRow: any, bufferDelta?: number, options?: any): any

Parameters

  • startBufferRow: any
  • endBufferRow: any
  • bufferDelta?: number optional
  • options?: any optional

Returns

any

public updateWrappedScreenLines(): any

Returns

any