当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript IViewContext.addEventHandler方法代码示例

本文整理汇总了TypeScript中vs/editor/browser/editorBrowser.IViewContext.addEventHandler方法的典型用法代码示例。如果您正苦于以下问题:TypeScript IViewContext.addEventHandler方法的具体用法?TypeScript IViewContext.addEventHandler怎么用?TypeScript IViewContext.addEventHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vs/editor/browser/editorBrowser.IViewContext的用法示例。


在下文中一共展示了IViewContext.addEventHandler方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: constructor

	constructor(context:IViewContext) {
		super();
		this._context = context;
		this._context.addEventHandler(this);
		this._modificationBeforeRenderingRunners = [];
		this._modificationRunners = [];
	}
开发者ID:1424667164,项目名称:vscode,代码行数:7,代码来源:viewPart.ts

示例2: constructor

	constructor(context:IViewContext) {
		super();
		this._context = context;
		this._renderResult = null;

		this._context.addEventHandler(this);
	}
开发者ID:1424667164,项目名称:vscode,代码行数:7,代码来源:decorations.ts

示例3: constructor

	constructor(context:IViewContext, cssClassName:string, scrollHeight:number, minimumHeight:number, maximumHeight:number, getVerticalOffsetForLine:(lineNumber:number)=>number) {
		super();
		this._context = context;
		this._overviewRuler = new OverviewRulerImpl(0, cssClassName, scrollHeight, this._context.configuration.editor.lineHeight,
					minimumHeight, maximumHeight, getVerticalOffsetForLine);

		this._context.addEventHandler(this);
	}
开发者ID:AnilVarmaBiruduraju,项目名称:vscode,代码行数:8,代码来源:overviewRuler.ts

示例4: constructor

	constructor(context:IViewContext) {
		super();
		this._context = context;
		this._lineHeight = this._context.configuration.editor.lineHeight;
		this._renderResult = null;

		this._context.addEventHandler(this);
	}
开发者ID:AnilVarmaBiruduraju,项目名称:vscode,代码行数:8,代码来源:decorations.ts

示例5: constructor

	constructor(context:IViewContext) {
		super();
		this._context = context;
		this._glyphMarginLeft = 0;
		this._glyphMarginWidth = 0;
		this._renderResult = null;
		this._context.addEventHandler(this);
	}
开发者ID:1424667164,项目名称:vscode,代码行数:8,代码来源:glyphMargin.ts

示例6: constructor

	constructor(context:IViewContext) {
		super();
		this._context = context;
		this._lineNumbersLeft = 0;
		this._lineNumbersWidth = 0;
		this._renderResult = null;
		this._context.addEventHandler(this);
	}
开发者ID:1424667164,项目名称:vscode,代码行数:8,代码来源:lineNumbers.ts

示例7: constructor

	constructor(context:IViewContext) {
		super();
		this._context = context;
		this._lineHeight = this._context.configuration.editor.lineHeight;
		this._glyphMargin = this._context.configuration.editor.glyphMargin;
		this._glyphMarginLeft = 0;
		this._glyphMarginWidth = 0;
		this._renderResult = null;
		this._context.addEventHandler(this);
	}
开发者ID:1833183060,项目名称:vscode,代码行数:10,代码来源:glyphMargin.ts

示例8: constructor

	constructor(context:IViewContext, layoutProvider:ILayoutProvider) {
		super();
		this._context = context;
		this._layoutProvider = layoutProvider;

		this._selectionIsEmpty = true;
		this._primaryCursorIsInEditableRange = true;
		this._primaryCursorLineNumber = 1;
		this._scrollWidth = this._layoutProvider.getScrollWidth();

		this._context.addEventHandler(this);
	}
开发者ID:1424667164,项目名称:vscode,代码行数:12,代码来源:currentLineHighlight.ts

示例9: constructor

	constructor(context:IViewContext) {
		super();
		this._context = context;
		this._context.addEventHandler(this);
	}
开发者ID:1833183060,项目名称:vscode,代码行数:5,代码来源:viewPart.ts


注:本文中的vs/editor/browser/editorBrowser.IViewContext.addEventHandler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。