[Gimp-developer] Generated Brush

2009-08-28 Thread Christopher Howard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi. Where is it in the code that generated brush hardness (and other
GimpBrushGenerated data) start getting turned into something more
concrete (something that can be painted). I'm trying to learn the code
on my own as much as possible but would appreciate being pointed in the
right direction.

Your favorite n00b,
Christopher

- --
Christopher Howard
http://indicium.us
http://theologia.indicium.us
I digitally sign /all/ my e-mails via PGP. If you receive any e-mail
supposedly from me without my valid PGP digital signature, please take
additional steps to verify the authenticity of the message.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqYiK0ACgkQQ5FLNdi0BcV/TgCaAj4R5TbR+lCmZQXLXdFNYulM
jkUAoJLTZjbGBPQCJf/U1C3pbVpLU/Q9
=KtPT
-END PGP SIGNATURE-
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Generated Brush

2009-08-28 Thread Martin Nordholts
On 08/29/2009 03:47 AM, Christopher Howard wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi. Where is it in the code that generated brush hardness (and other
> GimpBrushGenerated data) start getting turned into something more
> concrete (something that can be painted).

Hi,

The parameters are turned into a paintable mask in 
gimp_brush_generated_calc(). Set a breakpoint in that function to 
examine how and from where it is called. You probably wan't to run a 
debug-enabled build of GTK+ so you can set the GDK_DEBUG env var to 
"nograbs".

If you hit a breakpoint while a grab is active, you'll have to either do 
a X11 ungrab with Ctrl+Alt+KeypadDivide, which requires an explicit X11 
ungrab configuration of the X11 server, or you need to switch to a 
terminal (typically with a keystroke like Ctrl+Alt+F2) and do pkill -9 
gimp-2.6.

HTH,
Martin

-- 

My GIMP Blog:
http://www.chromecode.com/
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Generated Brush

2009-08-29 Thread Sven Neumann
On Sat, 2009-08-29 at 07:45 +0200, Martin Nordholts wrote:
> On 08/29/2009 03:47 AM, Christopher Howard wrote:
> > Hi. Where is it in the code that generated brush hardness (and other
> > GimpBrushGenerated data) start getting turned into something more
> > concrete (something that can be painted).
>
> The parameters are turned into a paintable mask in 
> gimp_brush_generated_calc(). Set a breakpoint in that function to 
> examine how and from where it is called. You probably wan't to run a 
> debug-enabled build of GTK+ so you can set the GDK_DEBUG env var to 
> "nograbs".

It's totally sufficient to look at the file
app/core/gimpbrushgenerated.c. Everything is in there and you shouldn't
have to deal with a debugger to understand what's going on.


Sven


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


[Gimp-developer] generated brush api for the pdb

2004-12-29 Thread William Skaggs
Hi,

I have coded up some generated brush API for the PDB, as suggested by
Sven a while back.  The new functions (in their libgimp incarnation), 
as currently implemented, are these:

Usable for any brush:

gimp_brush_is_editable()
gimp_brush_is_generated()

Usable only for generated brushes:

gimp_brush_get_shape()
gimp_brush_get_radius()
gimp_brush_get_spikes()
gimp_brush_get_hardness()
gimp_brush_get_aspect_ratio()
gimp_brush_get_angle()

and also all of these with "set" substituted for "get".

At the same time I also added

gimp_palette_is_editable()

at Joao's suggestion.

I thought it would be useful to send a message to the list so that
people could think about whether the function names and other aspects
of the api are okay, before making any move to commit.


Best,
  -- Bill
 

 
__ __ __ __
Sent via the CNPRC Email system at primate.ucdavis.edu


 
   
___
Gimp-developer mailing list
Gimp-developer@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] generated brush api for the pdb

2004-12-30 Thread Michael Natterer
"William Skaggs" <[EMAIL PROTECTED]> writes:

> At the same time I also added
>
> gimp_palette_is_editable()

Would you also add gimp_gradient_is_editable() while you're at it?

ciao,
--mitch
___
Gimp-developer mailing list
Gimp-developer@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer