1 #ifndef ESCHER_MODAL_VIEW_CONTROLLER_H 2 #define ESCHER_MODAL_VIEW_CONTROLLER_H 21 class ContentView :
public View {
24 void setMainView(
View * regularView);
25 int numberOfSubviews()
const override;
26 View * subviewAtIndex(
int index)
override;
27 void layoutSubviews()
override;
28 void presentModalView(
View * modalView,
float verticalAlignment,
float horizontalAlignment,
30 void dismissModalView();
35 View * m_currentModalView;
36 bool m_isDisplayingModal;
37 float m_verticalAlignment;
38 float m_horizontalAlignment;
44 ContentView m_contentView;
void viewWillAppear() override
bool handleEvent(Ion::Events::Event event) override
Responder * parentResponder() const
void viewDidDisappear() override
ModalViewController(Responder *parentResponder, ViewController *child)
void didBecomeFirstResponder() override
void dismissModalViewController()
void displayModalViewController(ViewController *vc, float verticalAlignment, float horizontalAlignment, KDCoordinate topMargin=0, KDCoordinate leftMargin=0, KDCoordinate bottomMargin=0, KDCoordinate rightMargin=0)