Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Window

静态 Public 成员函数

static void Run (int width=0, int height=0, WindowMode windowMode=WindowMode.Resizable, string title="")
static void Close ()
static void Restart ()
static void DisplayCutoutInsetsChangedHandler (Vector4 insets, bool hasWideNotch)

静态 Public 属性

static IView m_view
static IWindow m_gameWindow
static IInputContext m_inputContext
static string m_titlePrefix = string.Empty
static string m_titleSuffix = string.Empty
static float m_lastRenderDelta
const string WindowingLibrary = "Silk.NET.Windowing.Glfw"
const string InputLibrary = "Silk.NET.Input.Glfw"

静态包函数

static void FocusedChangedHandler (bool focused)
static void ResizeHandler (Vector2D< int > _)

属性

static Point2 ScreenSize [get]
static WindowMode WindowMode [get, set]
static Point2 Position [get, set]
static Point2 Size [get, set]
static bool HasWideNotch [get, set]
static Vector4 DisplayCutoutInsets = Vector4.Zero [get, set]
 刘海/水滴/挖孔在屏幕边缘的宽度。X: 左边,Y: 顶部,Z: 右边,W: 底部
static string TitlePrefix [get, set]
static string TitleSuffix [get, set]
static string Title [get, set]
static int PresentationInterval [get, set]
static IntPtr Handle [get]
static bool IsCreated [get]
static bool IsActive [get]

事件

static Action Created
static Action Resized
static Action< Vector4, bool > DisplayCutoutInsetsChanged
static Action Activated
static Action Deactivated
static Action Closed
static Action ToRestart
static Action Frame
static Action< UnhandledExceptionInfoUnhandledException
static Action< UriHandleUri
static Action LowMemory
static Action< List<(Stream stream, string fileName)> > FileDropped

Private 类型

enum  State { Uncreated , Inactive , Active }

静态 Private 成员函数

static void LoadHandler ()
static void ClosedHandler ()
static void FileDropHandler (string[] paths)
static void RenderFrameHandler (double lastRenderDelta)
static void VerifyWindowOpened ()
static bool IsWindowOpened ()
static void SubscribeToEvents ()
static void UnsubscribeFromEvents ()
static void InitializeAll ()
static void DisposeAll ()
static void BeforeFrameAll ()
static void AfterFrameAll ()

静态 Private 属性

static State m_state
static bool m_closing
static bool m_closingRequested
static bool m_restarting
static ? int m_swapInterval

详细描述

在文件 Window.cs36 行定义.

成员枚举类型说明

◆ State

enum Engine.Window.State
private
枚举值
Uncreated 
Inactive 
Active 

在文件 Window.cs37 行定义.

成员函数说明

◆ AfterFrameAll()

void Engine.Window.AfterFrameAll ( )
staticprivate

在文件 Window.cs802 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ BeforeFrameAll()

void Engine.Window.BeforeFrameAll ( )
staticprivate

在文件 Window.cs788 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Close()

void Engine.Window.Close ( )
static

在文件 Window.cs511 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ClosedHandler()

void Engine.Window.ClosedHandler ( )
staticprivate

在文件 Window.cs550 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ DisplayCutoutInsetsChangedHandler()

void Engine.Window.DisplayCutoutInsetsChangedHandler ( Vector4 insets,
bool hasWideNotch )
static

在文件 Window.cs591 行定义.

◆ DisposeAll()

void Engine.Window.DisposeAll ( )
staticprivate

在文件 Window.cs778 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ FileDropHandler()

void Engine.Window.FileDropHandler ( string[] paths)
staticprivate

在文件 Window.cs577 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ FocusedChangedHandler()

void Engine.Window.FocusedChangedHandler ( bool focused)
staticpackage

在文件 Window.cs533 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ InitializeAll()

void Engine.Window.InitializeAll ( )
staticprivate

在文件 Window.cs741 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsWindowOpened()

bool Engine.Window.IsWindowOpened ( )
staticprivate

在文件 Window.cs710 行定义.

◆ LoadHandler()

void Engine.Window.LoadHandler ( )
staticprivate

在文件 Window.cs522 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ RenderFrameHandler()

void Engine.Window.RenderFrameHandler ( double lastRenderDelta)
staticprivate

在文件 Window.cs608 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ResizeHandler()

void Engine.Window.ResizeHandler ( Vector2D< int > _)
staticpackage

在文件 Window.cs563 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Restart()

void Engine.Window.Restart ( )
static

在文件 Window.cs516 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Run()

void Engine.Window.Run ( int width = 0,
int height = 0,
WindowMode windowMode = WindowMode::Resizable,
string title = "" )
static

在文件 Window.cs395 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ SubscribeToEvents()

void Engine.Window.SubscribeToEvents ( )
staticprivate

在文件 Window.cs713 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ UnsubscribeFromEvents()

void Engine.Window.UnsubscribeFromEvents ( )
staticprivate

在文件 Window.cs729 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ VerifyWindowOpened()

void Engine.Window.VerifyWindowOpened ( )
staticprivate

在文件 Window.cs699 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ InputLibrary

const string Engine.Window.InputLibrary = "Silk.NET.Input.Glfw"
static

在文件 Window.cs392 行定义.

◆ m_closing

bool Engine.Window.m_closing
staticprivate

在文件 Window.cs60 行定义.

◆ m_closingRequested

bool Engine.Window.m_closingRequested
staticprivate

在文件 Window.cs61 行定义.

◆ m_gameWindow

IWindow Engine.Window.m_gameWindow
static

在文件 Window.cs55 行定义.

◆ m_inputContext

IInputContext Engine.Window.m_inputContext
static

在文件 Window.cs57 行定义.

◆ m_lastRenderDelta

float Engine.Window.m_lastRenderDelta
static

在文件 Window.cs70 行定义.

◆ m_restarting

bool Engine.Window.m_restarting
staticprivate

在文件 Window.cs62 行定义.

◆ m_state

State Engine.Window.m_state
staticprivate

在文件 Window.cs43 行定义.

◆ m_swapInterval

? int Engine.Window.m_swapInterval
staticprivate

在文件 Window.cs64 行定义.

◆ m_titlePrefix

string Engine.Window.m_titlePrefix = string.Empty
static

在文件 Window.cs66 行定义.

◆ m_titleSuffix

string Engine.Window.m_titleSuffix = string.Empty
static

在文件 Window.cs68 行定义.

◆ m_view

IView Engine.Window.m_view
static

在文件 Window.cs47 行定义.

◆ WindowingLibrary

const string Engine.Window.WindowingLibrary = "Silk.NET.Windowing.Glfw"
static

在文件 Window.cs391 行定义.

属性说明

◆ DisplayCutoutInsets

Vector4 Engine.Window.DisplayCutoutInsets = Vector4.Zero
staticgetset

刘海/水滴/挖孔在屏幕边缘的宽度。X: 左边,Y: 顶部,Z: 右边,W: 底部

在文件 Window.cs230 行定义.

◆ Handle

IntPtr Engine.Window.Handle
staticget

在文件 Window.cs337 行定义.

◆ HasWideNotch

bool Engine.Window.HasWideNotch
staticgetset

在文件 Window.cs225 行定义.

◆ IsActive

bool Engine.Window.IsActive
staticget

在文件 Window.cs362 行定义.

◆ IsCreated

bool Engine.Window.IsCreated
staticget

在文件 Window.cs361 行定义.

◆ Position

Point2 Engine.Window.Position
staticgetset

在文件 Window.cs181 行定义.

◆ PresentationInterval

int Engine.Window.PresentationInterval
staticgetset

在文件 Window.cs310 行定义.

◆ ScreenSize

Point2 Engine.Window.ScreenSize
staticget

在文件 Window.cs72 行定义.

◆ Size

Point2 Engine.Window.Size
staticgetset

在文件 Window.cs203 行定义.

◆ Title

string Engine.Window.Title
staticgetset

在文件 Window.cs280 行定义.

◆ TitlePrefix

string Engine.Window.TitlePrefix
staticgetset

在文件 Window.cs232 行定义.

◆ TitleSuffix

string Engine.Window.TitleSuffix
staticgetset

在文件 Window.cs256 行定义.

◆ WindowMode

WindowMode Engine.Window.WindowMode
staticgetset

在文件 Window.cs123 行定义.

事件说明

◆ Activated

Action Engine.Window.Activated
static

在文件 Window.cs370 行定义.

◆ Closed

Action Engine.Window.Closed
static

在文件 Window.cs374 行定义.

◆ Created

Action Engine.Window.Created
static

在文件 Window.cs364 行定义.

◆ Deactivated

Action Engine.Window.Deactivated
static

在文件 Window.cs372 行定义.

◆ DisplayCutoutInsetsChanged

Action<Vector4, bool> Engine.Window.DisplayCutoutInsetsChanged
static

在文件 Window.cs368 行定义.

◆ FileDropped

Action<List<(Stream stream, string fileName)> > Engine.Window.FileDropped
static

在文件 Window.cs386 行定义.

◆ Frame

Action Engine.Window.Frame
static

在文件 Window.cs378 行定义.

◆ HandleUri

Action<Uri> Engine.Window.HandleUri
static

在文件 Window.cs382 行定义.

◆ LowMemory

Action Engine.Window.LowMemory
static

在文件 Window.cs384 行定义.

◆ Resized

Action Engine.Window.Resized
static

在文件 Window.cs366 行定义.

◆ ToRestart

Action Engine.Window.ToRestart
static

在文件 Window.cs376 行定义.

◆ UnhandledException

Action<UnhandledExceptionInfo> Engine.Window.UnhandledException
static

在文件 Window.cs380 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine/Window.cs