Reference for .Net version of SpaceVIL  0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
SpaceVIL.Decorations.Shadow Class Reference

Class that is the shadow of an item. More...

Public Member Functions

void SetRadius (int value)
 Setting the specified blur radius of the shadow. Default: 0. More...
 
int GetRadius ()
 Getting the shadow blur raduis. More...
 
void SetXOffset (int value)
 Setting X shift of the shadow. More...
 
int GetXOffset ()
 Getting X shift of the shadow. More...
 
void SetYOffset (int value)
 Setting Y shift of the shadow. More...
 
int GetYOffset ()
 Setting Y shift of the shadow. More...
 
void SetColor (Color color)
 Setting shadow color. More...
 
void SetColor (int r, int g, int b)
 Setting shadow color in RGB format. More...
 
void SetColor (int r, int g, int b, int a)
 Setting shadow color in byte RGBA format. More...
 
void SetColor (float r, float g, float b)
 Setting shadow color in float RGB format. More...
 
void SetColor (float r, float g, float b, float a)
 Setting shadow color in float RGBA format. More...
 
Color GetColor ()
 Getting shadow color. More...
 
void SetDrop (bool value)
 Setting drop shadow flag. More...
 
bool IsDrop ()
 Getting shadow drop flag. More...
 
 Shadow ()
 Default Shadow class constructor. Allow shadow dropping. More...
 
 Shadow (int radius, int x, int y, Color color)
 Shadow class constructor with specified blur radius, axis shifts, shadow color. Allow shadow dropping. More...
 

Detailed Description

Class that is the shadow of an item.

Constructor & Destructor Documentation

◆ Shadow() [1/2]

SpaceVIL.Decorations.Shadow.Shadow ( )

Default Shadow class constructor. Allow shadow dropping.

◆ Shadow() [2/2]

SpaceVIL.Decorations.Shadow.Shadow ( int  radius,
int  x,
int  y,
Color  color 
)

Shadow class constructor with specified blur radius, axis shifts, shadow color. Allow shadow dropping.

Parameters
radiusA blur radius of the shadow.
xX shift of the shadow.
yY shift of the shadow.
colorA shadow color as System.Drawing.Color.

Member Function Documentation

◆ GetColor()

Color SpaceVIL.Decorations.Shadow.GetColor ( )

Getting shadow color.

Returns
Returns the shadow color as System.Drawing.Color.

◆ GetRadius()

int SpaceVIL.Decorations.Shadow.GetRadius ( )

Getting the shadow blur raduis.

Returns
The blur radius of the shadow. Min value: 0. Max value: 10.

◆ GetXOffset()

int SpaceVIL.Decorations.Shadow.GetXOffset ( )

Getting X shift of the shadow.

Returns
Shift by X-axis.

◆ GetYOffset()

int SpaceVIL.Decorations.Shadow.GetYOffset ( )

Setting Y shift of the shadow.

Returns
Shift by Y-axis.

◆ IsDrop()

bool SpaceVIL.Decorations.Shadow.IsDrop ( )

Getting shadow drop flag.

Returns
True: allow shadow dropping. False: not allow shadow dropping.

◆ SetColor() [1/5]

void SpaceVIL.Decorations.Shadow.SetColor ( Color  color)

Setting shadow color.

Parameters
colorShadow color as System.Drawing.Color.

◆ SetColor() [2/5]

void SpaceVIL.Decorations.Shadow.SetColor ( float  r,
float  g,
float  b 
)

Setting shadow color in float RGB format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)

◆ SetColor() [3/5]

void SpaceVIL.Decorations.Shadow.SetColor ( float  r,
float  g,
float  b,
float  a 
)

Setting shadow color in float RGBA format.

Parameters
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)
aAlpha color component. Range: (0.0f - 1.0f)

◆ SetColor() [4/5]

void SpaceVIL.Decorations.Shadow.SetColor ( int  r,
int  g,
int  b 
)

Setting shadow color in RGB format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)

◆ SetColor() [5/5]

void SpaceVIL.Decorations.Shadow.SetColor ( int  r,
int  g,
int  b,
int  a 
)

Setting shadow color in byte RGBA format.

Parameters
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)
aAlpha color component. Range: (0 - 255)

◆ SetDrop()

void SpaceVIL.Decorations.Shadow.SetDrop ( bool  value)

Setting drop shadow flag.

Parameters
valueTrue: allow shadow dropping. False: not allow shadow dropping.

◆ SetRadius()

void SpaceVIL.Decorations.Shadow.SetRadius ( int  value)

Setting the specified blur radius of the shadow. Default: 0.

Parameters
valueBlur radius of the shadow. Min value: 0. Max value: 10.

◆ SetXOffset()

void SpaceVIL.Decorations.Shadow.SetXOffset ( int  value)

Setting X shift of the shadow.

Parameters
valueShift by X-axis.

◆ SetYOffset()

void SpaceVIL.Decorations.Shadow.SetYOffset ( int  value)

Setting Y shift of the shadow.

Parameters
valueShift by Y-axis.

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