Skip to content

Commit

Permalink
improve AtomCore.IDisplayBufferMarkerStatic and AtomCore.IDisplayBuff…
Browse files Browse the repository at this point in the history
…erMarker in atom/atom.d.ts
  • Loading branch information
vvakame committed May 3, 2014
1 parent 5801fa4 commit f8b43ff
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions atom/atom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,14 +908,69 @@ declare module AtomCore {
// TBD
}

interface IDisplayBufferMarker {
// TBD
interface IDisplayBufferMarkerStatic {
new (_arg:{bufferMarker:IMarker; displayBuffer: IDisplayBuffer}):IDisplayBufferMarker;
}

interface IDisplayBufferMarker extends Emissary.IEmitter, Emissary.ISubscriber {
constructor:IDisplayBufferMarkerStatic;

id: number;

bufferMarkerSubscription:any;
oldHeadBufferPosition:IPoint;
oldHeadScreenPosition:IPoint;
oldTailBufferPosition:IPoint;
oldTailScreenPosition:IPoint;
wasValid:boolean;

bufferMarker: IMarker;
displayBuffer: IDisplayBuffer;
globalPauseCount:number;
globalQueuedEvents:any;

subscriptions:ISubscription[];
subscriptionsByObject:any; // WeakMap

copy(attributes?:any /* maybe IMarker */):IDisplayBufferMarker;
getScreenRange():IRange;
setScreenRange(screenRange:any, options:any):any;
getBufferRange():IRange;
setBufferRange(bufferRange:any, options:any):any;
getPixelRange():any;
getHeadScreenPosition():IPoint;
setHeadScreenPosition(screenPosition:any, options:any):any;
getHeadBufferPosition():IPoint;
setHeadBufferPosition(bufferPosition:any):any;
getTailScreenPosition():IPoint;
setTailScreenPosition(screenPosition:any, options:any):any;
getTailBufferPosition():IPoint;
setTailBufferPosition(bufferPosition:any):any;
plantTail():boolean;
clearTail():boolean;
hasTail():boolean;
isReversed():boolean;
isValid():boolean;
isDestroyed():boolean;
getAttributes():any;
setAttributes(attributes:any):any;
matchesAttributes(attributes:any):any;
destroy():any;
isEqual(other:IDisplayBufferMarker):boolean;
compare(other:IDisplayBufferMarker):boolean;
inspect():string;
destroyed():any;
notifyObservers(_arg:any):any;
}

interface ITransaction {
// TBD
}

interface IMarker {
// TBD
}

interface ITaskStatic {
new(taskPath:any):ITask;
}
Expand Down

0 comments on commit f8b43ff

Please sign in to comment.