LibreOffice Module android (master) 1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.mozilla.gecko.gfx.SingleTileLayer Class Reference

Encapsulates the logic needed to draw a single textured tile. More...

Inheritance diagram for org.mozilla.gecko.gfx.SingleTileLayer:
[legend]
Collaboration diagram for org.mozilla.gecko.gfx.SingleTileLayer:
[legend]

Public Member Functions

 SingleTileLayer (CairoImage image)
 
 SingleTileLayer (boolean repeat, CairoImage image)
 
 SingleTileLayer (CairoImage image, TileLayer.PaintMode paintMode)
 
void setMask (Rect aMaskRect)
 Set an area to mask out when rendering. More...
 
void draw (RenderContext context)
 Subclasses override this function to draw the layer. More...
 
- Public Member Functions inherited from org.mozilla.gecko.gfx.TileLayer
CairoImage getImage ()
 
 TileLayer (CairoImage image, PaintMode paintMode)
 
void destroy ()
 
void setPaintMode (PaintMode mode)
 
void invalidate ()
 Invalidates the entire buffer so that it will be uploaded again. More...
 
- Public Member Functions inherited from org.mozilla.gecko.gfx.Layer
 Layer ()
 
 Layer (IntSize size)
 
final boolean update (RenderContext context)
 Updates the layer. More...
 
abstract void draw (RenderContext context)
 Subclasses override this function to draw the layer. More...
 
Region getValidRegion (RenderContext context)
 Returns the region of the layer that is considered valid. More...
 
void beginTransaction ()
 Call this before modifying the layer. More...
 
void endTransaction ()
 Call this when you're done modifying the layer. More...
 
Rect getPosition ()
 Returns the current layer position. More...
 
void setPosition (Rect newPosition)
 Sets the position. More...
 
float getResolution ()
 Returns the current layer's resolution. More...
 
void setResolution (float newResolution)
 Sets the layer resolution. More...
 
boolean usesDefaultProgram ()
 

Private Attributes

Rect mMask
 
final RectF mBounds
 
final RectF mTextureBounds
 
final RectF mViewport
 
final Rect mIntBounds
 
final Rect mSubRect
 
final RectF mSubRectF
 
final Region mMaskedBounds
 
final Rect mCropRect
 
final RectF mObjRectF
 
final float[] mCoords
 

Static Private Attributes

static final String LOGTAG = "GeckoSingleTileLayer"
 

Additional Inherited Members

- Protected Member Functions inherited from org.mozilla.gecko.gfx.TileLayer
boolean repeats ()
 
boolean stretches ()
 
int getTextureID ()
 
boolean initialized ()
 
void finalize () throws Throwable
 
void performUpdates (RenderContext context)
 Subclasses may override this method to perform custom layer updates. More...
 
- Protected Member Functions inherited from org.mozilla.gecko.gfx.Layer
RectF getBounds (RenderContext context)
 Given the intrinsic size of the layer, returns the pixel boundaries of the layer rect. More...
 
boolean inTransaction ()
 Returns true if the layer is currently in a transaction and false otherwise. More...
 
void performUpdates (RenderContext context)
 Subclasses may override this method to perform custom layer updates. More...
 
final void fillRectCoordBuffer (float[] dest, RectF rect, float viewWidth, float viewHeight, Rect cropRect, float texWidth, float texHeight)
 This function fills in the provided dest array with values to render a texture. More...
 
- Protected Attributes inherited from org.mozilla.gecko.gfx.TileLayer
final CairoImage mImage
 
- Protected Attributes inherited from org.mozilla.gecko.gfx.Layer
Rect mPosition
 
float mResolution
 
boolean mUsesDefaultProgram = true
 

Detailed Description

Encapsulates the logic needed to draw a single textured tile.

TODO: Repeating textures really should be their own type of layer.

Definition at line 21 of file SingleTileLayer.java.

Constructor & Destructor Documentation

◆ SingleTileLayer() [1/3]

org.mozilla.gecko.gfx.SingleTileLayer.SingleTileLayer ( CairoImage  image)
inline

Definition at line 39 of file SingleTileLayer.java.

◆ SingleTileLayer() [2/3]

org.mozilla.gecko.gfx.SingleTileLayer.SingleTileLayer ( boolean  repeat,
CairoImage  image 
)
inline

◆ SingleTileLayer() [3/3]

org.mozilla.gecko.gfx.SingleTileLayer.SingleTileLayer ( CairoImage  image,
TileLayer.PaintMode  paintMode 
)
inline

Member Function Documentation

◆ draw()

void org.mozilla.gecko.gfx.SingleTileLayer.draw ( RenderContext  context)
inline

◆ setMask()

void org.mozilla.gecko.gfx.SingleTileLayer.setMask ( Rect  aMaskRect)
inline

Set an area to mask out when rendering.

Definition at line 65 of file SingleTileLayer.java.

References org.mozilla.gecko.gfx.SingleTileLayer.mMask.

Referenced by org.mozilla.gecko.gfx.LayerRenderer.Frame.drawBackground().

Member Data Documentation

◆ LOGTAG

final String org.mozilla.gecko.gfx.SingleTileLayer.LOGTAG = "GeckoSingleTileLayer"
staticprivate

Definition at line 22 of file SingleTileLayer.java.

◆ mBounds

final RectF org.mozilla.gecko.gfx.SingleTileLayer.mBounds
private

◆ mCoords

final float [] org.mozilla.gecko.gfx.SingleTileLayer.mCoords
private

◆ mCropRect

final Rect org.mozilla.gecko.gfx.SingleTileLayer.mCropRect
private

◆ mIntBounds

final Rect org.mozilla.gecko.gfx.SingleTileLayer.mIntBounds
private

◆ mMask

Rect org.mozilla.gecko.gfx.SingleTileLayer.mMask
private

◆ mMaskedBounds

final Region org.mozilla.gecko.gfx.SingleTileLayer.mMaskedBounds
private

◆ mObjRectF

final RectF org.mozilla.gecko.gfx.SingleTileLayer.mObjRectF
private

◆ mSubRect

final Rect org.mozilla.gecko.gfx.SingleTileLayer.mSubRect
private

◆ mSubRectF

final RectF org.mozilla.gecko.gfx.SingleTileLayer.mSubRectF
private

◆ mTextureBounds

final RectF org.mozilla.gecko.gfx.SingleTileLayer.mTextureBounds
private

◆ mViewport

final RectF org.mozilla.gecko.gfx.SingleTileLayer.mViewport
private

The documentation for this class was generated from the following file: