Numworks Epsilon
1.4.1
Graphing Calculator Operating System
new_function_cell.cpp
Go to the documentation of this file.
1
#include "
new_function_cell.h
"
2
#include "
assert.h
"
3
4
namespace
Shared
{
5
6
NewFunctionCell::NewFunctionCell
(I18n::Message text) :
7
EvenOddCell
(),
8
m_messageTextView(
KDText
::FontSize::Large, text, 0.5f, 0.5f)
9
{
10
}
11
12
void
NewFunctionCell::setEven
(
bool
even) {
13
EvenOddCell::setEven
(even);
14
m_messageTextView.
setBackgroundColor
(
backgroundColor
());
15
}
16
17
void
NewFunctionCell::setHighlighted
(
bool
highlight) {
18
EvenOddCell::setHighlighted
(highlight);
19
m_messageTextView.
setBackgroundColor
(
backgroundColor
());
20
}
21
22
int
NewFunctionCell::numberOfSubviews
()
const
{
23
return
1;
24
}
25
26
View
*
NewFunctionCell::subviewAtIndex
(
int
index) {
27
assert
(index == 0);
28
return
&m_messageTextView;
29
}
30
31
void
NewFunctionCell::layoutSubviews
() {
32
m_messageTextView.
setFrame
(
bounds
());
33
}
34
35
}
Shared
Definition:
banner_view.cpp:5
Shared::NewFunctionCell::layoutSubviews
void layoutSubviews() override
Definition:
new_function_cell.cpp:31
assert
#define assert(e)
Definition:
assert.h:9
EvenOddCell::setEven
virtual void setEven(bool even)
Definition:
even_odd_cell.cpp:10
View::setFrame
void setFrame(KDRect frame)
Definition:
view.cpp:125
Shared::NewFunctionCell::setEven
void setEven(bool even) override
Definition:
new_function_cell.cpp:12
Shared::NewFunctionCell::NewFunctionCell
NewFunctionCell(I18n::Message text)
Definition:
new_function_cell.cpp:6
EvenOddCell::backgroundColor
virtual KDColor backgroundColor() const
Definition:
even_odd_cell.cpp:17
KDText
Definition:
text.h:8
Shared::NewFunctionCell::subviewAtIndex
View * subviewAtIndex(int index) override
Definition:
new_function_cell.cpp:26
Shared::NewFunctionCell::setHighlighted
void setHighlighted(bool highlight) override
Definition:
new_function_cell.cpp:17
assert.h
View
Definition:
view.h:23
Shared::NewFunctionCell::numberOfSubviews
int numberOfSubviews() const override
Definition:
new_function_cell.cpp:22
EvenOddCell
Definition:
even_odd_cell.h:6
HighlightCell::setHighlighted
virtual void setHighlighted(bool highlight)
Definition:
highlight_cell.cpp:9
TextView::setBackgroundColor
void setBackgroundColor(KDColor backgroundColor)
Definition:
text_view.cpp:14
View::bounds
KDRect bounds() const
Definition:
view.cpp:157
new_function_cell.h
epsilon
apps
shared
new_function_cell.cpp
Generated by
1.8.14