LibreOffice Module basegfx (master) 1
Public Member Functions | Private Types | List of all members
basegfx::BasicBox Class Reference

Explicitly different from BasicRange, handling the inside predicates differently. More...

#include <basicbox.hxx>

Inheritance diagram for basegfx::BasicBox:
[legend]
Collaboration diagram for basegfx::BasicBox:
[legend]

Public Member Functions

 BasicBox ()
 
 BasicBox (sal_Int32 nValue)
 
bool isEmpty () const
 
bool isInside (sal_Int32 nValue) const
 
- Public Member Functions inherited from basegfx::BasicRange< sal_Int32, Int32Traits >
 BasicRange ()
 
 BasicRange (sal_Int32 nValue)
 
void reset ()
 
bool isEmpty () const
 
sal_Int32 getMinimum () const
 
sal_Int32 getMaximum () const
 
double getCenter () const
 
bool isInside (sal_Int32 nValue) const
 
bool isInside (const BasicRange &rRange) const
 
bool overlaps (const BasicRange &rRange) const
 
bool overlapsMore (const BasicRange &rRange) const
 
bool operator== (const BasicRange &rRange) const
 
bool operator!= (const BasicRange &rRange) const
 
bool equal (const BasicRange &rRange) const
 
void expand (sal_Int32 nValue)
 
void expand (const BasicRange &rRange)
 
void intersect (const BasicRange &rRange)
 
void grow (sal_Int32 nValue)
 
sal_Int32 clamp (sal_Int32 nValue) const
 
Traits::DifferenceType getRange () const
 

Private Types

typedef BasicRange< sal_Int32, Int32TraitsBase
 

Additional Inherited Members

- Public Types inherited from basegfx::BasicRange< sal_Int32, Int32Traits >
typedef sal_Int32 ValueType
 
typedef Int32Traits TraitsType
 
- Protected Attributes inherited from basegfx::BasicRange< sal_Int32, Int32Traits >
sal_Int32 mnMinimum
 
sal_Int32 mnMaximum
 

Detailed Description

Explicitly different from BasicRange, handling the inside predicates differently.

This is modelled after how polygon fill algorithms set pixel - typically excluding rightmost and bottommost ones.

Definition at line 33 of file basicbox.hxx.

Member Typedef Documentation

◆ Base

typedef BasicRange< sal_Int32, Int32Traits > basegfx::BasicBox::Base
private

Definition at line 35 of file basicbox.hxx.

Constructor & Destructor Documentation

◆ BasicBox() [1/2]

basegfx::BasicBox::BasicBox ( )
inline

Definition at line 37 of file basicbox.hxx.

◆ BasicBox() [2/2]

basegfx::BasicBox::BasicBox ( sal_Int32  nValue)
inlineexplicit

Definition at line 39 of file basicbox.hxx.

References nValue.

Member Function Documentation

◆ isEmpty()

bool basegfx::BasicBox::isEmpty ( ) const
inline

◆ isInside()

bool basegfx::BasicBox::isInside ( sal_Int32  nValue) const
inline

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