wxGridCellFloatRenderer(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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:

  • wxGridCellRenderer
  • wxGridCellBoolRenderer
  • wxGridCellNumberRenderer
  • wxGridCellStringRenderer

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

  • wxGridCellStringRenderer
  • wxGridCellRenderer

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 β€” width is the only one you actually gotta have, then precision if you want, then format last. format vibes: f|e|g|E|G, and if you don't pick, f is 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