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

Define a line with two points. More...

#include <Shapes.h>

Public Member Functions

 Line ()=default
 Line (const sf::Vector2< Type > &begin, const sf::Vector2< Type > &end)
sf::Vector2< Type > direction () const
 get direction of the line

Public Attributes

sf::Vector2< Type > tail = {}
 tail of the line
sf::Vector2< Type > head = {}
 head of the line

Detailed Description

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

Define a line with two points.

Constructor & Destructor Documentation

◆ Line() [1/2]

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

◆ Line() [2/2]

template<typename Type>
sgui::Line< Type >::Line ( const sf::Vector2< Type > & begin,
const sf::Vector2< Type > & end )

Member Function Documentation

◆ direction()

template<typename Type>
sf::Vector2< Type > sgui::Line< Type >::direction ( ) const

get direction of the line

Member Data Documentation

◆ head

template<typename Type>
sf::Vector2<Type> sgui::Line< Type >::head = {}

head of the line

◆ tail

template<typename Type>
sf::Vector2<Type> sgui::Line< Type >::tail = {}

tail of the line


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