Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Button Class Reference

#include <button.h>

Inheritance diagram for Button:
HighlightCell Responder View ButtonWithSeparator

Public Member Functions

 Button (Responder *parentResponder, I18n::Message textBody, Invocation invocation, KDText::FontSize size=KDText::FontSize::Small, KDColor textColor=KDColorBlack)
 
bool handleEvent (Ion::Events::Event event) override
 
void setHighlighted (bool highlight) override
 
Responderresponder () 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 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 ()
 
virtual Toolboxtoolbox ()
 

Protected Attributes

MessageTextView m_messageTextView
 
- Protected Attributes inherited from HighlightCell
bool m_highlighted
 
- Protected Attributes inherited from View
KDRect m_frame
 

Additional Inherited Members

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

Detailed Description

Definition at line 10 of file button.h.

Constructor & Destructor Documentation

◆ Button()

Button::Button ( Responder parentResponder,
I18n::Message  textBody,
Invocation  invocation,
KDText::FontSize  size = KDText::FontSize::Small,
KDColor  textColor = KDColorBlack 
)

Definition at line 5 of file button.cpp.

Member Function Documentation

◆ handleEvent()

bool Button::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from Responder.

Definition at line 27 of file button.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize Button::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 42 of file button.cpp.

◆ responder()

Responder* Button::responder ( )
inlineoverridevirtual

Reimplemented from HighlightCell.

Definition at line 15 of file button.h.

◆ setHighlighted()

void Button::setHighlighted ( bool  highlight)
overridevirtual

Reimplemented from HighlightCell.

Definition at line 35 of file button.cpp.

Member Data Documentation

◆ m_messageTextView

MessageTextView Button::m_messageTextView
protected

Definition at line 20 of file button.h.


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