UniWindowController 0.8.2
https://github.com/kirurobo/uniWindowController/
Kirurobo.UniWindowController Class Reference

Unified window controller for Windows / Mac More...

Inheritance diagram for Kirurobo.UniWindowController:

Public Types

enum  TransparentType : int { None = 0 , Alpha = 1 , ColorKey = 2 }
 The same as UniWinCore.TransparentType
 
enum  HitTestType : int { None = 0 , Opacity = 1 , Raycast = 2 }
 Scecifies method to hit-test (i.e., switching click-through)
 
enum  WindowStateEventType : int { None = 0 , StyleChanged = 1 , Resized = 2 , OrderChanged = 4 }
 Identifies the type of OnStateChanged event when it occurs
 

Public Member Functions

delegate void OnStateChangedDelegate (WindowStateEventType type)
 
delegate void FilesDelegate (string[] files)
 
delegate void OnMonitorChangedDelegate ()
 
void SetTransparentType (TransparentType type)
 透過方法を変更 More...
 
int GetMonitorCount ()
 接続されているモニタ数を取得 More...
 
void Focus ()
 自分のウィンドウにフォーカスを与える
 
int GetDebugInfo ()
 デバッグ専用。その都度参考となる情報を受けるための関数 More...
 

Public Attributes

bool isHitTestEnabled = true
 クリックスルー自動判定を行うか 行なわない場合は isClickThrough を自分で変更可
 
HitTestType hitTestType = HitTestType.Opacity
 クリックスルー自動判定の方法
 
float opacityThreshold = 0.1f
 クリックスルー判定方法が不透明度の場合に使うしきい値 カーソル下のアルファがこの値以上ならヒットとなる
 
bool autoSwitchCameraBackground = true
 trueにしておくと、ウィンドウ透過時にカメラ背景を単色の黒透明に自動で変更します
 
bool forceWindowed = false
 trueにしておくと、起動時にフルスクリーンだった場合は強制的に解除します More...
 
TransparentType transparentType = TransparentType.Alpha
 透過方式の指定
 
Color32 keyColor = new Color32(0x01, 0x00, 0x01, 0x00)
 Key color used when the transparent-type is ColorKey
 
Color pickedColor
 Pixel color under the mouse pointer. (Read only)
 

Properties

bool isClickThrough [getset]
 Is this window receives mouse events
 
bool isTransparent [getset]
 Is this window transparent
 
bool? isTopmost [getset]
 Is this window topmost
 
bool? isBottommost [getset]
 Is this window bottommost
 
bool? isZoomed [getset]
 Is this window minimized
 
bool shouldFitMonitor [getset]
 This window will fit to the monitor or not
 
int monitorToFit [getset]
 Target monitor index to fit the window (0, 1, ...)
 
bool allowDropFiles [getset]
 Enable / disable accepting file drop
 
Vector2?? windowPosition [getset]
 ウィンドウ座標を取得・設定
 
Vector2?? windowSize [getset]
 ウィンドウ座標を取得・設定
 
Vector2?? cursorPosition [getset]
 マウスカーソル座標を取得・設定
 

Events

OnStateChangedDelegate OnStateChanged
 Occurs when the window style changed
 
FilesDelegate OnDropFiles
 Occurs after files or folders were dropped
 
OnMonitorChangedDelegate OnMonitorChanged
 Occurs when the monitor settings or resolution changed
 

Detailed Description

Unified window controller for Windows / Mac

Member Function Documentation

◆ GetDebugInfo()

int Kirurobo.UniWindowController.GetDebugInfo ( )

デバッグ専用。その都度参考となる情報を受けるための関数

Returns

◆ GetMonitorCount()

int Kirurobo.UniWindowController.GetMonitorCount ( )

接続されているモニタ数を取得

Returns

◆ SetTransparentType()

void Kirurobo.UniWindowController.SetTransparentType ( TransparentType  type)

透過方法を変更

Parameters
type

Member Data Documentation

◆ forceWindowed

bool Kirurobo.UniWindowController.forceWindowed = false

trueにしておくと、起動時にフルスクリーンだった場合は強制的に解除します

起動時のダイアログでフルスクリーンにしてしまった場合でもウィンドウモードにするためのものです 起動時のみ働きます Macの場合、フルスクリーン状態を強制解除しても別画面になったままであまり有効ではなさそうです


The documentation for this class was generated from the following file: