Where are the options for Option_t?

For example in the canvas class I have the following method :
void Close (Option_t *option="")

which takes up an option, but where are the list of options, as I see option is an alias to a “char”.

Hello,
This depend on classes for example for TH1D:Draw you have reference to THistPainter and there you can find all draw options. I suppose that for TCanvas this function is not working, probably is left for keeping some compatibility with other classes that inherits from TPad and so one.

Hi,

Option_t is a a typedef to const char. So all this really says is that it takes a string.

The strings that the interfaces understand are documented in the interfaces, see e.g. root.cern.ch/doc/master/classTL … e890d05c36

One of the advantages and issues is that the set of options can change for derived classes.

Cheers, Axel.

Thanks for the info, Axel & dwelane !