StormByte C++ Library: Multimedia module 0.0.9999
StormByte-Multimedia is a StormByte library module for parsing configuration files
Loading...
Searching...
No Matches
Public Member Functions | List of all members
StormByte::Multimedia::Property::Resolution Class Referencefinal

Frame width and height. More...

#include <StormByte/multimedia/property/resolution.hxx>

Public Member Functions

 Resolution (std::uint32_t width, std::uint32_t height) noexcept
 Constructs a resolution.
 
 Resolution (const Resolution &)=default
 Copy constructor.
 
 Resolution (Resolution &&) noexcept=default
 Move constructor.
 
 ~Resolution () noexcept=default
 Destructor.
 
Resolutionoperator= (const Resolution &)=default
 Copy assignment.
 
Resolutionoperator= (Resolution &&) noexcept=default
 Move assignment.
 
std::uint32_t Width () const noexcept
 Width in pixels.
 
std::uint32_t Height () const noexcept
 Height in pixels.
 
std::string Name () const noexcept
 "WIDTHxHEIGHT" string.
 
std::string StandardName () const noexcept
 Coarse label (e.g.
 

Detailed Description

Frame width and height.

Constructor & Destructor Documentation

◆ Resolution() [1/3]

StormByte::Multimedia::Property::Resolution::Resolution ( std::uint32_t  width,
std::uint32_t  height 
)
noexcept

Constructs a resolution.

Parameters
widthWidth in pixels.
heightHeight in pixels.

◆ Resolution() [2/3]

StormByte::Multimedia::Property::Resolution::Resolution ( const Resolution )
default

Copy constructor.

◆ Resolution() [3/3]

StormByte::Multimedia::Property::Resolution::Resolution ( Resolution &&  )
defaultnoexcept

Move constructor.

◆ ~Resolution()

StormByte::Multimedia::Property::Resolution::~Resolution ( )
defaultnoexcept

Destructor.

Member Function Documentation

◆ Height()

std::uint32_t StormByte::Multimedia::Property::Resolution::Height ( ) const
noexcept

Height in pixels.

Returns
Height.

◆ Name()

std::string StormByte::Multimedia::Property::Resolution::Name ( ) const
noexcept

"WIDTHxHEIGHT" string.

Returns
Size string.

◆ operator=() [1/2]

Resolution & StormByte::Multimedia::Property::Resolution::operator= ( const Resolution )
default

Copy assignment.

Returns
*this.

◆ operator=() [2/2]

Resolution & StormByte::Multimedia::Property::Resolution::operator= ( Resolution &&  )
defaultnoexcept

Move assignment.

Returns
*this.

◆ StandardName()

std::string StormByte::Multimedia::Property::Resolution::StandardName ( ) const
noexcept

Coarse label (e.g.

"1080p", "4K").

Returns
Standard name.

◆ Width()

std::uint32_t StormByte::Multimedia::Property::Resolution::Width ( ) const
noexcept

Width in pixels.

Returns
Width.

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