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 GuiComponent
ICON_FONT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class GuiComponent
addRenderedListener, addRenderListener, getAppearance, getAppearanceDisabled, getAppearanceHovered, getBoundingBox, getCenterX, getCenterY, getClickConsumer, getComponentId, getComponents, getCurrentAppearance, getFocusedComponent, 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, hasInputFocus, hasTextAntialiasing, hasTextShadow, initializeComponents, isAutoScaling, isEnabled, isFocusable, isForwardMouseEvents, isHovered, isPressed, isSelected, isSuspended, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseEventShouldBeForwarded, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, onClicked, onHovered, onMouseDragged, onMouseEnter, onMouseLeave, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelScrolled, onResolutionChanged, onTextChanged, prepare, removeListener, removeListener, render, setAutomaticLineBreaks, setAutoScaling, setDimension, setEnabled, setFocusable, 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) Overrides the setX method from GuiComponent to prevent changing the x-coordinate. This method does nothing because screens always start at the coordinates (0, 0).- Overrides:
setXin classGuiComponent- Parameters:
x- The new x-coordinate, which will be ignored.
-
setY
public void setY(double y) Overrides the setY method from GuiComponent to prevent changing the y-coordinate. This method does nothing because screens always start at the coordinates (0, 0).- Overrides:
setYin classGuiComponent- Parameters:
y- The new y-coordinate, which will be ignored.
-