FS#145 - Implement copy constructors and ToString functions in SFML.Net

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1330 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-01-06 12:37:29 +00:00
parent bd9a60fef2
commit dd255a916d
28 changed files with 627 additions and 0 deletions

View file

@ -125,6 +125,21 @@ namespace SFML
}
}
////////////////////////////////////////////////////////////
/// <summary>
/// Provide a string describing the object
/// </summary>
/// <returns>String description of the object</returns>
////////////////////////////////////////////////////////////
public override string ToString()
{
return "[IntRect]" +
" Left = " + Left +
" Top = " + Top +
" Right = " + Right +
" Bottom = " + Bottom;
}
/// <summary>Left coordinate of the rectangle</summary>
public int Left;
@ -258,6 +273,21 @@ namespace SFML
}
}
////////////////////////////////////////////////////////////
/// <summary>
/// Provide a string describing the object
/// </summary>
/// <returns>String description of the object</returns>
////////////////////////////////////////////////////////////
public override string ToString()
{
return "[FloatRect]" +
" Left = " + Left +
" Top = " + Top +
" Right = " + Right +
" Bottom = " + Bottom;
}
/// <summary>Left coordinate of the rectangle</summary>
public float Left;