📄 ipainter.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 + -