SpaceVIL
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SpaceVIL.BaseItem Class Referenceabstract

Inherits SpaceVIL.Core.IBaseItem.

Inherited by SpaceVIL.Primitive, and SpaceVIL.VisualItem.

Public Member Functions

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 ()
 
Returns
triangles list of the BaseItem's shape

 
virtual void SetTriangles (List< float[]> triangles)
 Sets BaseItem's shape as triangles list More...
 
virtual List< float[]> MakeShape ()
 
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 SetStyle (Style style)
 Style of the BaseItem More...
 
abstract Style GetCoreStyle ()
 
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 ()
 

Public Attributes

ItemRule HoverRule = ItemRule.Lazy
 

Protected Member Functions

virtual void UpdateInnersDrawable (bool value)
 

Member Function Documentation

◆ CheckDefaults()

virtual void SpaceVIL.BaseItem.CheckDefaults ( )
virtual

Check and set BaseItem default style

◆ GetMargin()

Indents SpaceVIL.BaseItem.GetMargin ( )

BaseItem margin

Implements SpaceVIL.Core.IBaseItem.

◆ GetParent()

Prototype SpaceVIL.BaseItem.GetParent ( )

BaseItem's parent item

Implements SpaceVIL.Core.IBaseItem.

◆ GetShadowColor()

Color SpaceVIL.BaseItem.GetShadowColor ( )

BaseItem's shadow parameters. Shadow color

Implements SpaceVIL.Core.IBaseItem.

◆ GetShadowPos()

Position SpaceVIL.BaseItem.GetShadowPos ( )

BaseItem's shadow parameters. Shadow position

Implements SpaceVIL.Core.IBaseItem.

◆ InitElements()

virtual void SpaceVIL.BaseItem.InitElements ( )
virtual

Initialization and adding of all elements in the BaseItem

Implements SpaceVIL.Core.IBaseItem.

◆ IsDrawable()

virtual bool SpaceVIL.BaseItem.IsDrawable ( )
virtual

If BaseItem will drawn by engine

Implements SpaceVIL.Core.IBaseItem.

◆ IsShadowDrop()

bool SpaceVIL.BaseItem.IsShadowDrop ( )

BaseItem's shadow parameters. Is item has shadow

Implements SpaceVIL.Core.IBaseItem.

◆ IsVisible()

virtual bool SpaceVIL.BaseItem.IsVisible ( )
virtual

If BaseItem is visible

Implements SpaceVIL.Core.IBaseItem.

◆ MakeShape()

virtual List<float[]> SpaceVIL.BaseItem.MakeShape ( )
virtual
Returns
shape points list in GL coordinates, using triangles from getTriangles()

Implements SpaceVIL.Core.IItem.

Reimplemented in SpaceVIL.PointsContainer, SpaceVIL.Rectangle, SpaceVIL.CustomShape, SpaceVIL.Ellipse, SpaceVIL.Primitive, and SpaceVIL.Triangle.

◆ RemoveItemFromListeners()

void SpaceVIL.BaseItem.RemoveItemFromListeners ( )

Item will not react on parent's changes

◆ SetAlignment()

void SpaceVIL.BaseItem.SetAlignment ( ItemAlignment  alignment)

BaseItem alignment

Implements SpaceVIL.Core.IBehavior.

◆ SetBackground()

virtual void SpaceVIL.BaseItem.SetBackground ( Color  color)
virtual

Background color of the BaseItem

Implements SpaceVIL.Core.IItem.

◆ SetConfines()

virtual void SpaceVIL.BaseItem.SetConfines ( )
virtual

BaseItem confines

Implements SpaceVIL.Core.IBaseItem.

◆ SetHandler()

void SpaceVIL.BaseItem.SetHandler ( CoreWindow  handler)
Parameters
handlerWindowLayout handler - window that contains the BaseItem

Implements SpaceVIL.Core.IBaseItem.

◆ SetItemName()

void SpaceVIL.BaseItem.SetItemName ( string  name)

BaseItem's name

Implements SpaceVIL.Core.IItem.

◆ SetMinHeight()

void SpaceVIL.BaseItem.SetMinHeight ( int  height)

Height of the BaseItem

Implements SpaceVIL.Core.ISize.

◆ SetMinWidth()

void SpaceVIL.BaseItem.SetMinWidth ( int  width)

Width of the BaseItem

Implements SpaceVIL.Core.ISize.

◆ SetShadow()

void SpaceVIL.BaseItem.SetShadow ( int  radius,
int  x,
int  y,
Color  color 
)

Set BaseItem's shadow with parameters

Parameters
radiusShadow corners radius (same for all corners)
xShadow X position
yShadow Y position
colorShadow color

Implements SpaceVIL.Core.IBaseItem.

◆ SetShadowRadius()

void SpaceVIL.BaseItem.SetShadowRadius ( int  radius)

BaseItem's shadow parameters. Shadow corners radius

Implements SpaceVIL.Core.IBaseItem.

◆ SetSize()

void SpaceVIL.BaseItem.SetSize ( int  width,
int  height 
)

Size (width and height) of the BaseItem

Implements SpaceVIL.Core.ISize.

◆ SetSizePolicy()

void SpaceVIL.BaseItem.SetSizePolicy ( SizePolicy  width,
SizePolicy  height 
)

BaseItem size (width and height) policy - FIXED or EXPAND

◆ SetStyle()

virtual void SpaceVIL.BaseItem.SetStyle ( Style  style)
virtual

Style of the BaseItem

Implements SpaceVIL.Core.IBaseItem.

Reimplemented in SpaceVIL.Primitive.

◆ SetTriangles()

virtual void SpaceVIL.BaseItem.SetTriangles ( List< float[]>  triangles)
virtual

Sets BaseItem's shape as triangles list

Implements SpaceVIL.Core.IItem.

◆ SetX()

virtual void SpaceVIL.BaseItem.SetX ( int  x)
virtual

BaseItem (x, y) position

Implements SpaceVIL.Core.IPosition.

◆ Update()

void SpaceVIL.BaseItem.Update ( GeometryEventType  type,
int  value = 0 
)

Update BaseItem's state

Implements SpaceVIL.Core.IEventUpdate.


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