Numworks Epsilon  1.4.1
Graphing Calculator Operating System
EditableTextCell Class Reference

#include <editable_text_cell.h>

Inheritance diagram for EditableTextCell:
HighlightCell Responder View

Public Member Functions

 EditableTextCell (Responder *parentResponder=nullptr, TextFieldDelegate *delegate=nullptr, char *draftTextBuffer=nullptr, KDText::FontSize size=KDText::FontSize::Large, float horizontalAlignment=0.0f, float verticalAlignment=0.5f, KDColor textColor=KDColorBlack, KDColor=KDColorWhite, KDCoordinate topMargin=0, KDCoordinate rightMargin=0, KDCoordinate bottomMargin=0, KDCoordinate leftMargin=0)
 
TextFieldtextField ()
 
void setMargins (KDCoordinate topMargin=0, KDCoordinate rightMargin=0, KDCoordinate bottomMargin=0, KDCoordinate leftMargin=0)
 
void setHighlighted (bool highlight) override
 
Responderresponder () override
 
int numberOfSubviews () const override
 
ViewsubviewAtIndex (int index) override
 
void layoutSubviews () override
 
void didBecomeFirstResponder () override
 
KDSize minimalSizeForOptimalDisplay () const override
 
- Public Member Functions inherited from HighlightCell
 HighlightCell ()
 
bool isHighlighted () const
 
virtual void reloadCell ()
 
- 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)
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual bool handleEvent (Ion::Events::Event event)
 
virtual void willResignFirstResponder ()
 
virtual void didEnterResponderChain (Responder *previousFirstResponder)
 
virtual void willExitResponderChain (Responder *nextFirstResponder)
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 9 of file editable_text_cell.h.

Constructor & Destructor Documentation

◆ EditableTextCell()

EditableTextCell::EditableTextCell ( Responder parentResponder = nullptr,
TextFieldDelegate delegate = nullptr,
char *  draftTextBuffer = nullptr,
KDText::FontSize  size = KDText::FontSize::Large,
float  horizontalAlignment = 0.0f,
float  verticalAlignment = 0.5f,
KDColor  textColor = KDColorBlack,
KDColor  backgroundColor = KDColorWhite,
KDCoordinate  topMargin = 0,
KDCoordinate  rightMargin = 0,
KDCoordinate  bottomMargin = 0,
KDCoordinate  leftMargin = 0 
)

Definition at line 6 of file editable_text_cell.cpp.

Member Function Documentation

◆ didBecomeFirstResponder()

void EditableTextCell::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from Responder.

Definition at line 53 of file editable_text_cell.cpp.

◆ layoutSubviews()

void EditableTextCell::layoutSubviews ( )
overridevirtual

Reimplemented from View.

Definition at line 45 of file editable_text_cell.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize EditableTextCell::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 57 of file editable_text_cell.cpp.

◆ numberOfSubviews()

int EditableTextCell::numberOfSubviews ( ) const
overridevirtual

Reimplemented from View.

Definition at line 36 of file editable_text_cell.cpp.

◆ responder()

Responder* EditableTextCell::responder ( )
inlineoverridevirtual

Reimplemented from HighlightCell.

Definition at line 16 of file editable_text_cell.h.

◆ setHighlighted()

void EditableTextCell::setHighlighted ( bool  highlight)
overridevirtual

Reimplemented from HighlightCell.

Definition at line 30 of file editable_text_cell.cpp.

◆ setMargins()

void EditableTextCell::setMargins ( KDCoordinate  topMargin = 0,
KDCoordinate  rightMargin = 0,
KDCoordinate  bottomMargin = 0,
KDCoordinate  leftMargin = 0 
)

Definition at line 19 of file editable_text_cell.cpp.

◆ subviewAtIndex()

View * EditableTextCell::subviewAtIndex ( int  index)
overridevirtual

Reimplemented from View.

Definition at line 40 of file editable_text_cell.cpp.

◆ textField()

TextField * EditableTextCell::textField ( )

Definition at line 26 of file editable_text_cell.cpp.


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