wxGridCellNumberEditor(3)

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

✨ wxGridCellNumberEditor ✨

okay so bestie, this is the wxGridCellNumberEditor page from the Erlang Module Definition corner of the wx docs πŸ’– it lives in the wx 2.6 era and it's all about editing numbers in a grid cell. lowkey iconic, let's get into it 🫢


🌸 NAME 🌸

wxGridCellNumberEditor β€” grid cell editor for numeric integer data πŸ’…

like. it edits numbers. integers. that's the whole vibe ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

See these besties first, fr fr:

  • wxGridCellEditor
  • wxGridCellBoolEditor
  • wxGridCellChoiceEditor
  • wxGridCellFloatEditor
  • wxGridCellTextEditor

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

  • wxGridCellTextEditor
  • wxGridCellEditor

so yeah, it's got that inheritance chain going on, main character energy through and through πŸ‘‘

you can also go look at the wxWidgets docs: wxGridCellNumberEditor β€” that's the original source of truth, no cap πŸ“š


πŸŽ€ DATA TYPES πŸŽ€

wxGridCellNumberEditor() :: wx:wx_object().

that's it, that's the type. a wx_object(). simple. clean. slay ✨


πŸ”₯ FUNCTIONS πŸ”₯

πŸ’œ destroy/1

destroy(This :: wxGridCellNumberEditor()) -> ok.

destroys the object πŸ’€ literally just yeets it out of existence. bye bestie πŸ‘‹

πŸ’œ getValue/1

getValue(This) -> unicode:charlist()
                     when This :: wxGridCellNumberEditor().

returns the value currently in the editor control πŸ“ like, whatever's sitting in that box right now, this hands it to you as a unicode:charlist() ✨

πŸ’œ new/1

new([Option]) -> wxGridCellNumberEditor()
             when Option :: {min, integer()} | {max, integer()}.

allows you to specify the range for acceptable data 🎯

heads up: values equal to -1 for both min and max indicate that no range checking should be done πŸ™ˆ so if you want chaos numbers, that's your door.

πŸ’œ setParameters/2

setParameters(This, Params) -> ok
                       when
                           This :: wxGridCellNumberEditor(),
                           Params :: unicode:chardata().

parameters string format is "min,max" πŸ’« that's the whole format, comma-separated, no spaces, keep it tight πŸŽ€


and that's the whole page bestie, hope this helped 🌈

sign-off time: this was brought to you by Ericsson AB, wx 2.6, and the one and only page wxGridCellNumberEditor(3) πŸ’–βœ¨ go edit some integers, you've got this πŸ«ΆπŸ‘‘

πŸ“¦ where this page comes from