Improved the string format used in ToString() functions
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1361 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
8577dbd56d
commit
8ba9495c02
21 changed files with 133 additions and 133 deletions
|
@ -63,10 +63,10 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[Color]" +
|
||||
" R = " + R +
|
||||
" G = " + G +
|
||||
" B = " + B +
|
||||
" A = " + A;
|
||||
" R(" + R + ")" +
|
||||
" G(" + G + ")" +
|
||||
" B(" + B + ")" +
|
||||
" A(" + A + ")";
|
||||
}
|
||||
|
||||
/// <summary>Red component of the color</summary>
|
||||
|
|
|
@ -317,9 +317,9 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[Image]" +
|
||||
" Width = " + Width +
|
||||
" Height = " + Height +
|
||||
" Smooth = " + Smooth;
|
||||
" Width(" + Width + ")" +
|
||||
" Height(" + Height + ")" +
|
||||
" Smooth(" + Smooth + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -134,10 +134,10 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[IntRect]" +
|
||||
" Left = " + Left +
|
||||
" Top = " + Top +
|
||||
" Right = " + Right +
|
||||
" Bottom = " + Bottom;
|
||||
" Left(" + Left + ")" +
|
||||
" Top(" + Top + ")" +
|
||||
" Right(" + Right + ")" +
|
||||
" Bottom(" + Bottom + ")";
|
||||
}
|
||||
|
||||
/// <summary>Left coordinate of the rectangle</summary>
|
||||
|
@ -282,10 +282,10 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[FloatRect]" +
|
||||
" Left = " + Left +
|
||||
" Top = " + Top +
|
||||
" Right = " + Right +
|
||||
" Bottom = " + Bottom;
|
||||
" Left(" + Left + ")" +
|
||||
" Top(" + Top + ")" +
|
||||
" Right(" + Right + ")" +
|
||||
" Bottom(" + Bottom + ")";
|
||||
}
|
||||
|
||||
/// <summary>Left coordinate of the rectangle</summary>
|
||||
|
|
|
@ -251,11 +251,11 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[RenderImage]" +
|
||||
" Width = " + Width +
|
||||
" Height = " + Height +
|
||||
" Image = " + Image +
|
||||
" DefaultView = " + DefaultView +
|
||||
" CurrentView = " + CurrentView;
|
||||
" Width(" + Width + ")" +
|
||||
" Height(" + Height + ")" +
|
||||
" Image(" + Image + ")" +
|
||||
" DefaultView(" + DefaultView + ")" +
|
||||
" CurrentView(" + CurrentView + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -434,11 +434,11 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[RenderWindow]" +
|
||||
" Width = " + Width +
|
||||
" Height = " + Height +
|
||||
" Settings = " + Settings +
|
||||
" DefaultView = " + DefaultView +
|
||||
" CurrentView = " + CurrentView;
|
||||
" Width(" + Width + ")" +
|
||||
" Height(" + Height + ")" +
|
||||
" Settings(" + Settings + ")" +
|
||||
" DefaultView(" + DefaultView + ")" +
|
||||
" CurrentView(" + CurrentView + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -381,14 +381,14 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[Shape]" +
|
||||
" Position = " + Position +
|
||||
" Rotation = " + Rotation +
|
||||
" Scale = " + Scale +
|
||||
" Origin = " + Origin +
|
||||
" Color = " + Color +
|
||||
" BlendMode = " + BlendMode +
|
||||
" OutlineWidth = " + OutlineWidth +
|
||||
" NbPoints = " + NbPoints;
|
||||
" Position(" + Position + ")" +
|
||||
" Rotation(" + Rotation + ")" +
|
||||
" Scale(" + Scale + ")" +
|
||||
" Origin(" + Origin + ")" +
|
||||
" Color(" + Color + ")" +
|
||||
" BlendMode(" + BlendMode + ")" +
|
||||
" OutlineWidth(" + OutlineWidth + ")" +
|
||||
" NbPoints(" + NbPoints + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -236,16 +236,16 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[Sprite]" +
|
||||
" Position = " + Position +
|
||||
" Rotation = " + Rotation +
|
||||
" Scale = " + Scale +
|
||||
" Origin = " + Origin +
|
||||
" Color = " + Color +
|
||||
" BlendMode = " + BlendMode +
|
||||
" Width = " + Width +
|
||||
" Height = " + Height +
|
||||
" SubRect = " + SubRect +
|
||||
" Image = " + Image;
|
||||
" Position(" + Position + ")" +
|
||||
" Rotation(" + Rotation + ")" +
|
||||
" Scale(" + Scale + ")" +
|
||||
" Origin(" + Origin + ")" +
|
||||
" Color(" + Color + ")" +
|
||||
" BlendMode(" + BlendMode + ")" +
|
||||
" Width(" + Width + ")" +
|
||||
" Height(" + Height + ")" +
|
||||
" SubRect(" + SubRect + ")" +
|
||||
" Image(" + Image + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -277,17 +277,17 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[Text]" +
|
||||
" Position = " + Position +
|
||||
" Rotation = " + Rotation +
|
||||
" Scale = " + Scale +
|
||||
" Origin = " + Origin +
|
||||
" Color = " + Color +
|
||||
" BlendMode = " + BlendMode +
|
||||
" String = " + DisplayedString +
|
||||
" Font = " + Font +
|
||||
" Size = " + Size +
|
||||
" Style = " + Style +
|
||||
" Rectangle = " + GetRect();
|
||||
" Position(" + Position + ")" +
|
||||
" Rotation(" + Rotation + ")" +
|
||||
" Scale(" + Scale + ")" +
|
||||
" Origin(" + Origin + ")" +
|
||||
" Color(" + Color + ")" +
|
||||
" BlendMode(" + BlendMode + ")" +
|
||||
" String(" + DisplayedString + ")" +
|
||||
" Font(" + Font + ")" +
|
||||
" Size(" + Size + ")" +
|
||||
" Style(" + Style + ")" +
|
||||
" Rectangle(" + GetRect() + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -113,8 +113,8 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[Vector2]" +
|
||||
" X = " + X +
|
||||
" Y = " + Y;
|
||||
" X(" + X + ")" +
|
||||
" Y(" + Y + ")";
|
||||
}
|
||||
|
||||
/// <summary>X (horizontal) component of the vector</summary>
|
||||
|
|
|
@ -158,10 +158,10 @@ namespace SFML
|
|||
public override string ToString()
|
||||
{
|
||||
return "[View]" +
|
||||
" Center = " + Center +
|
||||
" Size = " + Size +
|
||||
" Rotation = " + Rotation +
|
||||
" Viewport = " + Viewport;
|
||||
" Center(" + Center + ")" +
|
||||
" Size(" + Size + ")" +
|
||||
" Rotation(" + Rotation + ")" +
|
||||
" Viewport(" + Viewport + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue