My Project
 
Loading...
Searching...
No Matches
ScrollPane Class Reference

#include <scrollpane.h>

Inheritance diagram for ScrollPane:
Collaboration diagram for ScrollPane:

Classes

class  TouchController
 

Public Member Functions

 ScrollPane (Component *content)
 
virtual void destroy ()
 
void scrollTo (float x, float y)
 
Component * Content ()
 
virtual void onClick (float x, float y)
 

Protected Member Functions

virtual void createChildren ()
 
virtual void layout ()
 

Protected Attributes

TouchControllercontroller
 
Component * content
 
ColorBlock * thumb
 
float minX
 
float minY
 
float maxX
 
float maxY
 

Static Protected Attributes

static const int THUMB_COLOR = 0xFF7b8073
 
static const float THUMB_ALPHA = 0.5f
 

Constructor & Destructor Documentation

◆ ScrollPane()

ScrollPane::ScrollPane ( Component * content)
Here is the caller graph for this function:

Member Function Documentation

◆ Content()

Component * ScrollPane::Content ( )
inline

◆ createChildren()

void ScrollPane::createChildren ( )
protectedvirtual

◆ destroy()

void ScrollPane::destroy ( )
virtual

◆ layout()

void ScrollPane::layout ( )
protectedvirtual

◆ onClick()

virtual void ScrollPane::onClick ( float x,
float y )
inlinevirtual

◆ scrollTo()

void ScrollPane::scrollTo ( float x,
float y )

Member Data Documentation

◆ content

Component* ScrollPane::content
protected

◆ controller

TouchController* ScrollPane::controller
protected

◆ maxX

float ScrollPane::maxX
protected

◆ maxY

float ScrollPane::maxY
protected

◆ minX

float ScrollPane::minX
protected

◆ minY

float ScrollPane::minY
protected

◆ thumb

ColorBlock* ScrollPane::thumb
protected

◆ THUMB_ALPHA

const float ScrollPane::THUMB_ALPHA = 0.5f
staticprotected

◆ THUMB_COLOR

const int ScrollPane::THUMB_COLOR = 0xFF7b8073
staticprotected

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