Numworks Epsilon  1.4.1
Graphing Calculator Operating System
ScrollViewIndicator Class Reference

#include <scroll_view_indicator.h>

Inheritance diagram for ScrollViewIndicator:
View

Public Types

enum  Direction { Direction::Horizontal, Direction::Vertical }
 

Public Member Functions

 ScrollViewIndicator (Direction direction)
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
void setIndicatorColor (KDColor c)
 
KDColor indicatorColor () const
 
void setBackgroundColor (KDColor c)
 
KDColor backgroundColor () const
 
void setMargin (KDCoordinate m)
 
KDCoordinate margin () const
 
float start () const
 
void setStart (float start)
 
float end () const
 
void setEnd (float end)
 
KDRect frame ()
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
 View (const View &other)=delete
 
 View (View &&other)=delete
 
Viewoperator= (const View &other)=delete
 
Viewoperator= (View &&other)=delete
 
void resetSuperview ()
 
void setSize (KDSize size)
 
void setFrame (KDRect frame)
 
KDPoint pointFromPointInView (View *view, KDPoint point)
 
KDRect bounds () const
 
Viewsubview (int index)
 
virtual KDSize minimalSizeForOptimalDisplay () const
 

Additional Inherited Members

- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 6 of file scroll_view_indicator.h.

Member Enumeration Documentation

◆ Direction

Enumerator
Horizontal 
Vertical 

Definition at line 8 of file scroll_view_indicator.h.

Constructor & Destructor Documentation

◆ ScrollViewIndicator()

ScrollViewIndicator::ScrollViewIndicator ( ScrollViewIndicator::Direction  direction)

Definition at line 7 of file scroll_view_indicator.cpp.

Member Function Documentation

◆ backgroundColor()

KDColor ScrollViewIndicator::backgroundColor ( ) const
inline

Definition at line 18 of file scroll_view_indicator.h.

◆ drawRect()

void ScrollViewIndicator::drawRect ( KDContext ctx,
KDRect  rect 
) const
overridevirtual

Reimplemented from View.

Definition at line 18 of file scroll_view_indicator.cpp.

◆ end()

float ScrollViewIndicator::end ( ) const

Definition at line 54 of file scroll_view_indicator.cpp.

◆ frame()

KDRect ScrollViewIndicator::frame ( )

Definition at line 65 of file scroll_view_indicator.cpp.

◆ indicatorColor()

KDColor ScrollViewIndicator::indicatorColor ( ) const
inline

Definition at line 16 of file scroll_view_indicator.h.

◆ margin()

KDCoordinate ScrollViewIndicator::margin ( ) const
inline

Definition at line 20 of file scroll_view_indicator.h.

◆ setBackgroundColor()

void ScrollViewIndicator::setBackgroundColor ( KDColor  c)
inline

Definition at line 17 of file scroll_view_indicator.h.

◆ setEnd()

void ScrollViewIndicator::setEnd ( float  end)

Definition at line 58 of file scroll_view_indicator.cpp.

◆ setIndicatorColor()

void ScrollViewIndicator::setIndicatorColor ( KDColor  c)
inline

Definition at line 15 of file scroll_view_indicator.h.

◆ setMargin()

void ScrollViewIndicator::setMargin ( KDCoordinate  m)
inline

Definition at line 19 of file scroll_view_indicator.h.

◆ setStart()

void ScrollViewIndicator::setStart ( float  start)

Definition at line 47 of file scroll_view_indicator.cpp.

◆ start()

float ScrollViewIndicator::start ( ) const

Definition at line 43 of file scroll_view_indicator.cpp.


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