[Y-devel] State of the Widgets

Chris Amshey ychris at amshey.net
Fri Feb 27 21:49:34 GMT 2004


On Fri, Feb 27, 2004 at 07:20:09PM +0000, Mark Thomas wrote:
> 
> what you'd probably want is methods like:
> 
>   themeInButton (struct Button *, int, int);
>   themeInCheckbox (struct Checkbox *, int, int);
>   themeInCheckboxBox (struct Checkbox *, int, int);
>   themeInSlider (struct Slider *, int, int);
>   themeInSliderTrough (struct Slider *, int, int);
>   themeInSliderThumb (struct Slider *, int, int);
> 
> and so forth.
> 
> You might also need things like:
> 
>   int themeSliderPositionToIndex (struct Slider *);
> 
> to convert a particular trough "hit" into an index value on the slider.
> 
> For now I think the "behaviour" of widgets can be hard-coded into the 
> widget code itself.  If we decide behaviour modules are a good idea it 
> won't be hard to pull it out later, and it'll probably have a better API 
> than if we come up with a random one now.
> 
> In fact, I'd prefer this sort of mechanism over the ugly WindowRegions 
> hack I have in the windowmanager/theme interaction.
> 
> Anyone want to work on this?
> 
> Regards,
> 
>   Mark.
I wouldn't have made such a forceful proposal if I wasn't willing
to follow it up with code. ;)

--Chris



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved