Class Scrollbar

  • All Implemented Interfaces:
    kotlin.Cloneable

    
    public final class Scrollbar
    extends Block
                        
    • Constructor Detail

      • Scrollbar

        Scrollbar(Boolean horizontal)
    • Method Detail

      • setRenders

         Unit setRenders(Boolean renders)

        weather or not this drawable should be rendered.

        This is controlled by Layout.clipDrawables to save resources by not drawing drawables which cannot be seen.

        It is only respected by Layout by default. This means that if you are calling render yourself (which you really shouldn't), you should check this value.

      • render

         Unit render()

        draw script for this drawable.

      • calculateBounds

         Unit calculateBounds()

        Calculate the position and size of this drawable. Make sure to call doDynamicSize in this method to avoid issues with sizing.

        This method is called once the layout is populated for children and component, and when a recalculation is requested.

        The value of layout's bounds will be updated after this method is called, so do not use layout's bounds as an updated value in this method.

      • accept

         Boolean accept(Event event)

        called when this drawable receives an event.

        make sure to call Drawable.accept!