Navigation

Operators and Keywords

Function List:

C++ API

: h = gco ()
: h = gco (fig)

Return a handle to the current object of the current figure, or a handle to the current object of the figure with handle fig.

The current object of a figure is the object that was last clicked on. It is stored in the "CurrentObject" property of the target figure.

If the last mouse click did not occur on any child object of the figure, then the current object is the figure itself.

If no mouse click occurred in the target figure, this function returns an empty matrix.

Programming Note: The value returned by this function is not necessarily the same as the one returned by gcbo during callback execution. An executing callback can be interrupted by another callback and the current object may be changed.

See also: gcbo, gca, gcf, gcbf, get, set.

Package: octave