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

@ -224,18 +224,18 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Music]" + return "[Music]" +
" SampleRate = " + SampleRate + " SampleRate(" + SampleRate + ")" +
" ChannelsCount = " + ChannelsCount + " ChannelsCount(" + ChannelsCount + ")" +
" Status = " + Status + " Status(" + Status + ")" +
" Duration = " + Duration + " Duration(" + Duration + ")" +
" Loop = " + Loop + " Loop(" + Loop + ")" +
" Pitch = " + Pitch + " Pitch(" + Pitch + ")" +
" Volume = " + Volume + " Volume(" + Volume + ")" +
" Position = " + Position + " Position(" + Position + ")" +
" RelativeToListener = " + RelativeToListener + " RelativeToListener(" + RelativeToListener + ")" +
" MinDistance = " + MinDistance + " MinDistance(" + MinDistance + ")" +
" Attenuation = " + Attenuation + " Attenuation(" + Attenuation + ")" +
" PlayingOffset = " + PlayingOffset; " PlayingOffset(" + PlayingOffset + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -219,16 +219,16 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Sound]" + return "[Sound]" +
" Status = " + Status + " Status(" + Status + ")" +
" Loop = " + Loop + " Loop(" + Loop + ")" +
" Pitch = " + Pitch + " Pitch(" + Pitch + ")" +
" Volume = " + Volume + " Volume(" + Volume + ")" +
" Position = " + Position + " Position(" + Position + ")" +
" RelativeToListener = " + RelativeToListener + " RelativeToListener(" + RelativeToListener + ")" +
" MinDistance = " + MinDistance + " MinDistance(" + MinDistance + ")" +
" Attenuation = " + Attenuation + " Attenuation(" + Attenuation + ")" +
" PlayingOffset = " + PlayingOffset + " PlayingOffset(" + PlayingOffset + ")" +
" SoundBuffer = " + SoundBuffer; " SoundBuffer(" + SoundBuffer + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -154,9 +154,9 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[SoundBuffer]" + return "[SoundBuffer]" +
" SampleRate = " + SampleRate + " SampleRate(" + SampleRate + ")" +
" ChannelsCount = " + ChannelsCount + " ChannelsCount(" + ChannelsCount + ")" +
" Duration = " + Duration; " Duration(" + Duration + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -37,8 +37,8 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[SoundBufferRecorder]" + return "[SoundBufferRecorder]" +
" SampleRate = " + SampleRate + " SampleRate(" + SampleRate + ")" +
" SoundBuffer = " + SoundBuffer; " SoundBuffer(" + SoundBuffer + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -92,7 +92,7 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[SoundRecorder]" + return "[SoundRecorder]" +
" SampleRate = " + SampleRate; " SampleRate(" + SampleRate + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -189,17 +189,17 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[SoundStream]" + return "[SoundStream]" +
" SampleRate = " + SampleRate + " SampleRate(" + SampleRate + ")" +
" ChannelsCount = " + ChannelsCount + " ChannelsCount(" + ChannelsCount + ")" +
" Status = " + Status + " Status(" + Status + ")" +
" Loop = " + Loop + " Loop(" + Loop + ")" +
" Pitch = " + Pitch + " Pitch(" + Pitch + ")" +
" Volume = " + Volume + " Volume(" + Volume + ")" +
" Position = " + Position + " Position(" + Position + ")" +
" RelativeToListener = " + RelativeToListener + " RelativeToListener(" + RelativeToListener + ")" +
" MinDistance = " + MinDistance + " MinDistance(" + MinDistance + ")" +
" Attenuation = " + Attenuation + " Attenuation(" + Attenuation + ")" +
" PlayingOffset = " + PlayingOffset; " PlayingOffset(" + PlayingOffset + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -115,9 +115,9 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Vector3]" + return "[Vector3]" +
" X = " + X + " X(" + X + ")" +
" Y = " + Y + " Y(" + Y + ")" +
" Z = " + Z; " Z(" + Z + ")";
} }
/// <summary>X (horizontal) component of the vector</summary> /// <summary>X (horizontal) component of the vector</summary>

View File

@ -63,10 +63,10 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Color]" + return "[Color]" +
" R = " + R + " R(" + R + ")" +
" G = " + G + " G(" + G + ")" +
" B = " + B + " B(" + B + ")" +
" A = " + A; " A(" + A + ")";
} }
/// <summary>Red component of the color</summary> /// <summary>Red component of the color</summary>

View File

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

View File

@ -134,10 +134,10 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[IntRect]" + return "[IntRect]" +
" Left = " + Left + " Left(" + Left + ")" +
" Top = " + Top + " Top(" + Top + ")" +
" Right = " + Right + " Right(" + Right + ")" +
" Bottom = " + Bottom; " Bottom(" + Bottom + ")";
} }
/// <summary>Left coordinate of the rectangle</summary> /// <summary>Left coordinate of the rectangle</summary>
@ -282,10 +282,10 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[FloatRect]" + return "[FloatRect]" +
" Left = " + Left + " Left(" + Left + ")" +
" Top = " + Top + " Top(" + Top + ")" +
" Right = " + Right + " Right(" + Right + ")" +
" Bottom = " + Bottom; " Bottom(" + Bottom + ")";
} }
/// <summary>Left coordinate of the rectangle</summary> /// <summary>Left coordinate of the rectangle</summary>

View File

@ -251,11 +251,11 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[RenderImage]" + return "[RenderImage]" +
" Width = " + Width + " Width(" + Width + ")" +
" Height = " + Height + " Height(" + Height + ")" +
" Image = " + Image + " Image(" + Image + ")" +
" DefaultView = " + DefaultView + " DefaultView(" + DefaultView + ")" +
" CurrentView = " + CurrentView; " CurrentView(" + CurrentView + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -434,11 +434,11 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[RenderWindow]" + return "[RenderWindow]" +
" Width = " + Width + " Width(" + Width + ")" +
" Height = " + Height + " Height(" + Height + ")" +
" Settings = " + Settings + " Settings(" + Settings + ")" +
" DefaultView = " + DefaultView + " DefaultView(" + DefaultView + ")" +
" CurrentView = " + CurrentView; " CurrentView(" + CurrentView + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -381,14 +381,14 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Shape]" + return "[Shape]" +
" Position = " + Position + " Position(" + Position + ")" +
" Rotation = " + Rotation + " Rotation(" + Rotation + ")" +
" Scale = " + Scale + " Scale(" + Scale + ")" +
" Origin = " + Origin + " Origin(" + Origin + ")" +
" Color = " + Color + " Color(" + Color + ")" +
" BlendMode = " + BlendMode + " BlendMode(" + BlendMode + ")" +
" OutlineWidth = " + OutlineWidth + " OutlineWidth(" + OutlineWidth + ")" +
" NbPoints = " + NbPoints; " NbPoints(" + NbPoints + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -236,16 +236,16 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Sprite]" + return "[Sprite]" +
" Position = " + Position + " Position(" + Position + ")" +
" Rotation = " + Rotation + " Rotation(" + Rotation + ")" +
" Scale = " + Scale + " Scale(" + Scale + ")" +
" Origin = " + Origin + " Origin(" + Origin + ")" +
" Color = " + Color + " Color(" + Color + ")" +
" BlendMode = " + BlendMode + " BlendMode(" + BlendMode + ")" +
" Width = " + Width + " Width(" + Width + ")" +
" Height = " + Height + " Height(" + Height + ")" +
" SubRect = " + SubRect + " SubRect(" + SubRect + ")" +
" Image = " + Image; " Image(" + Image + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -277,17 +277,17 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Text]" + return "[Text]" +
" Position = " + Position + " Position(" + Position + ")" +
" Rotation = " + Rotation + " Rotation(" + Rotation + ")" +
" Scale = " + Scale + " Scale(" + Scale + ")" +
" Origin = " + Origin + " Origin(" + Origin + ")" +
" Color = " + Color + " Color(" + Color + ")" +
" BlendMode = " + BlendMode + " BlendMode(" + BlendMode + ")" +
" String = " + DisplayedString + " String(" + DisplayedString + ")" +
" Font = " + Font + " Font(" + Font + ")" +
" Size = " + Size + " Size(" + Size + ")" +
" Style = " + Style + " Style(" + Style + ")" +
" Rectangle = " + GetRect(); " Rectangle(" + GetRect() + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -113,8 +113,8 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[Vector2]" + return "[Vector2]" +
" X = " + X + " X(" + X + ")" +
" Y = " + Y; " Y(" + Y + ")";
} }
/// <summary>X (horizontal) component of the vector</summary> /// <summary>X (horizontal) component of the vector</summary>

View File

@ -158,10 +158,10 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[View]" + return "[View]" +
" Center = " + Center + " Center(" + Center + ")" +
" Size = " + Size + " Size(" + Size + ")" +
" Rotation = " + Rotation + " Rotation(" + Rotation + ")" +
" Viewport = " + Viewport; " Viewport(" + Viewport + ")";
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -66,11 +66,11 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[ContextSettings]" + return "[ContextSettings]" +
" DepthBits = " + DepthBits + " DepthBits(" + DepthBits + ")" +
" StencilBits = " + StencilBits + " StencilBits(" + StencilBits + ")" +
" AntialiasingLevel = " + AntialiasingLevel + " AntialiasingLevel(" + AntialiasingLevel + ")" +
" MajorVersion = " + MajorVersion + " MajorVersion(" + MajorVersion + ")" +
" MinorVersion = " + MinorVersion; " MinorVersion(" + MinorVersion + ")";
} }
/// <summary>Depth buffer bits (0 is disabled)</summary> /// <summary>Depth buffer bits (0 is disabled)</summary>

View File

@ -34,10 +34,10 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[KeyEventArgs]" + return "[KeyEventArgs]" +
" Code = " + Code + " Code(" + Code + ")" +
" Alt = " + Alt + " Alt(" + Alt + ")" +
" Control = " + Control + " Control(" + Control + ")" +
" Shift = " + Shift; " Shift(" + Shift + ")";
} }
/// <summary>Code of the key (see KeyCode enum)</summary> /// <summary>Code of the key (see KeyCode enum)</summary>
@ -80,7 +80,7 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[TextEventArgs]" + return "[TextEventArgs]" +
" Unicode = " + Unicode; " Unicode(" + Unicode + ")";
} }
/// <summary>UTF-16 value of the character</summary> /// <summary>UTF-16 value of the character</summary>
@ -115,8 +115,8 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[MouseMoveEventArgs]" + return "[MouseMoveEventArgs]" +
" X = " + X + " X(" + X + ")" +
" Y = " + Y; " Y(" + Y + ")";
} }
/// <summary>X coordinate of the mouse cursor</summary> /// <summary>X coordinate of the mouse cursor</summary>
@ -155,9 +155,9 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[MouseButtonEventArgs]" + return "[MouseButtonEventArgs]" +
" Button = " + Button + " Button(" + Button + ")" +
" X = " + X + " X(" + X + ")" +
" Y = " + Y; " Y(" + Y + ")";
} }
/// <summary>Code of the button (see MouseButton enum)</summary> /// <summary>Code of the button (see MouseButton enum)</summary>
@ -199,9 +199,9 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[MouseWheelEventArgs]" + return "[MouseWheelEventArgs]" +
" Delta = " + Delta + " Delta(" + Delta + ")" +
" X = " + X + " X(" + X + ")" +
" Y = " + Y; " Y(" + Y + ")";
} }
/// <summary>Scroll amount</summary> /// <summary>Scroll amount</summary>
@ -243,9 +243,9 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[JoyMoveEventArgs]" + return "[JoyMoveEventArgs]" +
" JoystickId = " + JoystickId + " JoystickId(" + JoystickId + ")" +
" Axis = " + Axis + " Axis(" + Axis + ")" +
" Position = " + Position; " Position(" + Position + ")";
} }
/// <summary>Index of the joystick which triggered the event</summary> /// <summary>Index of the joystick which triggered the event</summary>
@ -286,8 +286,8 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[JoyButtonEventArgs]" + return "[JoyButtonEventArgs]" +
" JoystickId = " + JoystickId + " JoystickId(" + JoystickId + ")" +
" Button = " + Button; " Button(" + Button + ")";
} }
/// <summary>Index of the joystick which triggered the event</summary> /// <summary>Index of the joystick which triggered the event</summary>
@ -325,8 +325,8 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[SizeEventArgs]" + return "[SizeEventArgs]" +
" Width = " + Width + " Width(" + Width + ")" +
" Height = " + Height; " Height(" + Height + ")";
} }
/// <summary>New width of the window</summary> /// <summary>New width of the window</summary>

View File

@ -97,9 +97,9 @@ namespace SFML
public override string ToString() public override string ToString()
{ {
return "[VideoMode]" + return "[VideoMode]" +
" Width = " + Width + " Width(" + Width + ")" +
" Height = " + Height + " Height(" + Height + ")" +
" BitsPerPixel = " + BitsPerPixel; " BitsPerPixel(" + BitsPerPixel + ")";
} }
/// <summary>Video mode width, in pixels</summary> /// <summary>Video mode width, in pixels</summary>

View File

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