Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
sgui::Circle< Type > Struct Template Reference

Define a Circle with a center and a radius. More...

#include <Shapes.h>

Public Member Functions

 Circle ()=default
 Circle (const sf::Vector2< Type > &center, Type r)

Public Attributes

Type radius = Type (0)
 radius of the circle
sf::Vector2< Type > center = {}
 center of the circle

Detailed Description

template<typename Type>
struct sgui::Circle< Type >

Define a Circle with a center and a radius.

Constructor & Destructor Documentation

◆ Circle() [1/2]

template<typename Type>
sgui::Circle< Type >::Circle ( )
default

◆ Circle() [2/2]

template<typename Type>
sgui::Circle< Type >::Circle ( const sf::Vector2< Type > & center,
Type r )

Member Data Documentation

◆ center

template<typename Type>
sf::Vector2<Type> sgui::Circle< Type >::center = {}

center of the circle

◆ radius

template<typename Type>
Type sgui::Circle< Type >::radius = Type (0)

radius of the circle


The documentation for this struct was generated from the following file:
  • /github/workspace/src/sgui/Core/Shapes.h