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:
LaurentGom 2010-01-17 10:03:46 +00:00
parent 8577dbd56d
commit 8ba9495c02
21 changed files with 133 additions and 133 deletions

View file

@ -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>

View file

@ -317,9 +317,9 @@ namespace SFML
public override string ToString()
{
return "[Image]" +
" Width = " + Width +
" Height = " + Height +
" Smooth = " + Smooth;
" Width(" + Width + ")" +
" Height(" + Height + ")" +
" Smooth(" + Smooth + ")";
}
////////////////////////////////////////////////////////////

View file

@ -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>

View file

@ -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 + ")";
}
////////////////////////////////////////////////////////////

View file

@ -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 + ")";
}
////////////////////////////////////////////////////////////

View file

@ -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 + ")";
}
////////////////////////////////////////////////////////////

View file

@ -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 + ")";
}
////////////////////////////////////////////////////////////

View file

@ -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() + ")";
}
////////////////////////////////////////////////////////////

View file

@ -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>

View file

@ -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 + ")";
}
////////////////////////////////////////////////////////////