a more dynamic Applet::formFactor()
Giulio Camuffo
giuliocamuffo at gmail.com
Sat Sep 25 21:39:32 CEST 2010
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?
Greets, Giulio
More information about the Plasma-devel
mailing list