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

A rectangle-shaped area on the screen. More...

#include <screen_rect.h>

Public Member Functions

 screen_rect (const screen_coordinate &top_left=screen_coordinate(0, 0), const screen_coordinate &bottom_right=screen_coordinate(20, 20))
 
const auto & get_tl () const noexcept
 
const auto & get_br () const noexcept
 

Detailed Description

A rectangle-shaped area on the screen.

A rectangle-shaped area on the screen, where (0,0), (1,2) denotes the pixels from the top-left corner of the screen, to the second pixel to the right and the third on down.

Constructor & Destructor Documentation

◆ screen_rect()

screen_rect::screen_rect ( const screen_coordinate top_left = screen_coordinate(0, 0),
const screen_coordinate bottom_right = screen_coordinate(20, 20) 
)
explicit

Member Function Documentation

◆ get_br()

const auto & screen_rect::get_br ( ) const
inlinenoexcept

◆ get_tl()

const auto & screen_rect::get_tl ( ) const
inlinenoexcept

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