Quoting Milos Prudek <[EMAIL PROTECTED]>:

> How are the various GUI widgets defined in Script-Fu?
>
> For instance Script-Fu/Decor/Fuzzy border:
> - Border size GUI widget is a "number with arrows".
> - Granularity GUI widget is a "slider with arrows".
>
> I look at the fuzzyborder.scm file. These GUI widgets seem to be defined
> in "(script-fu-register)":
>
> SF-ADJUSTMENT _"Border size"            '(16 1 300 1 10 0 1)
> SF-ADJUSTMENT _"Granularity (1 is Low)" '(4 1 16 0.25 5 2 0)
>
> They are both SF-ADJUSTMENT, so why is the first GUI a "number with arrows"
> and the second is "slider with arrows"? And what do the numbers (16 1 300 1
> 10 0 1) mean?

The last argument determines the widget type. The list of numbers  
corresponds to (respectively):

'initial_value' -- starting value (subsequent calls will use  
LAST_VALUE instead)
'minimum' -- lowest value possible
'maximum' -- highest value possible
'step_size' -- amount to increment/decrement if clicked with mouse button #1
'page_size' -- amount to increment/decrement if clicked with mouse button #2
'digits' -- the number of decimal places: 0 = integers, 1 = tenths, 2  
= hundredths, ...
'widget_type' -- 0 = slider, 1 = spinbutton


@ Sven Neumann, thanks for clarifying how the interaction mode works.

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to