Reference for JVM 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.
com.spvessel.spacevil.CoreWindow Class Referenceabstract

CoreWindow is an abstract class containing an implementation of common functionality for a window. More...

Inherited by com.spvessel.spacevil.ActiveWindow, and com.spvessel.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, boolean isBorder)
 Setting basic window attributes. More...
 
void show ()
 Show the CoreWindow. More...
 
void close ()
 Close the CoreWindow. More...
 
abstract void initWindow ()
 This abstract method should provide the initial window attributes, content, events. More...
 
int getCount ()
 
UUID 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. More...
 
void setPadding (int left, int top, int right, int bottom)
 Setting padding indents. More...
 
List< InterfaceBaseItemgetItems ()
 Getting items as a list of IBaseItem items. More...
 
void addItem (InterfaceBaseItem item)
 Adding an item to the window. More...
 
void addItems (InterfaceBaseItem... items)
 Allows to add multiple items to the window. More...
 
void insertItem (InterfaceBaseItem item, int index)
 Allows you to insert an item at a specified position. More...
 
boolean removeItem (InterfaceBaseItem item)
 Removing a specified item. More...
 
void clear ()
 Removing all containing items in the window. More...
 
void setWindowName (String value)
 Setting the window name. 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...
 
Size getSize ()
 Getting the current window size. More...
 
void setX (int x)
 Setting the window x-coordinate (the left-top window corner). More...
 
int getX ()
 Getting the current window x-coordinate. More...
 
void setY (int y)
 Setting the window y-coordinate (the left-top window corner). 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). More...
 
void setPosition (Position position)
 Setting the window x-coordinate and y-coordinate (the left-top window corner). More...
 
Position getPosition ()
 Getting the current window position. More...
 
void setAntiAliasingQuality (MSAA msaa)
 Setting the anti aliasing quality (off, x2, x4, x8). More...
 
boolean 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 (BufferedImage icon_big, BufferedImage icon_small)
 Sets the icons of the current window. More...
 
void setHidden (Boolean value)
 Hides of unhides the current window. More...
 
void setRenderFrequency (RedrawFrequency value)
 Lets to set the rendering frequency. 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...
 
long getGLWID ()
 Getting the GLFW ID of the window. More...
 
void setShadeColor (Color color)
 Setting the dimmer color of the window. More...
 
void setShadeColor (int r, int g, int b)
 Setting the dimmer color of the window. More...
 
void setShadeColor (int r, int g, int b, int a)
 Setting the dimmer color of the window. More...
 
void setShadeColor (float r, float g, float b)
 Setting the dimmer color of the window. More...
 
void setShadeColor (float r, float g, float b, float a)
 Setting the dimmer color of the window. More...
 
Color getShadeColor ()
 Getting the current dimmer color. More...
 
Area getWorkArea ()
 Getting the area of a primary monitor. More...
 
Scale getDpiScale ()
 Getting DPI scale for the current window. More...
 
final void hold ()
 Makes this window inactive. More...
 
final void proceed ()
 Restores window activity. More...
 

Public Attributes

boolean isDialog
 
boolean isClosed
 
boolean isHidden
 
boolean isResizable
 
boolean isAlwaysOnTop
 
boolean isBorderHidden
 
boolean isCentered
 
boolean isFocusable
 
boolean isOutsideClickClosable
 
boolean isMaximized
 
boolean isTransparent
 
EventCommonMethod eventOnStart = new EventCommonMethod()
 Lets to describe the actions when the window starts. More...
 
EventCommonMethod eventClose = new EventCommonMethod()
 Lets to describe the actions when closing the window. More...
 
EventDropMethodState eventDrop = new EventDropMethodState()
 Lets to describe the actions when you drag and drop files/folders to the current window. More...
 
EventCommonMethodState eventResize = new EventCommonMethodState()
 ATTENTION! Not implemented yet. More...
 
EventCommonMethodState eventDestroy = new EventCommonMethodState()
 ATTENTION! Not implemented yet. More...
 
EventMouseMethodState eventMouseHover = new EventMouseMethodState()
 Lets to describe the actions when mouse cursor hovers the root item of the window. More...
 
EventMouseMethodState eventMouseLeave = new EventMouseMethodState()
 Lets to describe the actions when mouse cursor leaves the root item of the window. More...
 
EventMouseMethodState eventMouseClick = new EventMouseMethodState()
 Lets to describe the actions when the root item of the window was clicked. More...
 
EventMouseMethodState eventMouseDoubleClick = new EventMouseMethodState()
 Lets to describe the actions when the root item of the window was double clicked. More...
 
EventMouseMethodState eventMousePress = new EventMouseMethodState()
 Lets to describe the actions when the root item of the window was pressed. More...
 
EventMouseMethodState eventMouseDrag = new EventMouseMethodState()
 Lets to describe the actions when the mouse button was pressed and moved inside the root item of the window. More...
 
EventMouseMethodState eventMouseDrop = new EventMouseMethodState()
 Lets to describe the actions when the mouse button was released after dragging. More...
 
EventMouseMethodState eventScrollUp = new EventMouseMethodState()
 Lets to describe the actions when mouse wheel scrolls up. More...
 
EventMouseMethodState eventScrollDown = new EventMouseMethodState()
 Lets to describe the actions when mouse wheel scrolls down. More...
 
EventKeyMethodState eventKeyPress = new EventKeyMethodState()
 Lets to describe the actions when a keyboard key was pressed. More...
 
EventKeyMethodState eventKeyRelease = new EventKeyMethodState()
 Lets to describe the actions when a keyboard key was released. More...
 
EventInputTextMethodState eventTextInput = new EventInputTextMethodState()
 Lets to describe the actions when you type text. More...
 

Detailed Description

CoreWindow is an abstract class containing an implementation of common functionality for a window.

Constructor & Destructor Documentation

◆ CoreWindow()

com.spvessel.spacevil.CoreWindow.CoreWindow ( )

Constructs a CoreWindow.

Member Function Documentation

◆ addItem()

void com.spvessel.spacevil.CoreWindow.addItem ( InterfaceBaseItem  item)

Adding an item to the window.

Parameters
itemAn instance of any IBaseItem class.

◆ addItems()

void com.spvessel.spacevil.CoreWindow.addItems ( InterfaceBaseItem...  items)

Allows to add multiple items to the window.

Parameters
itemsAn instance of any IBaseItem class.

◆ clear()

void com.spvessel.spacevil.CoreWindow.clear ( )

Removing all containing items in the window.

◆ close()

void com.spvessel.spacevil.CoreWindow.close ( )

Close the CoreWindow.

Reimplemented in com.spvessel.spacevil.MessageBox.

◆ focus()

void com.spvessel.spacevil.CoreWindow.focus ( )

Sets the window focused.

◆ getBackground()

Color com.spvessel.spacevil.CoreWindow.getBackground ( )

Getting window background color.

Returns
Returns background color as System.Drawing.Color

◆ getBorderFill()

Color com.spvessel.spacevil.CoreWindow.getBorderFill ( )

Getting the current window border color.

Returns
The border color as java.awt.Color

◆ getBorderRadius()

CornerRadius com.spvessel.spacevil.CoreWindow.getBorderRadius ( )

Getting the current window border corner radii.

Returns
Corner radii as com.spvessel.spacevil.Decorations.CornerRadius

◆ getBorderThickness()

int com.spvessel.spacevil.CoreWindow.getBorderThickness ( )

Getting the current window border thickness.

Returns
The current thickness.

◆ getCount()

int com.spvessel.spacevil.CoreWindow.getCount ( )
Returns
Count of all CoreWindows

◆ getDpiScale()

Scale com.spvessel.spacevil.CoreWindow.getDpiScale ( )

Getting DPI scale for the current window.

Returns
DPI scale as com.spvessel.spacevil.Core.Scale

◆ getFocusedItem()

Prototype com.spvessel.spacevil.CoreWindow.getFocusedItem ( )

Getting the current focused item in the current window.

Returns
com.spvessel.spacevil.Prototype (abstract class for interactive items).

◆ getGLWID()

long com.spvessel.spacevil.CoreWindow.getGLWID ( )

Getting the GLFW ID of the window.

Returns
ID of the window.

◆ getHeight()

int com.spvessel.spacevil.CoreWindow.getHeight ( )

Getting the current window height.

Returns
Current height in pixels.

◆ getItems()

List<InterfaceBaseItem> com.spvessel.spacevil.CoreWindow.getItems ( )

Getting items as a list of IBaseItem items.

Returns
Returns a list of contained items in the window.

◆ getMaxHeight()

int com.spvessel.spacevil.CoreWindow.getMaxHeight ( )

Getting the current maximum window height.

Returns
Current maximum height in pixels.

◆ getMaxWidth()

int com.spvessel.spacevil.CoreWindow.getMaxWidth ( )

Getting the current maximum window width.

Returns
Current maximum width in pixels.

◆ getMinHeight()

int com.spvessel.spacevil.CoreWindow.getMinHeight ( )

Getting the current minimum window height.

Returns
Current minimum height in pixels.

◆ getMinWidth()

int com.spvessel.spacevil.CoreWindow.getMinWidth ( )

Getting the current minimum window width.

Returns
Current minimum width in pixels.

◆ getPosition()

Position com.spvessel.spacevil.CoreWindow.getPosition ( )

Getting the current window position.

Returns
X-coordinate and Y-coordinate provided as com.spvessel.spacevil.Core.Position

◆ getRenderFrequency()

RedrawFrequency com.spvessel.spacevil.CoreWindow.getRenderFrequency ( )

Getting the current rendering frequency.

Returns
Rendering frequency as com.spvessel.spacevil.Flags.RedrawFrequency

◆ getShadeColor()

Color com.spvessel.spacevil.CoreWindow.getShadeColor ( )

Getting the current dimmer color.

Returns
The dimmer color as java.awt.Color

◆ getSize()

Size com.spvessel.spacevil.CoreWindow.getSize ( )

Getting the current window size.

Returns
Current window size as com.spvessel.spacevil.Core.Size.

◆ getWidth()

int com.spvessel.spacevil.CoreWindow.getWidth ( )

Getting the current minimum window width.

Returns
Current minimum width in pixels.

◆ getWindowGuid()

UUID com.spvessel.spacevil.CoreWindow.getWindowGuid ( )
Returns
CoreWindow unique ID

◆ getWindowName()

String com.spvessel.spacevil.CoreWindow.getWindowName ( )

Getting the window name.

Returns
Window name.

◆ getWindowTitle()

String com.spvessel.spacevil.CoreWindow.getWindowTitle ( )

Getting the title text.

Returns
Title text.

◆ getWorkArea()

Area com.spvessel.spacevil.CoreWindow.getWorkArea ( )

Getting the area of a primary monitor.

The work area not occupied by global task bars or menu bars.

Returns
Work area as com.spvessel.spacevil.Core.Area

◆ getX()

int com.spvessel.spacevil.CoreWindow.getX ( )

Getting the current window x-coordinate.

Returns
Current x-coordinate.

◆ getY()

int com.spvessel.spacevil.CoreWindow.getY ( )

Getting the current window y-coordinate.

Returns
Current y-coordinate.

◆ hold()

final void com.spvessel.spacevil.CoreWindow.hold ( )

Makes this window inactive.

Window cannot receive and process any input events.

Tip: to restore window activity use CoreWindow.proceed().

◆ initWindow()

abstract void com.spvessel.spacevil.CoreWindow.initWindow ( )
abstract

This abstract method should provide the initial window attributes, content, events.

Reimplemented in com.spvessel.spacevil.MessageBox.

◆ insertItem()

void com.spvessel.spacevil.CoreWindow.insertItem ( InterfaceBaseItem  item,
int  index 
)

Allows you to insert an item at a specified position.

Parameters
itemAn instance of any IBaseItem class.
indexIndex of position.

◆ isFocused()

boolean com.spvessel.spacevil.CoreWindow.isFocused ( )

Lets to know if the current window is focused or not.

Returns
True: if the current window is focused. False: if the current window is unfocused.

◆ maximize()

void com.spvessel.spacevil.CoreWindow.maximize ( )

Sets the window maximized.

◆ minimize()

void com.spvessel.spacevil.CoreWindow.minimize ( )

Sets the window minimized.

◆ proceed()

final void com.spvessel.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.

◆ removeItem()

boolean com.spvessel.spacevil.CoreWindow.removeItem ( InterfaceBaseItem  item)

Removing a specified item.

Parameters
itemAn instance of any IBaseItem class.
Returns
True: if the window cantained the specified item and it was successfully removed. False: if the window did not cantain the specified item.

◆ resetFocus()

void com.spvessel.spacevil.CoreWindow.resetFocus ( )

Returns focus to the root item of the window.

◆ setAntiAliasingQuality()

void com.spvessel.spacevil.CoreWindow.setAntiAliasingQuality ( MSAA  msaa)

Setting the anti aliasing quality (off, x2, x4, x8).

Default: MSAA.MSAA4x

Parameters
msaacom.spvessel.spacevil.Flags.MSAA anti aliasing quality.

◆ setAspectRatio()

void com.spvessel.spacevil.CoreWindow.setAspectRatio ( int  w,
int  h 
)

Lets to set aspect ratio.

Parameters
wWidth value.
hHeight value.

◆ setBackground() [1/5]

void com.spvessel.spacevil.CoreWindow.setBackground ( Color  color)

Setting window background color.

Parameters
colorSystem.Drawing.Color.FromARGB(alpha, red, green, blue)

◆ setBackground() [2/5]

void com.spvessel.spacevil.CoreWindow.setBackground ( float  r,
float  g,
float  b 
)

Setting window background color.

Parameters
rRed (0.0f - 1.0f)
gGreen (0.0f - 1.0f)
bBlue (0.0f - 1.0f)

◆ setBackground() [3/5]

void com.spvessel.spacevil.CoreWindow.setBackground ( float  r,
float  g,
float  b,
float  a 
)

Setting window background color.

Parameters
rRed (0.0f - 1.0f)
gGreen (0.0f - 1.0f)
bBlue (0.0f - 1.0f)
aAlpha (0.0f - 1.0f)

◆ setBackground() [4/5]

void com.spvessel.spacevil.CoreWindow.setBackground ( int  r,
int  g,
int  b 
)

Setting window background color.

Parameters
rRed bits of a color. Range: (0 - 255)
gGreen bits of a color. Range: (0 - 255)
bBlue bits of a color. Range: (0 - 255)

◆ setBackground() [5/5]

void com.spvessel.spacevil.CoreWindow.setBackground ( int  r,
int  g,
int  b,
int  a 
)

Setting window background color.

Parameters
rRed bits of a color. Range: (0 - 255)
gGreen bits of a color. Range: (0 - 255)
bBlue bits of a color. Range: (0 - 255)
aAlpha bits of a color. Range: (0 - 255)

◆ setBorder()

void com.spvessel.spacevil.CoreWindow.setBorder ( Border  border)

Setting the border of the root item of the window.

Parameters
borderBorder as com.spvessel.spacevil.Decorations.Border

◆ setBorderFill() [1/5]

void com.spvessel.spacevil.CoreWindow.setBorderFill ( Color  fill)

Setting the color of the window border.

Parameters
fillColor as java.awt.Color

◆ setBorderFill() [2/5]

void com.spvessel.spacevil.CoreWindow.setBorderFill ( float  r,
float  g,
float  b 
)

Setting the color of the window border.

Parameters
rRed (0.0f - 1.0f)
gGreen (0.0f - 1.0f)
bBlue (0.0f - 1.0f)

◆ setBorderFill() [3/5]

void com.spvessel.spacevil.CoreWindow.setBorderFill ( float  r,
float  g,
float  b,
float  a 
)

Setting the color of the window border.

Parameters
rRed (0.0f - 1.0f)
gGreen (0.0f - 1.0f)
bBlue (0.0f - 1.0f)
aAlpha (0.0f - 1.0f)

◆ setBorderFill() [4/5]

void com.spvessel.spacevil.CoreWindow.setBorderFill ( int  r,
int  g,
int  b 
)

Setting the color of the window border.

Parameters
rRed (0 - 255)
gGreen (0 - 255)
bBlue (0 - 255)

◆ setBorderFill() [5/5]

void com.spvessel.spacevil.CoreWindow.setBorderFill ( int  r,
int  g,
int  b,
int  a 
)

Setting the color of the window border.

Parameters
rRed (0 - 255)
gGreen (0 - 255)
bBlue (0 - 255)
aAlpha (0 - 255)

◆ setBorderRadius() [1/2]

void com.spvessel.spacevil.CoreWindow.setBorderRadius ( CornerRadius  radius)

Setting the corner radii of the window border.

Parameters
radiusCorner radii as com.spvessel.spacevil.Decorations.CornerRadius

◆ setBorderRadius() [2/2]

void com.spvessel.spacevil.CoreWindow.setBorderRadius ( int  radius)

Setting the common corner radius of the window border.

Parameters
radiusThe corner radius.

◆ setBorderThickness()

void com.spvessel.spacevil.CoreWindow.setBorderThickness ( int  thickness)

Setting the window border thickness.

Parameters
thicknessThe border thickness.

◆ setFocusedItem()

void com.spvessel.spacevil.CoreWindow.setFocusedItem ( Prototype  item)

Setting the specified item to the focused state.

Parameters
itemAny item that can be focused and extends of com.spvessel.spacevil.Prototype (abstract class for interactive items).

◆ setHeight()

void com.spvessel.spacevil.CoreWindow.setHeight ( int  height)

Setting the window height.

Parameters
heightHeight in pixels.

◆ setHidden()

void com.spvessel.spacevil.CoreWindow.setHidden ( Boolean  value)

Hides of unhides the current window.

Parameters
valueTrue: if you want to hide the window. False: if you want tu unhide the window.

◆ setIcon()

void com.spvessel.spacevil.CoreWindow.setIcon ( BufferedImage  icon_big,
BufferedImage  icon_small 
)

Sets the icons of the current window.

Parameters
icon_bigTask bar icon.
icon_smallTitle bar icon.

◆ setMaxHeight()

void com.spvessel.spacevil.CoreWindow.setMaxHeight ( int  height)

Setting the window maximum height.

Parameters
heightMaximum height in pixels.

◆ setMaxSize()

void com.spvessel.spacevil.CoreWindow.setMaxSize ( int  width,
int  height 
)

Setting the maximum window size in pixels: width and height.

Parameters
widthMaximum width in pixels.
heightMaximum height in pixels.

◆ setMaxWidth()

void com.spvessel.spacevil.CoreWindow.setMaxWidth ( int  width)

Setting the window maximum width.

Parameters
widthMaximum width in pixels.

◆ setMinHeight()

void com.spvessel.spacevil.CoreWindow.setMinHeight ( int  height)

Setting the window minimum height.

Parameters
heightMinimum height in pixels.

◆ setMinSize()

void com.spvessel.spacevil.CoreWindow.setMinSize ( int  width,
int  height 
)

Setting the minimum window size in pixels: width and height.

Parameters
widthMinimum width in pixels.
heightMinimum height in pixels.

◆ setMinWidth()

void com.spvessel.spacevil.CoreWindow.setMinWidth ( int  width)

Setting the window minimum width.

Parameters
widthMinimum width in pixels.

◆ setPadding() [1/2]

void com.spvessel.spacevil.CoreWindow.setPadding ( Indents  padding)

Setting padding indents.

Padding is the space that’s inside the element between the element and the border.

Parameters
paddingcom.spvessel.spacevil.Decorations.Indents(int left, int top, int right, int bottom)

◆ setPadding() [2/2]

void com.spvessel.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.

Parameters
leftLeft indent.
topTop indent.
rightRight indent.
bottomBottom indent.

◆ setParameters() [1/3]

void com.spvessel.spacevil.CoreWindow.setParameters ( String  name,
String  title 
)

Setting basic window attributes.

Parameters
nameWindow name.
titleTitle text.

◆ setParameters() [2/3]

void com.spvessel.spacevil.CoreWindow.setParameters ( String  name,
String  title,
int  width,
int  height 
)

Setting basic window attributes.

Parameters
nameWindow name.
titleTitle text.
widthWindow width in pixels.
heightWindow height in pixels.

◆ setParameters() [3/3]

void com.spvessel.spacevil.CoreWindow.setParameters ( String  name,
String  title,
int  width,
int  height,
boolean  isBorder 
)

Setting basic window attributes.

Parameters
nameWindow name.
titleTitle text.
widthWindow width in pixels.
heightWindow height in pixels.
isBorderA flag that shows/hides native window border decoration.

◆ setPosition() [1/2]

void com.spvessel.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.

Parameters
xX-Coordinate.
yY-Coordinate.

◆ setPosition() [2/2]

void com.spvessel.spacevil.CoreWindow.setPosition ( Position  position)

Setting the window x-coordinate and y-coordinate (the left-top window corner).

Relocating the window at specified coordinates.

Parameters
positionX-coordinate and Y-coordinate provided as com.spvessel.spacevil.Core.Position

◆ setRenderFrequency()

void com.spvessel.spacevil.CoreWindow.setRenderFrequency ( RedrawFrequency  value)

Lets to set the rendering frequency.

Default: com.spvessel.spacevil.Flags.RedrawFrequency.Low

Parameters
valueRendering frequency as com.spvessel.spacevil.Flags.RedrawFrequency.

◆ setShadeColor() [1/5]

void com.spvessel.spacevil.CoreWindow.setShadeColor ( Color  color)

Setting the dimmer color of the window.

The dimmer appears when the current window opens a dialog window.

Parameters
colorThe dimmer color as java.awt.Color

◆ setShadeColor() [2/5]

void com.spvessel.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.

Parameters
rRed (0.0f - 1.0f)
gGreen (0.0f - 1.0f)
bBlue (0.0f - 1.0f)

◆ setShadeColor() [3/5]

void com.spvessel.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.

Parameters
rRed (0.0f - 1.0f)
gGreen (0.0f - 1.0f)
bBlue (0.0f - 1.0f)
aAlpha (0.0f - 1.0f)

◆ setShadeColor() [4/5]

void com.spvessel.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.

Parameters
rRed (0 - 255)
gGreen (0 - 255)
bBlue (0 - 255)

◆ setShadeColor() [5/5]

void com.spvessel.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.

Parameters
rRed (0 - 255)
gGreen (0 - 255)
bBlue (0 - 255)
aAlpha (0 - 255)

◆ setSize()

void com.spvessel.spacevil.CoreWindow.setSize ( int  width,
int  height 
)

Setting the window size in pixels: width and height.

Parameters
widthWidth in pixels.
heightHeight in pixels.

◆ setWidth()

void com.spvessel.spacevil.CoreWindow.setWidth ( int  width)

Setting the window width.

Parameters
widthWidth in pixels.

◆ setWindowName()

void com.spvessel.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.

Parameters
valueWindow name.

◆ setWindowTitle()

void com.spvessel.spacevil.CoreWindow.setWindowTitle ( String  title)

Setting the window title text.

Parameters
titleTitle text.

◆ setX()

void com.spvessel.spacevil.CoreWindow.setX ( int  x)

Setting the window x-coordinate (the left-top window corner).

Relocating the window at specified x-coordinate.

Parameters
xX-Coordinate.

◆ setY()

void com.spvessel.spacevil.CoreWindow.setY ( int  y)

Setting the window y-coordinate (the left-top window corner).

Relocating the window at specified y-coordinate.

Parameters
yY-Coordinate.

◆ show()

void com.spvessel.spacevil.CoreWindow.show ( )

◆ toggleFullScreen()

void com.spvessel.spacevil.CoreWindow.toggleFullScreen ( )

Toggles the window to full screen mode or windowed mode.

Member Data Documentation

◆ eventClose

EventCommonMethod com.spvessel.spacevil.CoreWindow.eventClose = new EventCommonMethod()

Lets to describe the actions when closing the window.

◆ eventDestroy

EventCommonMethodState com.spvessel.spacevil.CoreWindow.eventDestroy = new EventCommonMethodState()

ATTENTION! Not implemented yet.

◆ eventDrop

EventDropMethodState com.spvessel.spacevil.CoreWindow.eventDrop = new EventDropMethodState()

Lets to describe the actions when you drag and drop files/folders to the current window.

◆ eventKeyPress

EventKeyMethodState com.spvessel.spacevil.CoreWindow.eventKeyPress = new EventKeyMethodState()

Lets to describe the actions when a keyboard key was pressed.

◆ eventKeyRelease

EventKeyMethodState com.spvessel.spacevil.CoreWindow.eventKeyRelease = new EventKeyMethodState()

Lets to describe the actions when a keyboard key was released.

◆ eventMouseClick

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventMouseClick = new EventMouseMethodState()

Lets to describe the actions when the root item of the window was clicked.

◆ eventMouseDoubleClick

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventMouseDoubleClick = new EventMouseMethodState()

Lets to describe the actions when the root item of the window was double clicked.

◆ eventMouseDrag

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventMouseDrag = new EventMouseMethodState()

Lets to describe the actions when the mouse button was pressed and moved inside the root item of the window.

◆ eventMouseDrop

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventMouseDrop = new EventMouseMethodState()

Lets to describe the actions when the mouse button was released after dragging.

◆ eventMouseHover

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventMouseHover = new EventMouseMethodState()

Lets to describe the actions when mouse cursor hovers the root item of the window.

◆ eventMouseLeave

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventMouseLeave = new EventMouseMethodState()

Lets to describe the actions when mouse cursor leaves the root item of the window.

◆ eventMousePress

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventMousePress = new EventMouseMethodState()

Lets to describe the actions when the root item of the window was pressed.

◆ eventOnStart

EventCommonMethod com.spvessel.spacevil.CoreWindow.eventOnStart = new EventCommonMethod()

Lets to describe the actions when the window starts.

◆ eventResize

EventCommonMethodState com.spvessel.spacevil.CoreWindow.eventResize = new EventCommonMethodState()

ATTENTION! Not implemented yet.

◆ eventScrollDown

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventScrollDown = new EventMouseMethodState()

Lets to describe the actions when mouse wheel scrolls down.

◆ eventScrollUp

EventMouseMethodState com.spvessel.spacevil.CoreWindow.eventScrollUp = new EventMouseMethodState()

Lets to describe the actions when mouse wheel scrolls up.

◆ eventTextInput

EventInputTextMethodState com.spvessel.spacevil.CoreWindow.eventTextInput = new EventInputTextMethodState()

Lets to describe the actions when you type text.

◆ isAlwaysOnTop

boolean com.spvessel.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.

◆ isBorderHidden

boolean com.spvessel.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.

◆ isCentered

boolean com.spvessel.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.

◆ isClosed

boolean com.spvessel.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.

◆ isDialog

boolean com.spvessel.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.

◆ isFocusable

boolean com.spvessel.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.

◆ isHidden

boolean com.spvessel.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.

◆ isMaximized

boolean com.spvessel.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.

◆ isOutsideClickClosable

boolean com.spvessel.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.

◆ isResizable

boolean com.spvessel.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.

◆ isTransparent

boolean com.spvessel.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.


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