Class Screen
java.lang.Object
de.gurkenlabs.litiengine.gui.GuiComponent
de.gurkenlabs.litiengine.gui.screens.Screen
- All Implemented Interfaces:
IRenderable
,Tweenable
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
- Direct Known Subclasses:
GameScreen
Screens are the containers that allow you to organize the visible contents of your game. They render the game’s
Environment and are considered the parent of all GUI components you want to display in a particular state of your
game. The screen itself inherits from GuiComponent and thereby provides support to define an Appearance and listen to
all kinds of Input events (e.g.
onMouseMoved(…)
). Everything that should be visible to the player needs to be
rendered to the currently active screen.-
Field Summary
Fields inherited from class de.gurkenlabs.litiengine.gui.GuiComponent
ICON_FONT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.gurkenlabs.litiengine.gui.GuiComponent
addRenderedListener, addRenderListener, getAppearance, getAppearanceDisabled, getAppearanceHovered, getBoundingBox, getCenterX, getCenterY, getClickConsumer, getComponentId, getComponents, getCurrentAppearance, getFont, getHeight, getHoverConsumer, getHoverSound, getLocation, getMouseDraggedConsumer, getMouseEnterConsumer, getMouseLeaveConsumer, getMouseMovedConsumer, getMousePressedConsumer, getMouseReleasedConsumer, getMouseWheelConsumer, getName, getShape, getTag, getText, getTextAlign, getTextAngle, getTextShadowColor, getTextShadowRadius, getTextToRender, getTextValign, getTextX, getTextY, getTweenValues, getWidth, getX, getY, hasAutomaticLineBreaks, hasTextAntialiasing, hasTextShadow, initializeComponents, isEnabled, isForwardMouseEvents, isHovered, isPressed, isSelected, isSuspended, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseEventShouldBeForwarded, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, onClicked, onHovered, onMouseDragged, onMouseEnter, onMouseLeave, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelScrolled, onTextChanged, prepare, removeListener, removeListener, render, setAutomaticLineBreaks, setDimension, setEnabled, setFont, setFontSize, setForwardMouseEvents, setHeight, setHovered, setHoverSound, setLocation, setLocation, setName, setSelected, setTag, setText, setTextAlign, setTextAngle, setTextAntialiasing, setTextShadow, setTextShadowColor, setTextShadowRadius, setTextValign, setTextX, setTextY, setTweenValues, setVisible, setWidth, suspend, toggleSelection, toggleSuspension
-
Constructor Details
-
Screen
-
-
Method Details
-
setX
public void setX(double x) Description copied from class:GuiComponent
Sets the GuiComponent's x coordinate.- Overrides:
setX
in classGuiComponent
- Parameters:
x
- the new x coordinate
-
setY
public void setY(double y) Description copied from class:GuiComponent
Sets the GuiComponent's y coordinate.- Overrides:
setY
in classGuiComponent
- Parameters:
y
- the new y coordinate
-