Class: Wx::GRID::GridCellFloatRenderer

Inherits:
GridCellStringRenderer show all
Defined in:
lib/wx/doc/gen/grid/grid_cell_float_renderer.rb

Overview

This class may be used to format floating point data in a cell.

Category: Grid Related Classes

Instance Method Summary collapse

Methods inherited from GridCellRenderer

#clone, #draw, #get_best_height, #get_best_size, #get_best_width, #get_max_best_size

Constructor Details

#initialize(width = -1,, precision = -1,, format = Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT) ⇒ Wx::GRID::GridCellFloatRenderer

Float cell renderer ctor.

Parameters:

  • width (Integer) (defaults to: -1,)

    Minimum number of characters to be shown.

  • precision (Integer) (defaults to: -1,)

    Number of digits after the decimal dot.

  • format (Integer) (defaults to: Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT)

    The format used to display the string, must be a combination of Wx::GRID::GridCellFloatFormat enum elements. This parameter is only available since wxWidgets 2.9.3.



31
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 31

def initialize(width=-1, precision=-1, format=Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT) end

Instance Method Details

#get_formatInteger Also known as: format

Returns the specifier used to format the data to string.

The returned value is a combination of Wx::GRID::GridCellFloatFormat elements.

Returns:

  • (Integer)


37
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 37

def get_format; end

#get_precisionInteger Also known as: precision

Returns the precision.

Returns:

  • (Integer)


42
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 42

def get_precision; end

#get_widthInteger Also known as: width

Returns the width.

Returns:

  • (Integer)


47
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 47

def get_width; end

#set_format(format) ⇒ void Also known as: format=

This method returns an undefined value.

Set the format to use for display the number.

Parameters:



53
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 53

def set_format(format) end

#set_parameters(params) ⇒ void Also known as: parameters=

This method returns an undefined value.

The parameters string format is “width[,precision]” where format should be chosen between f|e|g|E|G (f is used by default)

Parameters:

  • params (String)


59
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 59

def set_parameters(params) end

#set_precision(precision) ⇒ void Also known as: precision=

This method returns an undefined value.

Sets the precision.

Parameters:

  • precision (Integer)


65
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 65

def set_precision(precision) end

#set_width(width) ⇒ void Also known as: width=

This method returns an undefined value.

Sets the width.

Parameters:

  • width (Integer)


71
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 71

def set_width(width) end