Class Panel

java.lang.Object
com.spinyowl.legui.component.Component
com.spinyowl.legui.component.Panel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExampleGui, ScrollablePanel.ScrollablePanelContainer, ScrollablePanel.ScrollablePanelViewport, SplitPanel, TextArea.TextAreaViewport

public class Panel extends Component
Default Container implementation. Used to hold components.
See Also:
  • Constructor Details

    • Panel

      public Panel()
      Default constructor. Used to create component instance without any parameters.

      Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.

    • Panel

      public Panel(float x, float y, float width, float height)
      Constructor with position and size parameters.
      Parameters:
      x - x position position in parent component.
      y - y position position in parent component.
      width - width of component.
      height - height of component.
    • Panel

      public Panel(org.joml.Vector2f position, org.joml.Vector2f size)
      Constructor with position and size parameters.
      Parameters:
      position - position position in parent component.
      size - size of component.