Reference for .Net version of SpaceVIL
0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
|
CoreWindow is an abstract class containing an implementation of common functionality for a window. More...
Inherited by SpaceVIL.ActiveWindow, and SpaceVIL.DialogWindow.
Public Member Functions | |
CoreWindow () | |
Constructs a CoreWindow. More... | |
void | SetParameters (String name, String title) |
Setting basic window attributes. More... | |
void | SetParameters (String name, String title, int width, int height) |
Setting basic window attributes More... | |
void | SetParameters (String name, String title, int width, int height, bool isBorder) |
Setting basic window attributes. More... | |
virtual void | Show () |
Show the CoreWindow. More... | |
virtual void | Close () |
Close the CoreWindow. More... | |
abstract void | InitWindow () |
This abstract method should provide the initial window attributes, content, events. More... | |
int | GetCount () |
| |
Guid | GetWindowGuid () |
| |
void | SetBackground (Color color) |
Setting window background color. More... | |
void | SetBackground (int r, int g, int b) |
Setting window background color. More... | |
void | SetBackground (int r, int g, int b, int a) |
Setting window background color. More... | |
void | SetBackground (float r, float g, float b) |
Setting window background color. More... | |
void | SetBackground (float r, float g, float b, float a) |
Setting window background color. More... | |
Color | GetBackground () |
Getting window background color. More... | |
void | SetPadding (Indents padding) |
Setting padding indents. Padding is the space that’s inside the element between the element and the border. More... | |
void | SetPadding (int left, int top, int right, int bottom) |
Setting padding indents. Padding is the space that’s inside the element between the element and the border. More... | |
List< IBaseItem > | GetItems () |
Getting items as a list of IBaseItem items. More... | |
void | AddItem (IBaseItem item) |
Adding an item to the window. More... | |
void | AddItems (params IBaseItem[] items) |
Allows to add multiple items to the window. More... | |
void | InsertItem (IBaseItem item, int index) |
Allows you to insert an item at a specified position. More... | |
bool | RemoveItem (IBaseItem item) |
Removing a specified item. More... | |
void | Clear () |
Removing all containing items in the window. More... | |
void | SetWindowName (String value) |
Setting the window name. The window name is the string ID of the window and may differ from the window title. More... | |
String | GetWindowName () |
Getting the window name. More... | |
void | SetWindowTitle (String title) |
Setting the window title text. More... | |
String | GetWindowTitle () |
Getting the title text. More... | |
void | SetWidth (int width) |
Setting the window width. More... | |
void | SetHeight (int height) |
Setting the window height. More... | |
void | SetSize (int width, int height) |
Setting the window size in pixels: width and height. More... | |
void | SetMinWidth (int width) |
Setting the window minimum width. More... | |
void | SetMinHeight (int height) |
Setting the window minimum height. More... | |
void | SetMinSize (int width, int height) |
Setting the minimum window size in pixels: width and height. More... | |
void | SetMaxWidth (int width) |
Setting the window maximum width. More... | |
void | SetMaxHeight (int height) |
Setting the window maximum height. More... | |
void | SetMaxSize (int width, int height) |
Setting the maximum window size in pixels: width and height. More... | |
int | GetMinWidth () |
Getting the current minimum window width. More... | |
int | GetWidth () |
Getting the current minimum window width. More... | |
int | GetMaxWidth () |
Getting the current maximum window width. More... | |
int | GetMinHeight () |
Getting the current minimum window height. More... | |
int | GetHeight () |
Getting the current window height. More... | |
int | GetMaxHeight () |
Getting the current maximum window height. More... | |
Core.Size | GetSize () |
Getting the current window size. More... | |
void | SetX (int x) |
Setting the window x-coordinate (the left-top window corner). Relocating the window at specified x-coordinate. More... | |
int | GetX () |
Getting the current window x-coordinate. More... | |
void | SetY (int y) |
Setting the window y-coordinate (the left-top window corner). Relocating the window at specified y-coordinate. More... | |
int | GetY () |
Getting the current window y-coordinate. More... | |
void | SetPosition (int x, int y) |
Setting the window x-coordinate and y-coordinate (the left-top window corner). Relocating the window at specified coordinates. More... | |
void | SetPosition (Position position) |
Setting the window x-coordinate and y-coordinate (the left-top window corner). Relocating the window at specified coordinates. More... | |
Position | GetPosition () |
Getting the current window position. More... | |
void | SetAntiAliasingQuality (MSAA msaa) |
Setting the anti aliasing quality (off, x2, x4, x8). Default: MSAA.MSAA4x More... | |
bool | IsFocused () |
Lets to know if the current window is focused or not. More... | |
void | Focus () |
Sets the window focused. More... | |
void | Minimize () |
Sets the window minimized. More... | |
void | Maximize () |
Sets the window maximized. More... | |
void | ToggleFullScreen () |
Toggles the window to full screen mode or windowed mode. More... | |
Prototype | GetFocusedItem () |
Getting the current focused item in the current window. More... | |
void | SetFocusedItem (Prototype item) |
Setting the specified item to the focused state. More... | |
void | ResetFocus () |
Returns focus to the root item of the window. More... | |
void | SetIcon (Bitmap iconBig, Bitmap iconSmall) |
Sets the icons of the current window. More... | |
void | SetHidden (bool value) |
Hides of unhides the current window. More... | |
void | SetRenderFrequency (RedrawFrequency value) |
Lets to set the rendering frequency. Default: SpaceVIL.Core.RedrawFrequency.Low More... | |
RedrawFrequency | GetRenderFrequency () |
Getting the current rendering frequency. More... | |
void | SetAspectRatio (int w, int h) |
Lets to set aspect ratio. More... | |
void | SetBorder (Border border) |
Setting the border of the root item of the window. More... | |
void | SetBorderFill (Color fill) |
Setting the color of the window border. More... | |
void | SetBorderFill (int r, int g, int b) |
Setting the color of the window border. More... | |
void | SetBorderFill (int r, int g, int b, int a) |
Setting the color of the window border. More... | |
void | SetBorderFill (float r, float g, float b) |
Setting the color of the window border. More... | |
void | SetBorderFill (float r, float g, float b, float a) |
Setting the color of the window border. More... | |
void | SetBorderRadius (CornerRadius radius) |
Setting the corner radii of the window border. More... | |
void | SetBorderRadius (int radius) |
Setting the common corner radius of the window border. More... | |
void | SetBorderThickness (int thickness) |
Setting the window border thickness. More... | |
CornerRadius | GetBorderRadius () |
Getting the current window border corner radii. More... | |
int | GetBorderThickness () |
Getting the current window border thickness. More... | |
Color | GetBorderFill () |
Getting the current window border color. More... | |
Int64 | GetGLWID () |
Getting the GLFW ID of the window. More... | |
void | SetShadeColor (Color color) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window. More... | |
void | SetShadeColor (int r, int g, int b) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window. More... | |
void | SetShadeColor (int r, int g, int b, int a) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window. More... | |
void | SetShadeColor (float r, float g, float b) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window. More... | |
void | SetShadeColor (float r, float g, float b, float a) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window. More... | |
Color | GetShadeColor () |
Getting the current dimmer color. More... | |
Area | GetWorkArea () |
Getting the area of a primary monitor. The work area not occupied by global task bars or menu bars. More... | |
Scale | GetDpiScale () |
Getting DPI scale for the current window. More... | |
void | Hold () |
Makes this window inactive. Window cannot receive and process any input events. Tip: to restore window activity use CoreWindow.Proceed(). More... | |
void | Proceed () |
Restores window activity. Window may receive and process any input events. Tip: used with CoreWindow.Hold() method which makes a window inactive. More... | |
Public Attributes | |
bool | IsDialog |
A flag that determines whether the current window is dialog or not. True: window is dialog. False: window is NOT dialog. Default: False. More... | |
bool | IsClosed |
A flag that determines whether the current window is in closed state or not. True: window is closed. False: window is opened. Default: True. More... | |
bool | IsHidden |
A flag that determines whether the current window is in hidden state or not. True: window is hidden. False: window is unhidden. Default: False. More... | |
bool | IsResizable |
A flag that determines whether the current window can be resize or not. True: window is resizable. False: window is NOT resizable. Default: True. More... | |
bool | IsAlwaysOnTop |
A flag that determines whether the current window is always on top of all other windows or not. True: window is on top. False: window is NOT on top. Default: False. More... | |
bool | IsBorderHidden |
A flag that shows/hides native the current window border decoration. True: native window border is HIDDEN. False: native window border is SHOWN. Default: False. More... | |
bool | IsCentered |
A flag that determines whether the current window will first appear in the center of the screen or not. True: window is centered. False: window is NOT centered. Default: True. More... | |
bool | IsFocusable |
bool | IsOutsideClickClosable |
A flag that determines whether the current window can be closed if the mouse is clicked outside of the current window or not. True: window can be closed if the mouse is clicked outside. False: window can NOT be closed if the mouse is clicked outside. Default: False. More... | |
bool | IsMaximized |
A flag that determines whether the current window will first appear maximized or not. True: window will first appear maximized. False: window will NOT first appear maximized. Default: False. More... | |
bool | IsTransparent |
A flag that determines whether the current window can be transparent or not. True: window can be transparent. False: window can NOT be transparent. Default: False. More... | |
EventCommonMethod | EventOnStart |
Lets to describe the actions when the window starts. More... | |
EventCommonMethod | EventClose |
Lets to describe the actions when closing the window. More... | |
EventWindowDropMethod | EventDrop |
Lets to describe the actions when you drag and drop files/folders to the current window. More... | |
EventCommonMethodState | EventResize |
ATTENTION! Not implemented yet. More... | |
EventCommonMethodState | EventDestroy |
ATTENTION! Not implemented yet. More... | |
EventMouseMethodState | EventMouseHover |
Lets to describe the actions when mouse cursor hovers the root item of the window. More... | |
EventMouseMethodState | EventMouseLeave |
Lets to describe the actions when mouse cursor leaves the root item of the window. More... | |
EventMouseMethodState | EventMouseClick |
Lets to describe the actions when the root item of the window was clicked. More... | |
EventMouseMethodState | EventMouseDoubleClick |
Lets to describe the actions when the root item of the window was double clicked. More... | |
EventMouseMethodState | EventMousePress |
Lets to describe the actions when the root item of the window was pressed. More... | |
EventMouseMethodState | EventMouseDrag |
Lets to describe the actions when the mouse button was pressed and moved inside the root item of the window. More... | |
EventMouseMethodState | EventMouseDrop |
Lets to describe the actions when the mouse button was released after dragging. More... | |
EventMouseMethodState | EventScrollUp |
Lets to describe the actions when mouse wheel scrolls up. More... | |
EventMouseMethodState | EventScrollDown |
Lets to describe the actions when mouse wheel scrolls down. More... | |
EventKeyMethodState | EventKeyPress |
Lets to describe the actions when a keyboard key was pressed. More... | |
EventKeyMethodState | EventKeyRelease |
Lets to describe the actions when a keyboard key was released. More... | |
EventInputTextMethodState | EventTextInput |
Lets to describe the actions when you type text. More... | |
CoreWindow is an abstract class containing an implementation of common functionality for a window.
SpaceVIL.CoreWindow.CoreWindow | ( | ) |
Constructs a CoreWindow.
void SpaceVIL.CoreWindow.AddItem | ( | IBaseItem | item | ) |
Adding an item to the window.
item | An instance of any IBaseItem class. |
void SpaceVIL.CoreWindow.AddItems | ( | params IBaseItem[] | items | ) |
Allows to add multiple items to the window.
items | An instance of any IBaseItem class. |
void SpaceVIL.CoreWindow.Clear | ( | ) |
Removing all containing items in the window.
|
virtual |
Close the CoreWindow.
Reimplemented in SpaceVIL.MessageBox.
void SpaceVIL.CoreWindow.Focus | ( | ) |
Sets the window focused.
Color SpaceVIL.CoreWindow.GetBackground | ( | ) |
Getting window background color.
Color SpaceVIL.CoreWindow.GetBorderFill | ( | ) |
Getting the current window border color.
CornerRadius SpaceVIL.CoreWindow.GetBorderRadius | ( | ) |
Getting the current window border corner radii.
int SpaceVIL.CoreWindow.GetBorderThickness | ( | ) |
Getting the current window border thickness.
int SpaceVIL.CoreWindow.GetCount | ( | ) |
Scale SpaceVIL.CoreWindow.GetDpiScale | ( | ) |
Getting DPI scale for the current window.
Prototype SpaceVIL.CoreWindow.GetFocusedItem | ( | ) |
Getting the current focused item in the current window.
Int64 SpaceVIL.CoreWindow.GetGLWID | ( | ) |
Getting the GLFW ID of the window.
int SpaceVIL.CoreWindow.GetHeight | ( | ) |
Getting the current window height.
List<IBaseItem> SpaceVIL.CoreWindow.GetItems | ( | ) |
Getting items as a list of IBaseItem items.
int SpaceVIL.CoreWindow.GetMaxHeight | ( | ) |
Getting the current maximum window height.
int SpaceVIL.CoreWindow.GetMaxWidth | ( | ) |
Getting the current maximum window width.
int SpaceVIL.CoreWindow.GetMinHeight | ( | ) |
Getting the current minimum window height.
int SpaceVIL.CoreWindow.GetMinWidth | ( | ) |
Getting the current minimum window width.
Position SpaceVIL.CoreWindow.GetPosition | ( | ) |
Getting the current window position.
RedrawFrequency SpaceVIL.CoreWindow.GetRenderFrequency | ( | ) |
Getting the current rendering frequency.
Color SpaceVIL.CoreWindow.GetShadeColor | ( | ) |
Getting the current dimmer color.
Core.Size SpaceVIL.CoreWindow.GetSize | ( | ) |
Getting the current window size.
int SpaceVIL.CoreWindow.GetWidth | ( | ) |
Getting the current minimum window width.
Guid SpaceVIL.CoreWindow.GetWindowGuid | ( | ) |
String SpaceVIL.CoreWindow.GetWindowName | ( | ) |
Getting the window name.
String SpaceVIL.CoreWindow.GetWindowTitle | ( | ) |
Getting the title text.
Area SpaceVIL.CoreWindow.GetWorkArea | ( | ) |
Getting the area of a primary monitor. The work area not occupied by global task bars or menu bars.
int SpaceVIL.CoreWindow.GetX | ( | ) |
Getting the current window x-coordinate.
int SpaceVIL.CoreWindow.GetY | ( | ) |
Getting the current window y-coordinate.
void SpaceVIL.CoreWindow.Hold | ( | ) |
Makes this window inactive. Window cannot receive and process any input events. Tip: to restore window activity use CoreWindow.Proceed().
|
pure virtual |
This abstract method should provide the initial window attributes, content, events.
Implemented in SpaceVIL.MessageBox.
void SpaceVIL.CoreWindow.InsertItem | ( | IBaseItem | item, |
int | index | ||
) |
Allows you to insert an item at a specified position.
item | An instance of any IBaseItem class. |
index | Index of position. |
bool SpaceVIL.CoreWindow.IsFocused | ( | ) |
Lets to know if the current window is focused or not.
void SpaceVIL.CoreWindow.Maximize | ( | ) |
Sets the window maximized.
void SpaceVIL.CoreWindow.Minimize | ( | ) |
Sets the window minimized.
void SpaceVIL.CoreWindow.Proceed | ( | ) |
Restores window activity. Window may receive and process any input events. Tip: used with CoreWindow.Hold() method which makes a window inactive.
bool SpaceVIL.CoreWindow.RemoveItem | ( | IBaseItem | item | ) |
Removing a specified item.
item | An instance of any IBaseItem class. |
void SpaceVIL.CoreWindow.ResetFocus | ( | ) |
Returns focus to the root item of the window.
void SpaceVIL.CoreWindow.SetAntiAliasingQuality | ( | MSAA | msaa | ) |
Setting the anti aliasing quality (off, x2, x4, x8). Default: MSAA.MSAA4x
msaa | SpaceVIL.Core.MSAA anti aliasing quality. |
void SpaceVIL.CoreWindow.SetAspectRatio | ( | int | w, |
int | h | ||
) |
Lets to set aspect ratio.
w | Width value. |
h | Height value. |
void SpaceVIL.CoreWindow.SetBackground | ( | Color | color | ) |
Setting window background color.
color | System.Drawing.Color.FromARGB(alpha, red, green, blue) |
void SpaceVIL.CoreWindow.SetBackground | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting window background color.
r | Red (0.0f - 1.0f) |
g | Green (0.0f - 1.0f) |
b | Blue (0.0f - 1.0f) |
void SpaceVIL.CoreWindow.SetBackground | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting window background color.
r | Red (0.0f - 1.0f) |
g | Green (0.0f - 1.0f) |
b | Blue (0.0f - 1.0f) |
a | Alpha (0.0f - 1.0f) |
void SpaceVIL.CoreWindow.SetBackground | ( | int | r, |
int | g, | ||
int | b | ||
) |
Setting window background color.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
void SpaceVIL.CoreWindow.SetBackground | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting window background color.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
a | Alpha color component. Range: (0 - 255) |
void SpaceVIL.CoreWindow.SetBorder | ( | Border | border | ) |
Setting the border of the root item of the window.
border | Border as SpaceVIL.Decorations.Border |
void SpaceVIL.CoreWindow.SetBorderFill | ( | Color | fill | ) |
Setting the color of the window border.
fill | Color as System.Drawing.Color |
void SpaceVIL.CoreWindow.SetBorderFill | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting the color of the window border.
r | Red (0.0f - 1.0f) |
g | Green (0.0f - 1.0f) |
b | Blue (0.0f - 1.0f) |
void SpaceVIL.CoreWindow.SetBorderFill | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting the color of the window border.
r | Red (0.0f - 1.0f) |
g | Green (0.0f - 1.0f) |
b | Blue (0.0f - 1.0f) |
a | Alpha (0.0f - 1.0f) |
void SpaceVIL.CoreWindow.SetBorderFill | ( | int | r, |
int | g, | ||
int | b | ||
) |
Setting the color of the window border.
r | Red (0 - 255) |
g | Green (0 - 255) |
b | Blue (0 - 255) |
void SpaceVIL.CoreWindow.SetBorderFill | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting the color of the window border.
r | Red (0 - 255) |
g | Green (0 - 255) |
b | Blue (0 - 255) |
a | Alpha (0 - 255) |
void SpaceVIL.CoreWindow.SetBorderRadius | ( | CornerRadius | radius | ) |
Setting the corner radii of the window border.
radius | Corner radii as SpaceVIL.Decorations.CornerRadius |
void SpaceVIL.CoreWindow.SetBorderRadius | ( | int | radius | ) |
Setting the common corner radius of the window border.
radius | The corner radius. |
void SpaceVIL.CoreWindow.SetBorderThickness | ( | int | thickness | ) |
Setting the window border thickness.
thickness | The border thickness. |
void SpaceVIL.CoreWindow.SetFocusedItem | ( | Prototype | item | ) |
Setting the specified item to the focused state.
item | Any item that can be focused and extends of SpaceVIL.Prototype (abstract class for interactive items). |
void SpaceVIL.CoreWindow.SetHeight | ( | int | height | ) |
Setting the window height.
height | Height in pixels. |
void SpaceVIL.CoreWindow.SetHidden | ( | bool | value | ) |
Hides of unhides the current window.
value | True: if you want to hide the window. False: if you want tu unhide the window. |
void SpaceVIL.CoreWindow.SetIcon | ( | Bitmap | iconBig, |
Bitmap | iconSmall | ||
) |
Sets the icons of the current window.
iconBig | Task bar icon. |
iconSmall | Title bar icon. |
void SpaceVIL.CoreWindow.SetMaxHeight | ( | int | height | ) |
Setting the window maximum height.
height | Maximum height in pixels. |
void SpaceVIL.CoreWindow.SetMaxSize | ( | int | width, |
int | height | ||
) |
Setting the maximum window size in pixels: width and height.
width | Maximum width in pixels. |
height | Maximum height in pixels. |
void SpaceVIL.CoreWindow.SetMaxWidth | ( | int | width | ) |
Setting the window maximum width.
width | Maximum width in pixels. |
void SpaceVIL.CoreWindow.SetMinHeight | ( | int | height | ) |
Setting the window minimum height.
height | Minimum height in pixels. |
void SpaceVIL.CoreWindow.SetMinSize | ( | int | width, |
int | height | ||
) |
Setting the minimum window size in pixels: width and height.
width | Minimum width in pixels. |
height | Minimum height in pixels. |
void SpaceVIL.CoreWindow.SetMinWidth | ( | int | width | ) |
Setting the window minimum width.
width | Minimum width in pixels. |
void SpaceVIL.CoreWindow.SetPadding | ( | Indents | padding | ) |
Setting padding indents. Padding is the space that’s inside the element between the element and the border.
padding | SpaceVIL.Decorations.Indents(int left, int top, int right, int bottom) |
void SpaceVIL.CoreWindow.SetPadding | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom | ||
) |
Setting padding indents. Padding is the space that’s inside the element between the element and the border.
left | Left indent. |
top | Top indent. |
right | Right indent. |
bottom | Bottom indent. |
void SpaceVIL.CoreWindow.SetParameters | ( | String | name, |
String | title | ||
) |
Setting basic window attributes.
name | Window name. |
title | Title text. |
void SpaceVIL.CoreWindow.SetParameters | ( | String | name, |
String | title, | ||
int | width, | ||
int | height | ||
) |
Setting basic window attributes
name | Window name. |
title | Title text. |
width | Window width in pixels. |
height | Window height in pixels. |
void SpaceVIL.CoreWindow.SetParameters | ( | String | name, |
String | title, | ||
int | width, | ||
int | height, | ||
bool | isBorder | ||
) |
Setting basic window attributes.
name | Window name. |
title | Title text. |
width | Window width in pixels. |
height | Window height in pixels. |
isBorder | A flag that shows/hides native window border decoration. |
void SpaceVIL.CoreWindow.SetPosition | ( | int | x, |
int | y | ||
) |
Setting the window x-coordinate and y-coordinate (the left-top window corner). Relocating the window at specified coordinates.
x | X-Coordinate. |
y | Y-Coordinate. |
void SpaceVIL.CoreWindow.SetPosition | ( | Position | position | ) |
Setting the window x-coordinate and y-coordinate (the left-top window corner). Relocating the window at specified coordinates.
position | X-coordinate and Y-coordinate provided as SpaceVIL.Core.Position |
void SpaceVIL.CoreWindow.SetRenderFrequency | ( | RedrawFrequency | value | ) |
Lets to set the rendering frequency. Default: SpaceVIL.Core.RedrawFrequency.Low
value | Rendering frequency as SpaceVIL.Core.RedrawFrequency. |
void SpaceVIL.CoreWindow.SetShadeColor | ( | Color | color | ) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window.
color | The dimmer color as System.Drawing.Color |
void SpaceVIL.CoreWindow.SetShadeColor | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window.
r | Red (0.0f - 1.0f) |
g | Green (0.0f - 1.0f) |
b | Blue (0.0f - 1.0f) |
void SpaceVIL.CoreWindow.SetShadeColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window.
r | Red (0.0f - 1.0f) |
g | Green (0.0f - 1.0f) |
b | Blue (0.0f - 1.0f) |
a | Alpha (0.0f - 1.0f) |
void SpaceVIL.CoreWindow.SetShadeColor | ( | int | r, |
int | g, | ||
int | b | ||
) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window.
r | Red (0 - 255) |
g | Green (0 - 255) |
b | Blue (0 - 255) |
void SpaceVIL.CoreWindow.SetShadeColor | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting the dimmer color of the window. The dimmer appears when the current window opens a dialog window.
r | Red (0 - 255) |
g | Green (0 - 255) |
b | Blue (0 - 255) |
a | Alpha (0 - 255) |
void SpaceVIL.CoreWindow.SetSize | ( | int | width, |
int | height | ||
) |
Setting the window size in pixels: width and height.
width | Width in pixels. |
height | Height in pixels. |
void SpaceVIL.CoreWindow.SetWidth | ( | int | width | ) |
Setting the window width.
width | Width in pixels. |
void SpaceVIL.CoreWindow.SetWindowName | ( | String | value | ) |
Setting the window name. The window name is the string ID of the window and may differ from the window title.
value | Window name. |
void SpaceVIL.CoreWindow.SetWindowTitle | ( | String | title | ) |
Setting the window title text.
title | Title text. |
void SpaceVIL.CoreWindow.SetX | ( | int | x | ) |
Setting the window x-coordinate (the left-top window corner). Relocating the window at specified x-coordinate.
x | X-Coordinate. |
void SpaceVIL.CoreWindow.SetY | ( | int | y | ) |
Setting the window y-coordinate (the left-top window corner). Relocating the window at specified y-coordinate.
y | Y-Coordinate. |
|
virtual |
Show the CoreWindow.
Reimplemented in SpaceVIL.MessageBox, and SpaceVIL.DialogWindow.
void SpaceVIL.CoreWindow.ToggleFullScreen | ( | ) |
Toggles the window to full screen mode or windowed mode.
EventCommonMethod SpaceVIL.CoreWindow.EventClose |
Lets to describe the actions when closing the window.
EventCommonMethodState SpaceVIL.CoreWindow.EventDestroy |
ATTENTION! Not implemented yet.
EventWindowDropMethod SpaceVIL.CoreWindow.EventDrop |
Lets to describe the actions when you drag and drop files/folders to the current window.
EventKeyMethodState SpaceVIL.CoreWindow.EventKeyPress |
Lets to describe the actions when a keyboard key was pressed.
EventKeyMethodState SpaceVIL.CoreWindow.EventKeyRelease |
Lets to describe the actions when a keyboard key was released.
EventMouseMethodState SpaceVIL.CoreWindow.EventMouseClick |
Lets to describe the actions when the root item of the window was clicked.
EventMouseMethodState SpaceVIL.CoreWindow.EventMouseDoubleClick |
Lets to describe the actions when the root item of the window was double clicked.
EventMouseMethodState SpaceVIL.CoreWindow.EventMouseDrag |
Lets to describe the actions when the mouse button was pressed and moved inside the root item of the window.
EventMouseMethodState SpaceVIL.CoreWindow.EventMouseDrop |
Lets to describe the actions when the mouse button was released after dragging.
EventMouseMethodState SpaceVIL.CoreWindow.EventMouseHover |
Lets to describe the actions when mouse cursor hovers the root item of the window.
EventMouseMethodState SpaceVIL.CoreWindow.EventMouseLeave |
Lets to describe the actions when mouse cursor leaves the root item of the window.
EventMouseMethodState SpaceVIL.CoreWindow.EventMousePress |
Lets to describe the actions when the root item of the window was pressed.
EventCommonMethod SpaceVIL.CoreWindow.EventOnStart |
Lets to describe the actions when the window starts.
EventCommonMethodState SpaceVIL.CoreWindow.EventResize |
ATTENTION! Not implemented yet.
EventMouseMethodState SpaceVIL.CoreWindow.EventScrollDown |
Lets to describe the actions when mouse wheel scrolls down.
EventMouseMethodState SpaceVIL.CoreWindow.EventScrollUp |
Lets to describe the actions when mouse wheel scrolls up.
EventInputTextMethodState SpaceVIL.CoreWindow.EventTextInput |
Lets to describe the actions when you type text.
bool SpaceVIL.CoreWindow.IsAlwaysOnTop |
A flag that determines whether the current window is always on top of all other windows or not. True: window is on top. False: window is NOT on top. Default: False.
bool SpaceVIL.CoreWindow.IsBorderHidden |
A flag that shows/hides native the current window border decoration. True: native window border is HIDDEN. False: native window border is SHOWN. Default: False.
bool SpaceVIL.CoreWindow.IsCentered |
A flag that determines whether the current window will first appear in the center of the screen or not. True: window is centered. False: window is NOT centered. Default: True.
bool SpaceVIL.CoreWindow.IsClosed |
A flag that determines whether the current window is in closed state or not. True: window is closed. False: window is opened. Default: True.
bool SpaceVIL.CoreWindow.IsDialog |
A flag that determines whether the current window is dialog or not. True: window is dialog. False: window is NOT dialog. Default: False.
bool SpaceVIL.CoreWindow.IsFocusable |
A flag that determines whether the current window can be in focused state or not.
True: window is focusable. False: window is NOT focusable.
Default: True.
bool SpaceVIL.CoreWindow.IsHidden |
A flag that determines whether the current window is in hidden state or not. True: window is hidden. False: window is unhidden. Default: False.
bool SpaceVIL.CoreWindow.IsMaximized |
A flag that determines whether the current window will first appear maximized or not. True: window will first appear maximized. False: window will NOT first appear maximized. Default: False.
bool SpaceVIL.CoreWindow.IsOutsideClickClosable |
A flag that determines whether the current window can be closed if the mouse is clicked outside of the current window or not. True: window can be closed if the mouse is clicked outside. False: window can NOT be closed if the mouse is clicked outside. Default: False.
bool SpaceVIL.CoreWindow.IsResizable |
A flag that determines whether the current window can be resize or not. True: window is resizable. False: window is NOT resizable. Default: True.
bool SpaceVIL.CoreWindow.IsTransparent |
A flag that determines whether the current window can be transparent or not. True: window can be transparent. False: window can NOT be transparent. Default: False.