|
LibreOffice Module basegfx (master) 1
|
Explicitly different from BasicRange, handling the inside predicates differently. More...
#include <basicbox.hxx>
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, Int32Traits > | Base |
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 |
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.
|
private |
Definition at line 35 of file basicbox.hxx.
|
inline |
Definition at line 37 of file basicbox.hxx.
|
inlineexplicit |
Definition at line 39 of file basicbox.hxx.
References nValue.
|
inline |
Definition at line 44 of file basicbox.hxx.
References basegfx::BasicRange< sal_Int32, Int32Traits >::mnMaximum, and basegfx::BasicRange< sal_Int32, Int32Traits >::mnMinimum.
Referenced by basegfx::B2IBox::isEmpty(), and isInside().
|
inline |
Definition at line 51 of file basicbox.hxx.
References isEmpty(), basegfx::BasicRange< sal_Int32, Int32Traits >::mnMaximum, basegfx::BasicRange< sal_Int32, Int32Traits >::mnMinimum, and nValue.
Referenced by basegfx::B2IBox::isInside().