Lumino
ln::Thickness Struct Reference

四角形の枠の太さを表すクラスです。 More...

#include <GeometryStructs.hpp>

Public Member Functions

 Thickness ()
 すべての要素を 0 で初期化します。
 
 Thickness (float uniformLength)
 すべての要素を uniformLength で初期化します。
 
 Thickness (float leftAndRight, float topAndbottom)
 左右共通の幅及び上下共通の幅を指定して初期化します。
 
 Thickness (float left_, float top_, float right_, float bottom_)
 各辺の幅を指定して初期化します。
 
void set (float left_, float top_, float right_, float bottom_)
 各要素を設定します。
 
bool isZero () const
 要素がすべて 0 かを判定します。
 

Public Attributes

float left
 四角形の左辺の幅
 
float top
 四角形の上辺の幅
 
float right
 四角形の右辺の幅
 
float bottom
 四角形の底辺の幅
 

Static Public Attributes

static const Thickness Zero
 Thickness(0, 0, 0, 0)
 

Detailed Description

四角形の枠の太さを表すクラスです。


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