[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31468] multi-line text objects

From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #31468] multi-line text objects
Date: Sat, 13 Aug 2011 19:59:27 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110430 Iceweasel/3.5.19 (like Firefox/3.5.19)

Follow-up Comment #36, bug #31468 (project octave):

You changed the "string" property of the text object to be any_property.  I'd
rather not do that, since then it could be possible for this property to be
incorrectly constructed and contain things that the rendering code is not

I'm not sure what would be most convenient, but I think the string property
should use some other type of property object that more closely models what is
going on here.  The object should only store char matrices or cellstr objects.
 It should have a constructor (or constructors) that accepts strings, char
matrices, cellstr objects, and numeric arrays and converts to the appropriate
internal representation.

By restricting what this object can contain to only what we need, users of the
object don't have to check to be sure that some unexpected type of value is
stored there, which makes things simpler for the rendering code.

I'm also not sure what the best name is for this new object.  Maybe a
text_label_property or similar?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]