View Source wxGridCellFloatRenderer (wx v2.4.3)

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

See:

This class is derived, and can use functions, from:

wxWidgets docs: wxGridCellFloatRenderer

Summary

Functions

Destroys the object

Returns the precision.

Returns the width.

Equivalent to new([]).

Float cell renderer ctor.

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

Sets the precision.

Sets the width.

Types

Link to this type

wxGridCellFloatRenderer()

View Source
-type wxGridCellFloatRenderer() :: wx:wx_object().

Functions

-spec destroy(This :: wxGridCellFloatRenderer()) -> ok.

Destroys the object

-spec getPrecision(This) -> integer() when This :: wxGridCellFloatRenderer().

Returns the precision.

-spec getWidth(This) -> integer() when This :: wxGridCellFloatRenderer().

Returns the width.

-spec new() -> wxGridCellFloatRenderer().

Equivalent to new([]).

-spec new([Option]) -> wxGridCellFloatRenderer()
             when Option :: {width, integer()} | {precision, integer()} | {format, integer()}.

Float cell renderer ctor.

Link to this function

setParameters(This, Params)

View Source
-spec setParameters(This, Params) -> ok
                       when This :: wxGridCellFloatRenderer(), Params :: unicode:chardata().

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

Link to this function

setPrecision(This, Precision)

View Source
-spec setPrecision(This, Precision) -> ok when This :: wxGridCellFloatRenderer(), Precision :: integer().

Sets the precision.

-spec setWidth(This, Width) -> ok when This :: wxGridCellFloatRenderer(), Width :: integer().

Sets the width.