Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
ScrollbarView::ZoomBox Struct Reference

Represents the box (dimension and position point of view) containing the zoom handles and scrollbar. More...

#include <ScrollbarView.h>

Public Member Functions

RelativeCoord computeCenter (double iOffsetPercent) const
CCoord computeLongDimension (double iZoomPercent) const
double computeOffsetPercent () const
double computeZoomPercent () const
RelativeCoord getEnd () const
CCoord getLongDimension () const
RelativeCoord getMaxEnd () const
RelativeCoord getMinStart () const
RelativeView getRelativeView () const
CCoord getShortDimension () const
RelativeCoord getStart () const
bool isFull () const
bool isMaxEnd () const
bool isMinStart () const
void maxZoom (RelativeCoord const &iNewCenter)
void minZoom ()
void move (CCoord iDelta)
void moveTo (RelativeCoord const &iNewCenter)
bool stretch (CCoord iDelta, DragType iDragType)
 stretch the box by iDelta (applied to the start or end)

Public Attributes

RelativeCoord fCenter
CCoord fHalfSize
RelativeCoord fMaxCenter
CCoord fMaxSize
RelativeCoord fMinCenter
CCoord fMinSize
bool fVertical
CRect fViewSize
CCoord fZoomHandlesSize

Detailed Description

Represents the box (dimension and position point of view) containing the zoom handles and scrollbar.

Member Function Documentation

◆ computeCenter()

RelativeCoord computeCenter ( double iOffsetPercent) const
inline

◆ computeLongDimension()

CCoord computeLongDimension ( double iZoomPercent) const
inline

◆ computeOffsetPercent()

double computeOffsetPercent ( ) const
inline

◆ computeZoomPercent()

double computeZoomPercent ( ) const
inline

◆ getEnd()

RelativeCoord getEnd ( ) const
inline

◆ getLongDimension()

CCoord getLongDimension ( ) const
inline

◆ getMaxEnd()

RelativeCoord getMaxEnd ( ) const
inline

◆ getMinStart()

RelativeCoord getMinStart ( ) const
inline

◆ getRelativeView()

RelativeView getRelativeView ( ) const
inline

◆ getShortDimension()

CCoord getShortDimension ( ) const
inline

◆ getStart()

RelativeCoord getStart ( ) const
inline

◆ isFull()

bool isFull ( ) const
inline

◆ isMaxEnd()

bool isMaxEnd ( ) const
inline

◆ isMinStart()

bool isMinStart ( ) const
inline

◆ maxZoom()

void maxZoom ( RelativeCoord const & iNewCenter)

◆ minZoom()

void minZoom ( )

◆ move()

void move ( CCoord iDelta)
inline

◆ moveTo()

void moveTo ( RelativeCoord const & iNewCenter)
inline

◆ stretch()

bool stretch ( CCoord iDelta,
DragType iDragType )

stretch the box by iDelta (applied to the start or end)

Returns
true if the box was stretched, false otherwise

Member Data Documentation

◆ fCenter

RelativeCoord fCenter

◆ fHalfSize

CCoord fHalfSize

◆ fMaxCenter

RelativeCoord fMaxCenter

◆ fMaxSize

CCoord fMaxSize

◆ fMinCenter

RelativeCoord fMinCenter

◆ fMinSize

CCoord fMinSize

◆ fVertical

bool fVertical

◆ fViewSize

CRect fViewSize

◆ fZoomHandlesSize

CCoord fZoomHandlesSize

The documentation for this struct was generated from the following files: