Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
Screen Struct Reference

One registered screen: its QML url, title, and modal/home-button flags. More...

#include <router.h>

Inheritance diagram for Screen:
Collaboration diagram for Screen:

Public Member Functions

protected::void modalChanged ()
 < Opens as a full-window modal.
void titleChanged ()
void urlChanged ()
void homeBtnChanged ()
 Screen ()
 Empty screen.
 Screen (bool modal, QString title, QString url, bool homeBtn=true)
 Fully-specified screen.

Public Attributes

bool modal = false
QString title = ""
QString url = ""
bool homeBtn = true

Detailed Description

One registered screen: its QML url, title, and modal/home-button flags.

A small record in the Router's screen registry. modal screens take over the whole window; homeBtn controls whether the header shows a home button.

See also
Router.

Definition at line 32 of file router.h.

Constructor & Destructor Documentation

◆ Screen() [1/2]

Screen::Screen ( )

Empty screen.

Definition at line 27 of file router.cpp.

◆ Screen() [2/2]

Screen::Screen ( bool modal,
QString title,
QString url,
bool homeBtn = true )

Fully-specified screen.

Definition at line 28 of file router.cpp.

References homeBtn, modal, title, and url.

Member Function Documentation

◆ homeBtnChanged()

void Screen::homeBtnChanged ( )

References homeBtn, modal, title, and url.

◆ modalChanged()

protected::void Screen::modalChanged ( )

< Opens as a full-window modal.

Header title for the screen. QML file url for the screen. Whether the home button shows.

◆ titleChanged()

void Screen::titleChanged ( )

◆ urlChanged()

void Screen::urlChanged ( )

Member Data Documentation

◆ homeBtn

bool Screen::homeBtn = true
See also
homeBtn property.

Definition at line 59 of file router.h.

Referenced by Router::closeScreen(), homeBtnChanged(), and Screen().

◆ modal

bool Screen::modal = false
See also
modal property.

Definition at line 51 of file router.h.

Referenced by Router::closeScreen(), homeBtnChanged(), and Screen().

◆ title

QString Screen::title = ""
See also
title property.

Definition at line 54 of file router.h.

Referenced by Router::closeScreen(), homeBtnChanged(), and Screen().

◆ url

QString Screen::url = ""
See also
url property.

Definition at line 57 of file router.h.

Referenced by homeBtnChanged(), and Screen().


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