10 m_mainViewController(mainViewController),
15 int AlternateEmptyViewController::ContentView::numberOfSubviews()
const {
19 View * AlternateEmptyViewController::ContentView::subviewAtIndex(
int index) {
21 if (m_delegate->isEmpty()) {
22 m_message.setMessage(m_delegate->emptyMessage());
25 return m_mainViewController->view();
28 void AlternateEmptyViewController::ContentView::layoutSubviews() {
29 if (alternateEmptyViewDelegate()->isEmpty()) {
30 m_message.setFrame(bounds());
32 m_mainViewController->view()->setFrame(bounds());
36 ViewController * AlternateEmptyViewController::ContentView::mainViewController()
const {
37 return m_mainViewController;
48 m_contentView(mainViewController, delegate)
53 return &m_contentView;
57 return m_contentView.mainViewController()->title();
61 if (m_contentView.alternateEmptyViewDelegate()->isEmpty()) {
72 if (!m_contentView.alternateEmptyViewDelegate()->isEmpty()) {
78 m_contentView.layoutSubviews();
79 if (!m_contentView.alternateEmptyViewDelegate()->isEmpty()) {
80 m_contentView.mainViewController()->viewWillAppear();
85 if (!m_contentView.alternateEmptyViewDelegate()->isEmpty()) {
86 m_contentView.mainViewController()->viewDidDisappear();
void didBecomeFirstResponder() override
const char * title() override
void viewDidDisappear() override
void viewWillAppear() override
constexpr KDColor KDColorBlack
bool handleEvent(Ion::Events::Event event) override
AlternateEmptyViewController(Responder *parentResponder, ViewController *mainViewController, AlternateEmptyViewDelegate *delegate)
void setFirstResponder(Responder *responder)