Bloc and Spec2

OL
o lu
Tue, Oct 12, 2021 2:39 PM

What is the difference between Bloc and Spec2?

Sent with ProtonMail Secure Email.

What is the difference between Bloc and Spec2? Sent with [ProtonMail](https://protonmail.com/) Secure Email.
MD
Martin Dias
Tue, Oct 12, 2021 4:43 PM

Hello,

Both are libraries for coding user interfaces, but at different abstraction
levels.
In few words, Spec2 provides widgets such as button, checkbox and table,
while Bloc provides more low-level visual elements such as rectangle,
circle and text.

However, there is another library named Brick, that provides widgets based
on Bloc, which is more comparable.
But Spec2 is still "more abstract" than Brick: By default, a Spec UI opens
using Morphic's widgets (which come with Pharo), but you could load other
backends such as GTK or Brick to open "the same UI" using other widgets.

I've been working in a backend for Brick, still quite incomplete, in:
https://github.com/pharo-graphics/Spec-Brick

Regards,
Martín

On Tue, Oct 12, 2021 at 11:39 AM o lu via Pharo-dev <
pharo-dev@lists.pharo.org> wrote:

What is the difference between Bloc and Spec2?

Sent with ProtonMail https://protonmail.com/ Secure Email.

Hello, Both are libraries for coding user interfaces, but at different abstraction levels. In few words, Spec2 provides widgets such as button, checkbox and table, while Bloc provides more low-level visual elements such as rectangle, circle and text. However, there is another library named Brick, that provides widgets based on Bloc, which is more comparable. But Spec2 is still "more abstract" than Brick: By default, a Spec UI opens using Morphic's widgets (which come with Pharo), but you could load other backends such as GTK or Brick to open "the same UI" using other widgets. I've been working in a backend for Brick, still quite incomplete, in: https://github.com/pharo-graphics/Spec-Brick Regards, Martín On Tue, Oct 12, 2021 at 11:39 AM o lu via Pharo-dev < pharo-dev@lists.pharo.org> wrote: > What is the difference between Bloc and Spec2? > > Sent with ProtonMail <https://protonmail.com/> Secure Email. >