OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::LineStyle Struct Reference

線のスタイル More...

#include <LineStyle.hpp>

Classes

struct  Parameters
 

Public Member Functions

constexpr LineStyle ()=default
 
constexpr SIV3D_NODISCARD_CXX20 LineStyle (const Parameters &params) noexcept
 
constexpr bool hasSquareCap () const noexcept
 
constexpr bool hasRoundCap () const noexcept
 
constexpr bool hasNoCap () const noexcept
 
constexpr bool hasSquareDot () const noexcept
 
constexpr bool hasRoundDot () const noexcept
 

Public Attributes

double dotOffset = 0.0
 
bool hasCap = true
 
bool isRound = false
 
bool isDotted = false
 
bool hasAlignedDot = true
 

Static Public Attributes

static constexpr Parameters SquareCap { 0.0, true, false, false, false }
 始点と終点に四角いキャップを持つ線 More...
 
static constexpr Parameters RoundCap { 0.0, true, true, false, false }
 始点と終点に丸いキャップを持つ線 More...
 
static constexpr Parameters Uncapped { 0.0, false, false, false, false }
 始点と終点にキャップを持たない線 More...
 
static constexpr Parameters SquareDot { 0.0, true, false, true, false }
 四角いドットの線 More...
 
static constexpr Parameters RoundDot { 0.0, true, true, true, true }
 丸いドットの線 More...
 
static constexpr Parameters Default = SquareCap
 デフォルトの線 (SquareCap) More...
 

Detailed Description

線のスタイル

Constructor & Destructor Documentation

◆ LineStyle() [1/2]

constexpr s3d::LineStyle::LineStyle ( )
constexprdefault

◆ LineStyle() [2/2]

constexpr SIV3D_NODISCARD_CXX20 s3d::LineStyle::LineStyle ( const Parameters params)
constexprnoexcept

Member Function Documentation

◆ hasNoCap()

constexpr bool s3d::LineStyle::hasNoCap ( ) const
constexprnoexcept

◆ hasRoundCap()

constexpr bool s3d::LineStyle::hasRoundCap ( ) const
constexprnoexcept

◆ hasRoundDot()

constexpr bool s3d::LineStyle::hasRoundDot ( ) const
constexprnoexcept

◆ hasSquareCap()

constexpr bool s3d::LineStyle::hasSquareCap ( ) const
constexprnoexcept

◆ hasSquareDot()

constexpr bool s3d::LineStyle::hasSquareDot ( ) const
constexprnoexcept

Member Data Documentation

◆ Default

constexpr Parameters s3d::LineStyle::Default = SquareCap
staticconstexpr

デフォルトの線 (SquareCap)

◆ dotOffset

double s3d::LineStyle::dotOffset = 0.0

◆ hasAlignedDot

bool s3d::LineStyle::hasAlignedDot = true

◆ hasCap

bool s3d::LineStyle::hasCap = true

◆ isDotted

bool s3d::LineStyle::isDotted = false

◆ isRound

bool s3d::LineStyle::isRound = false

◆ RoundCap

constexpr Parameters s3d::LineStyle::RoundCap { 0.0, true, true, false, false }
staticconstexpr

始点と終点に丸いキャップを持つ線

◆ RoundDot

constexpr Parameters s3d::LineStyle::RoundDot { 0.0, true, true, true, true }
staticconstexpr

丸いドットの線

◆ SquareCap

constexpr Parameters s3d::LineStyle::SquareCap { 0.0, true, false, false, false }
staticconstexpr

始点と終点に四角いキャップを持つ線

◆ SquareDot

constexpr Parameters s3d::LineStyle::SquareDot { 0.0, true, false, true, false }
staticconstexpr

四角いドットの線

◆ Uncapped

constexpr Parameters s3d::LineStyle::Uncapped { 0.0, false, false, false, false }
staticconstexpr

始点と終点にキャップを持たない線


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