Numworks Epsilon  1.4.1
Graphing Calculator Operating System
TextInput Class Referenceabstract

#include <text_input.h>

Inheritance diagram for TextInput:
ScrollableView ScrollViewDataSource Responder ScrollView View TextArea TextField Calculation::TextField

Classes

class  ContentView
 

Public Member Functions

 TextInput (Responder *parentResponder, View *contentView)
 
Toolboxtoolbox () override
 
const char * text () const
 
void setBackgroundColor (KDColor backgroundColor)
 
KDColor backgroundColor () const
 
void setTextColor (KDColor textColor)
 
bool removeChar ()
 
size_t cursorLocation () const
 
bool setCursorLocation (int location)
 
virtual void scrollToCursor ()
 
virtual bool handleEventWithText (const char *text, bool indenting=false)=0
 
- Public Member Functions inherited from ScrollableView
 ScrollableView (Responder *parentResponder, View *view, ScrollViewDataSource *dataSource)
 
bool handleEvent (Ion::Events::Event event) override
 
void reloadScroll (bool forceRelayout=false)
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual void didBecomeFirstResponder ()
 
virtual void willResignFirstResponder ()
 
virtual void didEnterResponderChain (Responder *previousFirstResponder)
 
virtual void willExitResponderChain (Responder *nextFirstResponder)
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
- Public Member Functions inherited from ScrollView
 ScrollView (View *contentView, ScrollViewDataSource *dataSource)
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
void setTopMargin (KDCoordinate m)
 
KDCoordinate topMargin () const
 
void setRightMargin (KDCoordinate m)
 
KDCoordinate rightMargin () const
 
void setBottomMargin (KDCoordinate m)
 
KDCoordinate bottomMargin () const
 
void setLeftMargin (KDCoordinate m)
 
KDCoordinate leftMargin () const
 
void setMargins (KDCoordinate top, KDCoordinate right, KDCoordinate bottom, KDCoordinate left)
 
void setMargins (KDCoordinate m)
 
void setCommonMargins ()
 
void setShowsIndicators (bool s)
 
bool showsIndicators () const
 
void setColorsBackground (bool c)
 
bool colorsBackground () const
 
void setBackgroundColor (KDColor c)
 
KDColor backgroundColor () const
 
ScrollViewIndicatorverticalScrollIndicator ()
 
ScrollViewIndicatorhorizontalScrollIndicator ()
 
void setIndicatorThickness (KDCoordinate t)
 
KDCoordinate indicatorThickness () const
 
void setContentOffset (KDPoint offset, bool forceRelayout=false)
 
KDPoint contentOffset () const
 
void scrollToContentPoint (KDPoint p, bool allowOverscroll=false)
 
void scrollToContentRect (KDRect rect, bool allowOverscroll=false)
 
- 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
 
- Public Member Functions inherited from ScrollViewDataSource
 ScrollViewDataSource ()
 
KDPoint offset () const
 
bool setOffset (KDPoint offset)
 

Protected Member Functions

bool insertTextAtLocation (const char *textBuffer, int location)
 
virtual bool removeEndOfLine ()
 
ContentViewcontentView ()
 
virtual const ContentViewnonEditableContentView () const =0
 
- Protected Member Functions inherited from ScrollableView
void layoutSubviews () override
 
- Protected Member Functions inherited from ScrollView
KDCoordinate maxContentWidthDisplayableWithoutScrolling ()
 
KDCoordinate maxContentHeightDisplayableWithoutScrolling ()
 
KDRect visibleContentRect ()
 
void updateScrollIndicator ()
 
KDSize contentSize ()
 
- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 

Additional Inherited Members

- Protected Attributes inherited from ScrollableView
KDPoint m_manualScrollingOffset
 
- Protected Attributes inherited from ScrollView
Viewm_contentView
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 10 of file text_input.h.

Constructor & Destructor Documentation

◆ TextInput()

TextInput::TextInput ( Responder parentResponder,
View contentView 
)

Definition at line 60 of file text_input.cpp.

Member Function Documentation

◆ backgroundColor()

KDColor TextInput::backgroundColor ( ) const
inline

Definition at line 16 of file text_input.h.

◆ contentView()

ContentView* TextInput::contentView ( )
inlineprotected

Definition at line 57 of file text_input.h.

◆ cursorLocation()

size_t TextInput::cursorLocation ( ) const
inline

Definition at line 19 of file text_input.h.

◆ handleEventWithText()

virtual bool TextInput::handleEventWithText ( const char *  text,
bool  indenting = false 
)
pure virtual

Implemented in TextField, and TextArea.

◆ insertTextAtLocation()

bool TextInput::insertTextAtLocation ( const char *  textBuffer,
int  location 
)
protected

Definition at line 103 of file text_input.cpp.

◆ nonEditableContentView()

virtual const ContentView* TextInput::nonEditableContentView ( ) const
protectedpure virtual

Implemented in TextField.

◆ removeChar()

bool TextInput::removeChar ( )

Definition at line 80 of file text_input.cpp.

◆ removeEndOfLine()

bool TextInput::removeEndOfLine ( )
protectedvirtual

Definition at line 114 of file text_input.cpp.

◆ scrollToCursor()

void TextInput::scrollToCursor ( )
virtual

Reimplemented in TextField.

Definition at line 86 of file text_input.cpp.

◆ setBackgroundColor()

void TextInput::setBackgroundColor ( KDColor  backgroundColor)

Definition at line 72 of file text_input.cpp.

◆ setCursorLocation()

bool TextInput::setCursorLocation ( int  location)

Definition at line 97 of file text_input.cpp.

◆ setTextColor()

void TextInput::setTextColor ( KDColor  textColor)

Definition at line 76 of file text_input.cpp.

◆ text()

const char* TextInput::text ( ) const
inline

Definition at line 14 of file text_input.h.

◆ toolbox()

Toolbox * TextInput::toolbox ( )
overridevirtual

Reimplemented from Responder.

Definition at line 65 of file text_input.cpp.


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