⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipainter.cs

📁 Fireball.CodeEditor is an source code editor control derived from the best compona SyntaxBox Control
💻 CS
字号:
//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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -