1 Star 0 Fork 0

茶密/engenious

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
IControlInternals.cs 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
jvbsl 提交于 2021-02-14 14:41 . Big cleanup and change to nullable project
using System;
using System.ComponentModel;
using OpenTK.Windowing.Common;
namespace engenious
{
/// <summary>
/// Base interface for internal events of controls.
/// </summary>
public interface IControlInternals
{
/// <summary>
/// Event that gets called to render a frame.
/// </summary>
event Action<FrameEventArgs>? RenderFrame;
/// <summary>
/// Event that gets called to update a frame.
/// </summary>
event Action<FrameEventArgs>? UpdateFrame;
/// <summary>
/// Event that gets called when the control is closing.
/// </summary>
event Action<CancelEventArgs>? Closing;
/// <summary>
/// Event that gets called when the controls' focus changed.
/// </summary>
event Action<FocusedChangedEventArgs>? FocusedChanged;
/// <summary>
/// Event that gets called when a key is pressed on the control.
/// </summary>
event Action<TextInputEventArgs>? KeyPress;
/// <summary>
/// Event that gets called when the control is resized.
/// </summary>
event Action<ResizeEventArgs>? Resize;
/// <summary>
/// Event that gets called when the control loading.
/// </summary>
event Action? Load;
/// <summary>
/// Event that gets called when a mouse wheel event occured on the control.
/// </summary>
event Action<MouseWheelEventArgs>? MouseWheel;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/long33/engenious.git
git@gitee.com:long33/engenious.git
long33
engenious
engenious
develop

搜索帮助