Module be.yildizgames.module.window
Interface WindowShell
-
- All Superinterfaces:
WindowWidget<WindowShell>
public interface WindowShell extends WindowWidget<WindowShell>
Native window shell.- Author:
- Grégory Van den Borre
-
-
Method Summary
-
Methods inherited from interface be.yildizgames.module.window.widget.WindowWidget
getBottom, getLeft, getRight, getTop, setCoordinates, setPosition, setSize, setVisible
-
-
-
-
Method Detail
-
setTitle
WindowShell setTitle(String title)
The the window title.- Parameters:
title
- Title to set.- Returns:
- This object for chaining.
-
setIcon
WindowShell setIcon(String file)
Set the window icon.- Parameters:
file
- Icon file path.- Returns:
- This object for chaining.
-
setBackground
WindowShell setBackground(Color color)
Set the window background color.- Parameters:
color
- Color to use.- Returns:
- This object for chaining.
-
setBackground
WindowShell setBackground(String file)
Set the window background image.- Parameters:
file
- Background image file.- Returns:
- This object for chaining.
-
setSize
WindowShell setSize(int width, int height)
Set the window size.- Parameters:
width
- Window width.height
- Window height.- Returns:
- This object for chaining.
-
setFullScreen
WindowShell setFullScreen()
-
getSize
ScreenSize getSize()
Provide the window size.- Returns:
- The window size.
-
getMonitorSize
ScreenSize getMonitorSize()
Provide the monitor size.- Returns:
- The monitor size.
-
open
void open()
Open the window.
-
close
void close()
Close the window.
-
update
void update()
Check for an event and sleep if none.
-
checkForEvent
void checkForEvent()
Check for an event without sleeping.
-
createMessageBox
WindowModal createMessageBox()
Create a new message modal window.- Returns:
- The created modal window.
-
createMessageButtonBox
WindowModal createMessageButtonBox()
Create a new message modal window with a button for confirmation.- Returns:
- The created modal window.
-
createTextArea
WindowTextArea createTextArea()
Create a new text area widget.- Returns:
- The created text area.
-
createTextLine
WindowTextLine createTextLine()
Create a new text line widget.- Returns:
- The created text line.
-
createButton
WindowButton createButton()
Create a new button widget.- Returns:
- The created button.
-
createButton
WindowButton createButton(String background, String hover)
-
createImage
WindowImage createImage(String image)
Create a new image widget.- Returns:
- The created image.
-
createProgressBar
WindowProgressBar createProgressBar()
-
createTreeRoot
WindowTreeRoot createTreeRoot(int width, int height, WindowTreeElement... elements)
-
createDropdown
WindowDropdown createDropdown()
-
createTextButton
WindowButtonText createTextButton()
-
createInputBox
WindowInputBox createInputBox()
-
createChildWindow
WindowShell createChildWindow()
-
createMenuBar
WindowMenuBar createMenuBar(WindowMenuBarElementDefinition... elements)
-
createOpenFileBox
WindowModalFile createOpenFileBox()
-
createFont
WindowFont createFont(String path, int height)
-
createNotification
WindowNotification createNotification()
-
createCanvas
WindowCanvas createCanvas()
-
addKeyListener
WindowShell addKeyListener(KeyboardListener listener)
-
toBack
WindowShell toBack()
-
minimize
default WindowShell minimize(OnMinimize... minimizes)
-
maximize
default WindowShell maximize()
-
createMediaPlayer
WindowMediaPlayer createMediaPlayer()
-
exit
default void exit()
-
requestFocus
default void requestFocus()
-
getHandle
default WindowHandle getHandle()
-
toFront
default WindowShell toFront()
-
getCoordinates
BaseCoordinate getCoordinates()
-
-