[Cuis-dev] Toggleable halos debugging aids

Juan Vuletich juan at cuis.st
Tue Jun 13 09:15:02 PDT 2023


Hi Mariano,

Just pushed it. Apologies for the delay.

Cheers,

On 5/30/2023 10:54 AM, Mariano Montone via Cuis-dev wrote:
> Hi,
>
> the current halos display code starts with this commented code for 
> "Debugging aids":
>
> HaloMorph>>drawOn: aCanvas
>
>     | b |
>     target ifNil: [^super drawOn: aCanvas].
>
>    "Debugging aid"
>     "aCanvas
>         fillRectangle: haloBox
>         color: (Color red alpha: 0.2).
>     aCanvas
>         fillRectangle: self morphLocalBounds
>         color: (Color gray alpha: 0.4)."
>
>
> I find that commented code useful as I often want to visualize the 
> halos morph bounds when developing GUI.
>
> So, I would like to make that commented code toggleable.
>
> I attach an implementation that uses Preferences to toggle halo's 
> debugging aids.
>
> I don't care much about being done my way, but being done in some way 
> (I struggled with the name of preferences, or perhaps you prefer to do 
> this in a completely different way.)
>
> What do you think?
>
>
> Thanks,
>
>         Mariano


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list