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

Static Public Member Functions

static RectF expand (RectF rect, float moreWidth, float moreHeight)
 
static RectF contract (RectF rect, float lessWidth, float lessHeight)
 
static RectF intersect (RectF one, RectF two)
 
static RectF scale (RectF rect, float scale)
 
static RectF inverseScale (RectF rect, float scale)
 
static Rect round (RectF rect)
 Returns the nearest integer rect of the given rect. More...
 
static void round (RectF rect, Rect dest)
 
static Rect roundIn (RectF rect)
 
static IntSize getSize (Rect rect)
 
static Point getOrigin (Rect rect)
 
static PointF getOrigin (RectF rect)
 
static boolean fuzzyEquals (RectF a, RectF b)
 
static void assign (final RectF target, final RectF source)
 Assign rectangle values from source to target. More...
 

Private Member Functions

 RectUtils ()
 

Detailed Description

Definition at line 15 of file RectUtils.java.

Constructor & Destructor Documentation

◆ RectUtils()

org.mozilla.gecko.gfx.RectUtils.RectUtils ( )
inlineprivate

Definition at line 16 of file RectUtils.java.

Member Function Documentation

◆ assign()

static void org.mozilla.gecko.gfx.RectUtils.assign ( final RectF  target,
final RectF  source 
)
inlinestatic

Assign rectangle values from source to target.

Definition at line 103 of file RectUtils.java.

Referenced by org.libreoffice.overlay.DocumentOverlayView.positionHandle(), and org.libreoffice.overlay.DocumentOverlayView.showCellSelection().

◆ contract()

static RectF org.mozilla.gecko.gfx.RectUtils.contract ( RectF  rect,
float  lessWidth,
float  lessHeight 
)
inlinestatic

◆ expand()

static RectF org.mozilla.gecko.gfx.RectUtils.expand ( RectF  rect,
float  moreWidth,
float  moreHeight 
)
inlinestatic

Definition at line 18 of file RectUtils.java.

◆ fuzzyEquals()

static boolean org.mozilla.gecko.gfx.RectUtils.fuzzyEquals ( RectF  a,
RectF  b 
)
inlinestatic

◆ getOrigin() [1/2]

static Point org.mozilla.gecko.gfx.RectUtils.getOrigin ( Rect  rect)
inlinestatic

Definition at line 81 of file RectUtils.java.

References Point.

◆ getOrigin() [2/2]

static PointF org.mozilla.gecko.gfx.RectUtils.getOrigin ( RectF  rect)
inlinestatic

Definition at line 85 of file RectUtils.java.

◆ getSize()

static IntSize org.mozilla.gecko.gfx.RectUtils.getSize ( Rect  rect)
inlinestatic

Definition at line 77 of file RectUtils.java.

◆ intersect()

static RectF org.mozilla.gecko.gfx.RectUtils.intersect ( RectF  one,
RectF  two 
)
inlinestatic

Definition at line 36 of file RectUtils.java.

References bottom, left, Math, one, right, top, and two.

◆ inverseScale()

static RectF org.mozilla.gecko.gfx.RectUtils.inverseScale ( RectF  rect,
float  scale 
)
inlinestatic

Definition at line 52 of file RectUtils.java.

References org.mozilla.gecko.gfx.RectUtils.scale(), x, and y.

◆ round() [1/2]

static Rect org.mozilla.gecko.gfx.RectUtils.round ( RectF  rect)
inlinestatic

◆ round() [2/2]

static void org.mozilla.gecko.gfx.RectUtils.round ( RectF  rect,
Rect  dest 
)
inlinestatic

Definition at line 67 of file RectUtils.java.

References Math.

◆ roundIn()

static Rect org.mozilla.gecko.gfx.RectUtils.roundIn ( RectF  rect)
inlinestatic

Definition at line 72 of file RectUtils.java.

References Math, and Rect.

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

◆ scale()

static RectF org.mozilla.gecko.gfx.RectUtils.scale ( RectF  rect,
float  scale 
)
inlinestatic

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