ipainter.cs

来自「Fireball.CodeEditor is an source code ed」· CS 代码 · 共 65 行

CS
65
字号
//ORIGINAL LGPL SOURCE CODE FINDED ON COMPONA LGPL SOURCE CODE
using System;
using System.Drawing;
using Fireball.Syntax;

namespace Fireball.Windows.Forms.CodeEditor.Painter
{
	/// <summary>
	/// 
	/// </summary>
	public interface IPainter : IDisposable
	{
		/// <summary>
		///  Measures the length of a specific row in pixels
		/// </summary>
		Size MeasureRow(Row xtr, int Count);

		/// <summary>
		/// Renders the entire screen
		/// </summary>
		void RenderAll();

		/// <summary>
		/// Renders the entire screen
		/// </summary>
		/// <param name="g">Target Graphics object</param>
		void RenderAll(Graphics g);

		/// <summary>
		/// Renders the caret only
		/// </summary>
		/// <param name="g"></param>
		void RenderCaret(Graphics g);

		/// <summary>
		/// 
		/// </summary>
		/// <param name="RowIndex"></param>
		void RenderRow(int RowIndex);

		/// <summary>
		/// Returns a Point (Column,Row in the active document) from the x and y screen pixel positions.
		/// </summary>
		TextPoint CharFromPixel(int X, int Y);

		/// <summary>
		/// Called by the control to notify the Painter object that the client area has resized.
		/// </summary>
		void Resize();

		/// <summary>
		/// Called by the control to notify the Painter object that one or more Appearance properties has changed.
		/// </summary>
		void InitGraphics();

		/// <summary>
		/// Measures the length of a string in pixels
		/// </summary>
		Size MeasureString(string str);

		int GetMaxCharWidth();


	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?