wxGridCellFloatRenderer(3)
π wxGridCellFloatRenderer π
okay bestie, so the manual name here is Erlang Module Definition, and this page is all about wxGridCellFloatRenderer(3) β your new fave lil helper for making floating point numbers look cute inside a grid cell. no cap π«Ά
β¨ NAME β¨
wxGridCellFloatRenderer β this class may be used to format floating point data in a cell. that's literally the whole job and she does it gorgeously π
πΈ DESCRIPTION πΈ
so like, go look at these too, they're the friend group:
wxGridCellRendererwxGridCellBoolRendererwxGridCellNumberRendererwxGridCellStringRenderer
and this class is derived, and can use functions, from:
wxGridCellStringRendererwxGridCellRenderer
wxWidgets docs: wxGridCellFloatRenderer π
π¦ DATA TYPES π¦
wxGridCellFloatRenderer() :: wx:wx_object().
that's it. that's the type. icon behavior π
π FUNCTIONS π
destroy(This :: wxGridCellFloatRenderer()) -> ok.
Destroys the object π like, gone, bye, slay.
getPrecision(This) -> integer() when This :: wxGridCellFloatRenderer().
Returns the precision. β¨
getWidth(This) -> integer() when This :: wxGridCellFloatRenderer().
Returns the width. β¨
new([Option]) -> wxGridCellFloatRenderer()
when
Option ::
{width, integer()} |
{precision, integer()} |
{format, integer()}.
Float cell renderer ctor. yes she's constructed, she's fresh, she's ready π
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) π₯
bestie the brackets mean optional okay, don't come for me βwidthis the only one you actually gotta have, thenprecisionif you want, thenformatlast. format vibes:f|e|g|E|G, and if you don't pick,fis the default, periodt.
setPrecision(This, Precision) -> ok
when
This :: wxGridCellFloatRenderer(),
Precision :: integer().
Sets the precision. π
setWidth(This, Width) -> ok
when
This :: wxGridCellFloatRenderer(),
Width :: integer().
Sets the width. π
and that's the whole page, you ate it fr fr πβ¨
sign-off time: this lil masterpiece came from Ericsson AB, part of wx 2.6, and it's filed under wxGridCellFloatRenderer(3). mwah, go format some floats bestie πππ¦ππ§
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms