a more dynamic Applet::formFactor()

Marco Martin notmart at gmail.com
Sun Sep 26 15:53:04 CEST 2010


On Saturday 25 September 2010, Giulio Camuffo wrote:
> In data sabato 25 settembre 2010 21:16:23, Aaron J. Seigo ha scritto:
> > i think that's because you are confusing formFactor for "it means it's a
> > panel" or "it means it's a desktop". it doesn't. formFactor refers to how
> > things are arranged, regardless of where the containment is in the host
> > application shell.
> 
> From the apidox:
> 
> Planar
> The applet lives in a plane and has two degrees of freedom to grow.
> Optimize for desktop, laptop or tablet usage: a high resolution screen 1-3
> feet distant from the viewer.
> 
> Horizontal
> The applet is constrained vertically, but can expand horizontally.
> 
> You see, an applet in a FlowGroup is constrained vertically, so the
> Horizontal form factor would be right, but an applet outside it has two
> degrees of freedom, so the Planar form factor would be right in that case.
> 
> And, on the other hand, i don't see how a new form factor would solve this
> issue, as you suggested in your other message. How can a form factor
> specify an applet it is constrained and it isn't constrained at the same
> time?

seems to behave like 2 completely different containments in one, it could 
require something like a Continment::formFactor(Applet*)

Cheers,
Marco Martin


More information about the Plasma-devel mailing list