public interface Background
Modifier and Type | Method and Description |
---|---|
void |
apply(ej.microui.display.GraphicsContext g,
int width,
int height)
Applies the background on a graphics context.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isTransparent(int width,
int height)
Tells whether or not this background is transparent.
|
boolean isTransparent(int width, int height)
A background is considered as transparent if it does not draw every pixel with maximal opacity when it is applied. If a widget has a transparent background, its parent has to be rendered before the widget.
width
- the width of the background.height
- the height of the background.true
if the background is transparent, false
otherwise.void apply(ej.microui.display.GraphicsContext g, int width, int height)
g
- the graphics context.width
- the width of the background.height
- the height of the background.boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object