Re: [Gimp-user] Mouse Click Coordinates

2004-03-13 Thread Sven Neumann
Hi,

Kevin Myers [EMAIL PROTECTED] writes:

 Is there any way that I can write a GIMP add-in that can obtain the
 coordinates of user mouse clicks in the main GIMP image window?  My
 add-in needs the user to be able to click on specific locations
 within the main image window in order to obtain various coordinates
 for subsequent processing.

No, there isn't. All you can do is to show a representation of the
image in the plug-in dialog and have the user click there.


Sven

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Mouse Click Coordinates

2004-03-13 Thread Kevin Myers
Sven, you're the guru, so you would know.  However, how is it that I can't
get the coordinates, when apparantly something like the crop tool can?  Is
the crop tool specially written using internal gimp facilities that aren't
available to a normal add-in?

Thanks again,
s/KAM


- Original Message - 
From: Sven Neumann [EMAIL PROTECTED]
To: Kevin Myers [EMAIL PROTECTED]
Cc: gimp users [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 5:04 AM
Subject: Re: [Gimp-user] Mouse Click Coordinates


 Hi,

 Kevin Myers [EMAIL PROTECTED] writes:

  Is there any way that I can write a GIMP add-in that can obtain the
  coordinates of user mouse clicks in the main GIMP image window?  My
  add-in needs the user to be able to click on specific locations
  within the main image window in order to obtain various coordinates
  for subsequent processing.

 No, there isn't. All you can do is to show a representation of the
 image in the plug-in dialog and have the user click there.


 Sven

 ___
 Gimp-user mailing list
 [EMAIL PROTECTED]
 http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Mouse Click Coordinates

2004-03-13 Thread Alexander Rabtchevich
I have another question - is it possible through settings to make GIMP 
to display the size of rectangular selection, excluding non-image area? 
Current realization displays the size of the whole selection, even if 
the part of the selection is outside image boundaries.

If it's impossible, should I fill an issue?

Sven Neumann wrote:
Hi,

Kevin Myers [EMAIL PROTECTED] writes:


Is there any way that I can write a GIMP add-in that can obtain the
coordinates of user mouse clicks in the main GIMP image window?  My
add-in needs the user to be able to click on specific locations
within the main image window in order to obtain various coordinates
for subsequent processing.


No, there isn't. All you can do is to show a representation of the
image in the plug-in dialog and have the user click there.



--
With respect
Alexander Rabtchevich
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Mouse Click Coordinates

2004-03-13 Thread Sven Neumann
Hi,

Kevin Myers [EMAIL PROTECTED] writes:

 Sven, you're the guru, so you would know.  However, how is it that I can't
 get the coordinates, when apparantly something like the crop tool can?  Is
 the crop tool specially written using internal gimp facilities that aren't
 available to a normal add-in?

Would you mind to define normal add-in then? I assumed you meant a
plug-in and the crop tool, like all other tools, is completely
implemented in the core.


Sven

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Mouse Click Coordinates

2004-03-13 Thread David Neary
Hi Kevin,

Kevin Myers wrote:
 However, how is it that I can't
 get the coordinates, when apparantly something like the crop tool can?  Is
 the crop tool specially written using internal gimp facilities that aren't
 available to a normal add-in?

This is the difference between a tool and a plug-in. A tool is
something which (usually) operates locally on the basis of a
mouse click (the colour tools are the exceptions, which often
causes some confusion). A plug-in usually gets a copy of a 
drawable to work on, and doesn't have access to things like 
mouse click events which are captured and treated in the core.

Cheers,
Dave.

-- 
   David Neary,
   Lyon, France
  E-Mail: [EMAIL PROTECTED]
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Mouse Click Coordinates

2004-03-13 Thread Sven Neumann
Hi,

Alexander Rabtchevich [EMAIL PROTECTED] writes:

 I have another question - is it possible through settings to make GIMP
 to display the size of rectangular selection, excluding non-image
 area? Current realization displays the size of the whole selection,
 even if the part of the selection is outside image boundaries.

The selection cannot extend the image boundaries. This is a bug in the
rectangular selection tool then.


Sven
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Mouse Click Coordinates

2004-03-13 Thread Alexander Rabtchevich
Ok, I've posted a bug.

Sven Neumann wrote:

Hi,

Alexander Rabtchevich [EMAIL PROTECTED] writes:


I have another question - is it possible through settings to make GIMP
to display the size of rectangular selection, excluding non-image
area? Current realization displays the size of the whole selection,
even if the part of the selection is outside image boundaries.


The selection cannot extend the image boundaries. This is a bug in the
rectangular selection tool then.
Sven




--
With respect
Alexander Rabtchevich
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] Mouse Click Coordinates

2004-03-12 Thread Kevin Myers



Hello,

Is there any way that I can write a GIMP add-in 
that can obtain the coordinates of user mouse clicks in the main GIMP image 
window? My add-in needs the user to be able to click on specific locations 
within the main image window in order to obtain various coordinates for 
subsequent processing.

Thanks,
s/KAM