Public Member Functions | List of all members
SpaceVIL.Rectangle Class Reference

Inherits SpaceVIL.Primitive.

Public Member Functions

void SetBorderRadius (int radius)
void SetBorderRadius (CornerRadius radius)
 Rectangle ()
 Constructs a Rectangle More...
override List< float[]> MakeShape ()
 Make rectangle with width, height, X, Y More...
- Public Member Functions inherited from SpaceVIL.Primitive
 Primitive (string name="Primitive_")
 Constructs a Primitive More...
void SetPosition (int _x, int _y)
 Set item position More...
override void SetStyle (Style style)
 Set style of the Primitive More...
override Style GetCoreStyle ()
style of the Primitive

- Public Member Functions inherited from SpaceVIL.BaseItem
void SetHandler (CoreWindow handler)
CoreWindow GetHandler ()
Prototype GetParent ()
 BaseItem's parent item More...
void SetParent (Prototype parent)
void RemoveItemFromListeners ()
 Item will not react on parent's changes More...
virtual void InitElements ()
 Initialization and adding of all elements in the BaseItem More...
Indents GetMargin ()
 BaseItem margin More...
void SetMargin (Indents margin)
void SetMargin (int left=0, int top=0, int right=0, int bottom=0)
List< float[]> GetTriangles ()
triangles list of the BaseItem's shape

virtual void SetTriangles (List< float[]> triangles)
 Sets BaseItem's shape as triangles list More...
virtual void SetBackground (Color color)
 Background color of the BaseItem More...
virtual void SetBackground (int r, int g, int b)
virtual void SetBackground (int r, int g, int b, int a)
virtual void SetBackground (float r, float g, float b)
virtual void SetBackground (float r, float g, float b, float a)
virtual Color GetBackground ()
void SetItemName (string name)
 BaseItem's name More...
string GetItemName ()
virtual bool IsDrawable ()
 If BaseItem will drawn by engine More...
virtual void SetDrawable (bool value)
virtual bool IsVisible ()
 If BaseItem is visible More...
virtual void SetVisible (bool value)
void SetMinWidth (int width)
 Width of the BaseItem More...
virtual void SetWidth (int width)
void SetMaxWidth (int width)
int GetMinWidth ()
virtual int GetWidth ()
int GetMaxWidth ()
void SetMinHeight (int height)
 Height of the BaseItem More...
virtual void SetHeight (int height)
void SetMaxHeight (int height)
int GetMinHeight ()
virtual int GetHeight ()
int GetMaxHeight ()
void SetSize (int width, int height)
 Size (width and height) of the BaseItem More...
void SetMinSize (int width, int height)
void SetMaxSize (int width, int height)
int [] GetSize ()
int [] GetMinSize ()
int [] GetMaxSize ()
void SetAlignment (ItemAlignment alignment)
 BaseItem alignment More...
void SetAlignment (params ItemAlignment[] alignment)
ItemAlignment GetAlignment ()
void SetSizePolicy (SizePolicy width, SizePolicy height)
 BaseItem size (width and height) policy - FIXED or EXPAND More...
void SetWidthPolicy (SizePolicy policy)
SizePolicy GetWidthPolicy ()
void SetHeightPolicy (SizePolicy policy)
SizePolicy GetHeightPolicy ()
virtual void SetX (int x)
 BaseItem (x, y) position More...
virtual int GetX ()
virtual void SetY (int y)
virtual int GetY ()
void Update (GeometryEventType type, int value=0)
 Update BaseItem's state More...
virtual void CheckDefaults ()
 Check and set BaseItem default style More...
virtual void SetDefaults ()
bool IsShadowDrop ()
 BaseItem's shadow parameters. Is item has shadow More...
void SetShadowDrop (bool value)
void SetShadowRadius (int radius)
 BaseItem's shadow parameters. Shadow corners radius More...
int GetShadowRadius ()
Color GetShadowColor ()
 BaseItem's shadow parameters. Shadow color More...
void SetShadowColor (Color color)
Position GetShadowPos ()
 BaseItem's shadow parameters. Shadow position More...
void SetShadow (int radius, int x, int y, Color color)
 Set BaseItem's shadow with parameters More...
virtual void SetConfines ()
 BaseItem confines More...
void SetConfines (int x0, int x1, int y0, int y1)
int [] GetConfines ()
virtual void Release ()

Additional Inherited Members

- Public Attributes inherited from SpaceVIL.BaseItem
ItemRule HoverRule = ItemRule.Lazy
- Protected Member Functions inherited from SpaceVIL.BaseItem
virtual void UpdateInnersDrawable (bool value)

Constructor & Destructor Documentation

◆ Rectangle()

SpaceVIL.Rectangle.Rectangle ( )

Constructs a Rectangle

Member Function Documentation

◆ MakeShape()

override List<float[]> SpaceVIL.Rectangle.MakeShape ( )

Make rectangle with width, height, X, Y

Reimplemented from SpaceVIL.Primitive.

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