Interface ILightLayout

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.swt.graphics.Point computeSize​(ILightComposite composite, org.eclipse.swt.graphics.GC gc, int wHint, int hHint, boolean flushCache)
      Computes the size of the given composite.
      boolean flushCache​(ILightControl control)
      Flushes the layout cache for the given control.
      void layout​(ILightComposite composite, org.eclipse.swt.graphics.GC gc, boolean flushCache)
      Layouts the given composite.
    • Method Detail

      • computeSize

        org.eclipse.swt.graphics.Point computeSize​(ILightComposite composite,
                                                   org.eclipse.swt.graphics.GC gc,
                                                   int wHint,
                                                   int hHint,
                                                   boolean flushCache)
        Computes the size of the given composite.
        Parameters:
        composite - the composite to compute the size of.
        gc - the GC to do the measurements with.
        wHint - the width hint.
        hHint - the height hint.
        flushCache - the flush cache flag, instructs the layout to reset all its caches, if any.
        Returns:
      • flushCache

        boolean flushCache​(ILightControl control)
        Flushes the layout cache for the given control.
        Parameters:
        control - the control to flush the cache for.
        Returns:
        true if the layout has flushed the cache, false otherwise.
      • layout

        void layout​(ILightComposite composite,
                    org.eclipse.swt.graphics.GC gc,
                    boolean flushCache)
        Layouts the given composite.
        Parameters:
        composite - the composite to layout.
        gc - the GC to do the measurements with.
        flushCache - the flush cache flag, instructs the layout to reset all its caches, if any.