Class StudioBackground

java.lang.Object
me.hackware.api.gui.studio.StudioBackground

public final class StudioBackground extends Object
The shell of a Studio screen: one unified rounded Card with a slightly darker sidebar rail down the left and a hairline divider between the rail and the content. Every screen in the Studio visual family draws this first, then lays a sidebar and a detail pane inside it.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Darkening tint over the sidebar rail.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    draw(UiContext ui, int x, int y, int w, int h, int railW)
    Draws the card, the rail tint (rounded with the card on the left, squared at the divider) and the rail divider.
    static void
    railDivider(UiContext ui, int x, int y, int h)
    A 1-device-pixel vertical divider, ending one device pixel inside the card's border at each end so the T-junctions meet cleanly instead of crossing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RAIL_TINT

      public static final int RAIL_TINT
      Darkening tint over the sidebar rail.
      See Also:
  • Method Details

    • draw

      public static void draw(UiContext ui, int x, int y, int w, int h, int railW)
      Draws the card, the rail tint (rounded with the card on the left, squared at the divider) and the rail divider. railW is the sidebar width.
    • railDivider

      public static void railDivider(UiContext ui, int x, int y, int h)
      A 1-device-pixel vertical divider, ending one device pixel inside the card's border at each end so the T-junctions meet cleanly instead of crossing.