Numworks Epsilon  1.4.1
Graphing Calculator Operating System
TextInput::ContentView Class Referenceabstract

#include <text_input.h>

Inheritance diagram for TextInput::ContentView:
View TextField::ContentView

Public Member Functions

 ContentView (KDText::FontSize size, KDColor textColor, KDColor backgroundColor)
 
void setBackgroundColor (KDColor backgroundColor)
 
KDColor backgroundColor () const
 
void setTextColor (KDColor textColor)
 
size_t cursorLocation () const
 
void setCursorLocation (int cursorLocation)
 
virtual const char * text () const =0
 
virtual bool insertTextAtLocation (const char *text, int location)=0
 
virtual bool removeChar ()=0
 
virtual bool removeEndOfLine ()=0
 
KDRect cursorRect ()
 
- 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 ()
 
virtual void drawRect (KDContext *ctx, KDRect rect) const
 
void setSize (KDSize size)
 
void setFrame (KDRect frame)
 
KDPoint pointFromPointInView (View *view, KDPoint point)
 
KDRect bounds () const
 
Viewsubview (int index)
 
virtual KDSize minimalSizeForOptimalDisplay () const
 

Protected Member Functions

virtual void layoutSubviews () override
 
void reloadRectFromCursorPosition (size_t index, bool lineBreak=false)
 
virtual KDRect characterFrameAtIndex (size_t index) const =0
 
- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 

Protected Attributes

TextCursorView m_cursorView
 
KDText::FontSize m_fontSize
 
KDColor m_textColor
 
KDColor m_backgroundColor
 
size_t m_cursorIndex
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 24 of file text_input.h.

Constructor & Destructor Documentation

◆ ContentView()

TextInput::ContentView::ContentView ( KDText::FontSize  size,
KDColor  textColor,
KDColor  backgroundColor 
)

Definition at line 6 of file text_input.cpp.

Member Function Documentation

◆ backgroundColor()

KDColor TextInput::ContentView::backgroundColor ( ) const
inline

Definition at line 28 of file text_input.h.

◆ characterFrameAtIndex()

virtual KDRect TextInput::ContentView::characterFrameAtIndex ( size_t  index) const
protectedpure virtual

◆ cursorLocation()

size_t TextInput::ContentView::cursorLocation ( ) const
inline

Definition at line 30 of file text_input.h.

◆ cursorRect()

KDRect TextInput::ContentView::cursorRect ( )

Definition at line 33 of file text_input.cpp.

◆ insertTextAtLocation()

virtual bool TextInput::ContentView::insertTextAtLocation ( const char *  text,
int  location 
)
pure virtual

Implemented in TextField::ContentView.

◆ layoutSubviews()

void TextInput::ContentView::layoutSubviews ( )
overrideprotectedvirtual

Reimplemented from View.

Definition at line 45 of file text_input.cpp.

◆ reloadRectFromCursorPosition()

void TextInput::ContentView::reloadRectFromCursorPosition ( size_t  index,
bool  lineBreak = false 
)
protected

Definition at line 49 of file text_input.cpp.

◆ removeChar()

virtual bool TextInput::ContentView::removeChar ( )
pure virtual

Implemented in TextField::ContentView.

◆ removeEndOfLine()

virtual bool TextInput::ContentView::removeEndOfLine ( )
pure virtual

Implemented in TextField::ContentView.

◆ setBackgroundColor()

void TextInput::ContentView::setBackgroundColor ( KDColor  backgroundColor)

Definition at line 16 of file text_input.cpp.

◆ setCursorLocation()

void TextInput::ContentView::setCursorLocation ( int  cursorLocation)

Definition at line 26 of file text_input.cpp.

◆ setTextColor()

void TextInput::ContentView::setTextColor ( KDColor  textColor)

Definition at line 21 of file text_input.cpp.

◆ text()

virtual const char* TextInput::ContentView::text ( ) const
pure virtual

Implemented in TextField::ContentView.

Member Data Documentation

◆ m_backgroundColor

KDColor TextInput::ContentView::m_backgroundColor
protected

Definition at line 44 of file text_input.h.

◆ m_cursorIndex

size_t TextInput::ContentView::m_cursorIndex
protected

Definition at line 45 of file text_input.h.

◆ m_cursorView

TextCursorView TextInput::ContentView::m_cursorView
protected

Definition at line 41 of file text_input.h.

◆ m_fontSize

KDText::FontSize TextInput::ContentView::m_fontSize
protected

Definition at line 42 of file text_input.h.

◆ m_textColor

KDColor TextInput::ContentView::m_textColor
protected

Definition at line 43 of file text_input.h.


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