emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get information of a tip created by x-show-tip


From: martin rudalics
Subject: Re: How to get information of a tip created by x-show-tip
Date: Sat, 19 Jan 2019 09:12:57 +0100

> I want to get a tip's information created by x-show-tip,  for example: width, 
height, x and y
>
> but I fail to find the way, anyone can help me?

We have invested some efforts to hide information about the tooltip
implementation.  The major reason was to protect our own routines from
operating on tooltip frames and windows.  Compare, for example,

http://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00694.html

From there you can see that the return value of 'visible-frame-list'
and the 'tooltip' frame paramter can give you the current tooltip
frame if it is visible and native (that is created by Emacs itself).
The size and position paramters of that frame should give you the
values you cited above.

> by the way, is a tip a window or a frame?

'tooltip' (or 'tip') usually refer to the text only.  Emacs can put
that text into a window, that window into a frame and ask the window
system to display that frame in a window-system window.  But Emacs can
drop that text directly to GTK in which case no frame will be made.
For GTK tooltips no information can be retrieved.

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]