Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
about_view Class Reference

The About screen. More...

#include <about_view.h>

Inheritance diagram for about_view:
Inheritance graph
[legend]
Collaboration diagram for about_view:
Collaboration graph
[legend]

Public Member Functions

 about_view ()
 
void draw_impl () override
 Show the menu on-screen.
 
const auto & get_layout () const noexcept
 
bool process_event_impl (sf::Event &event) override
 Process all events.
 
void process_resize_event_impl (sf::Event &event) override
 Process a resize event.
 
void set_text_style (sf::Text &t)
 Set the text to a uniform style.
 
void start_impl () override
 Prepare for showing this dialog.
 
void stop_impl () override
 End showing this dialog.
 
void tick_impl (const delta_t dt) override
 Run the menu, until the user quits.
 
- Public Member Functions inherited from view
 view ()
 
virtual ~view ()
 
void clear_next_state ()
 Clear the next state.
 
void draw ()
 Draw the menu on the main window.
 
const auto & get_next_state () const noexcept
 The next state to go to, if any.
 
bool is_active () const noexcept
 Is this window active?
 
bool process_event (sf::Event &e)
 Process an event.
 
void process_resize_event (sf::Event &event)
 Process a resize event.
 
void set_is_active (const bool is_active)
 Set if this window is active.
 
void set_next_state (const program_state next_state)
 Set the next state to go to.
 
void start ()
 Prepare this window for being shown.
 
void stop ()
 Clean up after this window has been shown.
 
void tick (const delta_t dt)
 Run the game, until the user quits.
 

Detailed Description

The About screen.

Constructor & Destructor Documentation

◆ about_view()

about_view::about_view ( )

Member Function Documentation

◆ draw_impl()

void about_view::draw_impl ( )
overridevirtual

Show the menu on-screen.

Implements view.

◆ get_layout()

const auto & about_view::get_layout ( ) const
inlinenoexcept

◆ process_event_impl()

bool about_view::process_event_impl ( sf::Event &  event)
overridevirtual

Process all events.

Returns
if the user wants to quit

Implements view.

◆ process_resize_event_impl()

void about_view::process_resize_event_impl ( sf::Event &  event)
overridevirtual

Process a resize event.

Implements view.

◆ set_text_style()

void about_view::set_text_style ( sf::Text &  t)

Set the text to a uniform style.

◆ start_impl()

void about_view::start_impl ( )
overridevirtual

Prepare for showing this dialog.

Implements view.

◆ stop_impl()

void about_view::stop_impl ( )
overridevirtual

End showing this dialog.

Implements view.

◆ tick_impl()

void about_view::tick_impl ( const delta_t  dt)
overridevirtual

Run the menu, until the user quits.

Implements view.


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