Skip to content

Commit

Permalink
Merge pull request #36 from kirurobo/dev_win
Browse files Browse the repository at this point in the history
v0.8.4
  • Loading branch information
kirurobo authored Dec 5, 2021
2 parents 3c54084 + b6160e2 commit d5704d8
Show file tree
Hide file tree
Showing 20 changed files with 951 additions and 223 deletions.
12 changes: 12 additions & 0 deletions UniWinC/Assets/Kirurobo/UniWindowController/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ How to write the changelog.
https://keepachangelog.com/ja/1.0.0/
--->

## [v0.8.4] - 2021-11-27
### Changed
- Made the class singleton.
- All samples are bundled for package manager.

### Added
- File type selection in macOS

## [v0.8.3] - 2021-11-27
### Added
- SetAlphaValue

## [v0.8.2] - 2021-10-15
### Added
- FilePanel.OpenFilePanel()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.8.3</string>
<string>0.8.4</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ public bool ObserveWindowStyleChanged(out WindowStateEventType type)
/// Set the mouse pointer position.
/// </summary>
/// <param name="position">Position.</param>
public void SetCursorPosition(Vector2 position)
public static void SetCursorPosition(Vector2 position)
{
LibUniWinC.SetCursorPosition(position.x, position.y);
}
Expand All @@ -671,7 +671,7 @@ public void SetCursorPosition(Vector2 position)
/// Get the mouse pointer position.
/// </summary>
/// <returns>The position.</returns>
public Vector2 GetCursorPosition()
public static Vector2 GetCursorPosition()
{
Vector2 pos = Vector2.zero;
LibUniWinC.GetCursorPosition(out pos.x, out pos.y);
Expand Down Expand Up @@ -721,12 +721,19 @@ public int GetCurrentMonitor()
/// Get the number of connected monitors
/// </summary>
/// <returns>Count</returns>
public int GetMonitorCount()
public static int GetMonitorCount()
{
return LibUniWinC.GetMonitorCount();
}

public bool GetMonitorRectangle(int index, out Vector2 position, out Vector2 size)
/// <summary>
/// Get monitor position and size
/// </summary>
/// <param name="index"></param>
/// <param name="position"></param>
/// <param name="size"></param>
/// <returns></returns>
public static bool GetMonitorRectangle(int index, out Vector2 position, out Vector2 size)
{
return LibUniWinC.GetMonitorRectangle(index, out position.x, out position.y, out size.x, out size.y);
}
Expand Down
Loading

0 comments on commit d5704d8

Please sign in to comment.