WXGRIDCELLNUMBEREDITOR(3erl)

okay so you just opened the 3erl page for wxGridCel...berEditor β€” Erlang Module Definition energy, bestie β€” and the actual class is wxGridCellNumberEditor. It's giving β€œtiny grid editor, big numeric main character” ✨

πŸ’– NAME πŸ’–

wxGridCellNumberEditor β€” Functions for wxGridCellNumberEditor class. That's the whole assignment, and she ate. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Grid cell editor for numeric integer data. Literally here to edit integers in a grid cell, no cap. πŸ“

See: these related besties β€”

  • wxGridCellEditor
  • wxGridCellAutoWrapStringEditor (not implemented in wx)
  • wxGridCellBoolEditor
  • wxGridCellChoiceEditor
  • wxGridCellEnumEditor (not implemented in wx)
  • wxGridCellFloatEditor
  • wxGridCellTextEditor
  • wxGridCellDateEditor (not implemented in wx)

This class is derived (and can use functions) from: wxGridCellTextEditor and wxGridCellEditor. Family tree slay. 🌸

The wxWidgets docs pointer is literally: wxWidgets docs: wxGridCellNumberEditor.

🌈 DATA TYPES 🌈

One type, and she's simple:

wxGridCellNumberEditor() = wx:wx_object()

✨ EXPORTS ✨

  • new() -> wxGridCellNumberEditor() β€” makes a new one, iconic.
  • new(Options :: [Option]) -> wxGridCellNumberEditor() β€” makes a new one with options. Types:
Option = {min, integer()} | {max, integer()}

Allows you to specify the range for acceptable data.

Values equal to -1 for both min and max indicate that no range checking should be done. That's the β€œrange check? never met her” switch, iykyk. 🫢

  • getValue(This) -> unicode:charlist() β€” returns the value currently in the editor control. Types:
This = wxGridCellNumberEditor()
  • setParameters(This, Params) -> ok β€” sets the parameters and returns ok. Types:
This = wxGridCellNumberEditor()
Params = unicode:chardata()

Parameters string format is "min,max". Exact vibes, no improv. πŸŽ€

  • destroy(This :: wxGridCellNumberEditor()) -> ok β€” destroys the object. bye queen πŸ’€πŸ‘‘

Signed with love by the wxWidgets team πŸ’– β€” source/version tag wx 2.2.2.1, manual page wxGridCel...berEditor(3erl). The footer doesn't give a separate calendar date, so the version tag is the date-ish detail we've got. bye bestie 🫢🌈

πŸ“¦ where this page comes from