Package com._1c.g5.lwt.layouts
Interface ILightLayout
-
- All Known Implementing Classes:
LightColumnLayout
,LightRowLayout
,LightTwoColumnLayout
public interface ILightLayout
The light controls twin of SWTLayout
.
-
-
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
- theGC
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
- theGC
to do the measurements with.flushCache
- the flush cache flag, instructs the layout to reset all its caches, if any.
-
-