[Gtk-sharp-list] Re: [Mono-patches] r40282 - in trunk/gtk-sharp: . doc doc/en/Gdk
gdk
Duncan Mak
duncan@ximian.com
Tue, 08 Feb 2005 04:20:45 -0500
On Mon, 2005-02-07 at 19:19 -0500, Ben Maurer wrote:
> + <Member MemberName="IsEmpty">
> + <MemberSignature Language="C#" Value="public bool IsEmpty { get; };" />
> + <MemberType>Property</MemberType>
> + <ReturnValue>
> + <ReturnType>System.Boolean</ReturnType>
> + </ReturnValue>
> + <Parameters />
> + <Docs>
> + <summary>Checks if the point is (0,0)</summary>
> + <returns>true if this == (0,0</returns>
> + </Docs>
> + </Member>
I wanted to comment on this over the weekend but forgot.
I see that there's value in having both Rectangle.IsEmpty (meaning
height and width both equal to zero) and this Point.IsEmpty, but an
"empty point" just doesn't make a lot of sense. Would this be better
named if it's is Point.IsZero or Point.IsOrigin?
--
Duncan Mak <duncan@ximian.com>