Class: Wx::GRID::GridCellFloatRenderer
- Inherits:
-
GridCellStringRenderer
- Object
- GridCellRenderer
- GridCellStringRenderer
- Wx::GRID::GridCellFloatRenderer
- 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
-
#get_format ⇒ Integer
(also: #format)
Returns the specifier used to format the data to string.
-
#get_precision ⇒ Integer
(also: #precision)
Returns the precision.
-
#get_width ⇒ Integer
(also: #width)
Returns the width.
-
#initialize(width = -1,, precision = -1,, format = Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT) ⇒ Wx::GRID::GridCellFloatRenderer
constructor
Float cell renderer ctor.
-
#set_format(format) ⇒ void
(also: #format=)
Set the format to use for display the number.
-
#set_parameters(params) ⇒ void
(also: #parameters=)
The parameters string format is “width[,precision]” where format should be chosen between f|e|g|E|G (f is used by default).
-
#set_precision(precision) ⇒ void
(also: #precision=)
Sets the precision.
-
#set_width(width) ⇒ void
(also: #width=)
Sets the width.
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.
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_format ⇒ Integer 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.
37 |
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 37 def get_format; end |
#get_precision ⇒ Integer Also known as: precision
Returns the precision.
42 |
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 42 def get_precision; end |
#get_width ⇒ Integer Also known as: width
Returns the width.
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.
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)
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.
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.
71 |
# File 'lib/wx/doc/gen/grid/grid_cell_float_renderer.rb', line 71 def set_width(width) end |