int get_columns();

Returns the number of columns in the view.

0 means that the column number is determined automatically, based on the available space and the maximum width of a single column. Any other number greater than zero is the real used number of columns - independent of the available space. If there is not enough space for all the columns, the view is scrolled.

See also: set_columns()