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
@ -224,18 +224,18 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[Music]" +
|
||||
" SampleRate = " + SampleRate +
|
||||
" ChannelsCount = " + ChannelsCount +
|
||||
" Status = " + Status +
|
||||
" Duration = " + Duration +
|
||||
" Loop = " + Loop +
|
||||
" Pitch = " + Pitch +
|
||||
" Volume = " + Volume +
|
||||
" Position = " + Position +
|
||||
" RelativeToListener = " + RelativeToListener +
|
||||
" MinDistance = " + MinDistance +
|
||||
" Attenuation = " + Attenuation +
|
||||
" PlayingOffset = " + PlayingOffset;
|
||||
" SampleRate(" + SampleRate + ")" +
|
||||
" ChannelsCount(" + ChannelsCount + ")" +
|
||||
" Status(" + Status + ")" +
|
||||
" Duration(" + Duration + ")" +
|
||||
" Loop(" + Loop + ")" +
|
||||
" Pitch(" + Pitch + ")" +
|
||||
" Volume(" + Volume + ")" +
|
||||
" Position(" + Position + ")" +
|
||||
" RelativeToListener(" + RelativeToListener + ")" +
|
||||
" MinDistance(" + MinDistance + ")" +
|
||||
" Attenuation(" + Attenuation + ")" +
|
||||
" PlayingOffset(" + PlayingOffset + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -219,16 +219,16 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[Sound]" +
|
||||
" Status = " + Status +
|
||||
" Loop = " + Loop +
|
||||
" Pitch = " + Pitch +
|
||||
" Volume = " + Volume +
|
||||
" Position = " + Position +
|
||||
" RelativeToListener = " + RelativeToListener +
|
||||
" MinDistance = " + MinDistance +
|
||||
" Attenuation = " + Attenuation +
|
||||
" PlayingOffset = " + PlayingOffset +
|
||||
" SoundBuffer = " + SoundBuffer;
|
||||
" Status(" + Status + ")" +
|
||||
" Loop(" + Loop + ")" +
|
||||
" Pitch(" + Pitch + ")" +
|
||||
" Volume(" + Volume + ")" +
|
||||
" Position(" + Position + ")" +
|
||||
" RelativeToListener(" + RelativeToListener + ")" +
|
||||
" MinDistance(" + MinDistance + ")" +
|
||||
" Attenuation(" + Attenuation + ")" +
|
||||
" PlayingOffset(" + PlayingOffset + ")" +
|
||||
" SoundBuffer(" + SoundBuffer + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -154,9 +154,9 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[SoundBuffer]" +
|
||||
" SampleRate = " + SampleRate +
|
||||
" ChannelsCount = " + ChannelsCount +
|
||||
" Duration = " + Duration;
|
||||
" SampleRate(" + SampleRate + ")" +
|
||||
" ChannelsCount(" + ChannelsCount + ")" +
|
||||
" Duration(" + Duration + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -37,8 +37,8 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[SoundBufferRecorder]" +
|
||||
" SampleRate = " + SampleRate +
|
||||
" SoundBuffer = " + SoundBuffer;
|
||||
" SampleRate(" + SampleRate + ")" +
|
||||
" SoundBuffer(" + SoundBuffer + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -92,7 +92,7 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[SoundRecorder]" +
|
||||
" SampleRate = " + SampleRate;
|
||||
" SampleRate(" + SampleRate + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -189,17 +189,17 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[SoundStream]" +
|
||||
" SampleRate = " + SampleRate +
|
||||
" ChannelsCount = " + ChannelsCount +
|
||||
" Status = " + Status +
|
||||
" Loop = " + Loop +
|
||||
" Pitch = " + Pitch +
|
||||
" Volume = " + Volume +
|
||||
" Position = " + Position +
|
||||
" RelativeToListener = " + RelativeToListener +
|
||||
" MinDistance = " + MinDistance +
|
||||
" Attenuation = " + Attenuation +
|
||||
" PlayingOffset = " + PlayingOffset;
|
||||
" SampleRate(" + SampleRate + ")" +
|
||||
" ChannelsCount(" + ChannelsCount + ")" +
|
||||
" Status(" + Status + ")" +
|
||||
" Loop(" + Loop + ")" +
|
||||
" Pitch(" + Pitch + ")" +
|
||||
" Volume(" + Volume + ")" +
|
||||
" Position(" + Position + ")" +
|
||||
" RelativeToListener(" + RelativeToListener + ")" +
|
||||
" MinDistance(" + MinDistance + ")" +
|
||||
" Attenuation(" + Attenuation + ")" +
|
||||
" PlayingOffset(" + PlayingOffset + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -115,9 +115,9 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[Vector3]" +
|
||||
" X = " + X +
|
||||
" Y = " + Y +
|
||||
" Z = " + Z;
|
||||
" X(" + X + ")" +
|
||||
" Y(" + Y + ")" +
|
||||
" Z(" + Z + ")";
|
||||
}
|
||||
|
||||
/// <summary>X (horizontal) component of the vector</summary>
|
||||
|
@ -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 + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -66,11 +66,11 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[ContextSettings]" +
|
||||
" DepthBits = " + DepthBits +
|
||||
" StencilBits = " + StencilBits +
|
||||
" AntialiasingLevel = " + AntialiasingLevel +
|
||||
" MajorVersion = " + MajorVersion +
|
||||
" MinorVersion = " + MinorVersion;
|
||||
" DepthBits(" + DepthBits + ")" +
|
||||
" StencilBits(" + StencilBits + ")" +
|
||||
" AntialiasingLevel(" + AntialiasingLevel + ")" +
|
||||
" MajorVersion(" + MajorVersion + ")" +
|
||||
" MinorVersion(" + MinorVersion + ")";
|
||||
}
|
||||
|
||||
/// <summary>Depth buffer bits (0 is disabled)</summary>
|
||||
|
@ -34,10 +34,10 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[KeyEventArgs]" +
|
||||
" Code = " + Code +
|
||||
" Alt = " + Alt +
|
||||
" Control = " + Control +
|
||||
" Shift = " + Shift;
|
||||
" Code(" + Code + ")" +
|
||||
" Alt(" + Alt + ")" +
|
||||
" Control(" + Control + ")" +
|
||||
" Shift(" + Shift + ")";
|
||||
}
|
||||
|
||||
/// <summary>Code of the key (see KeyCode enum)</summary>
|
||||
@ -80,7 +80,7 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[TextEventArgs]" +
|
||||
" Unicode = " + Unicode;
|
||||
" Unicode(" + Unicode + ")";
|
||||
}
|
||||
|
||||
/// <summary>UTF-16 value of the character</summary>
|
||||
@ -115,8 +115,8 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[MouseMoveEventArgs]" +
|
||||
" X = " + X +
|
||||
" Y = " + Y;
|
||||
" X(" + X + ")" +
|
||||
" Y(" + Y + ")";
|
||||
}
|
||||
|
||||
/// <summary>X coordinate of the mouse cursor</summary>
|
||||
@ -155,9 +155,9 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[MouseButtonEventArgs]" +
|
||||
" Button = " + Button +
|
||||
" X = " + X +
|
||||
" Y = " + Y;
|
||||
" Button(" + Button + ")" +
|
||||
" X(" + X + ")" +
|
||||
" Y(" + Y + ")";
|
||||
}
|
||||
|
||||
/// <summary>Code of the button (see MouseButton enum)</summary>
|
||||
@ -199,9 +199,9 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[MouseWheelEventArgs]" +
|
||||
" Delta = " + Delta +
|
||||
" X = " + X +
|
||||
" Y = " + Y;
|
||||
" Delta(" + Delta + ")" +
|
||||
" X(" + X + ")" +
|
||||
" Y(" + Y + ")";
|
||||
}
|
||||
|
||||
/// <summary>Scroll amount</summary>
|
||||
@ -243,9 +243,9 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[JoyMoveEventArgs]" +
|
||||
" JoystickId = " + JoystickId +
|
||||
" Axis = " + Axis +
|
||||
" Position = " + Position;
|
||||
" JoystickId(" + JoystickId + ")" +
|
||||
" Axis(" + Axis + ")" +
|
||||
" Position(" + Position + ")";
|
||||
}
|
||||
|
||||
/// <summary>Index of the joystick which triggered the event</summary>
|
||||
@ -286,8 +286,8 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[JoyButtonEventArgs]" +
|
||||
" JoystickId = " + JoystickId +
|
||||
" Button = " + Button;
|
||||
" JoystickId(" + JoystickId + ")" +
|
||||
" Button(" + Button + ")";
|
||||
}
|
||||
|
||||
/// <summary>Index of the joystick which triggered the event</summary>
|
||||
@ -325,8 +325,8 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[SizeEventArgs]" +
|
||||
" Width = " + Width +
|
||||
" Height = " + Height;
|
||||
" Width(" + Width + ")" +
|
||||
" Height(" + Height + ")";
|
||||
}
|
||||
|
||||
/// <summary>New width of the window</summary>
|
||||
|
@ -97,9 +97,9 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[VideoMode]" +
|
||||
" Width = " + Width +
|
||||
" Height = " + Height +
|
||||
" BitsPerPixel = " + BitsPerPixel;
|
||||
" Width(" + Width + ")" +
|
||||
" Height(" + Height + ")" +
|
||||
" BitsPerPixel(" + BitsPerPixel + ")";
|
||||
}
|
||||
|
||||
/// <summary>Video mode width, in pixels</summary>
|
||||
|
@ -375,9 +375,9 @@ namespace SFML
|
||||
public override string ToString()
|
||||
{
|
||||
return "[Window]" +
|
||||
" Width = " + Width +
|
||||
" Height = " + Height +
|
||||
" Settings = " + Settings;
|
||||
" Width(" + Width + ")" +
|
||||
" Height(" + Height + ")" +
|
||||
" Settings(" + Settings + ")";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user