Class ExtensionsKt

  • All Implemented Interfaces:

    
    public final class ExtensionsKt
    
                        
    • Constructor Detail

    • Method Detail

      • addHoverInfo

         final static <S extends Inputtable> S addHoverInfo(S $self, Drawable drawables, Vec2 size, Align align, Point position)

        Add some text that is shown when the mouse is left still over this drawable for 1 second or more.

        Since:

        1.0.3

      • dontScroll

         final static <S extends Scrollable> S dontScroll(S $self)

        Instruct this component to refuse scrolling even if it is deemed necessary.

      • ignoreLayout

         final static <S extends Component> S ignoreLayout(S $self, Boolean state)

        Specify that this component should be ignored during the layout stage.

        This means that it will not be placed automatically by the positioner.

        Additionally, this will ignore if there is no size set on this component and no way to infer it.** This means that, if you use this incorrectly it will not be visible and may break things if your renderer doesn't like zero sizes.

        Since:

        1.4.4

      • minimumSize

         final static <S extends Scrollable> S minimumSize(S $self, Vec2 size)

        Specify a minimum size for this component. Note that this will also disable scrolling due to optimizations.

        Since:

        1.4.4