wxGridCellNumberEditor(3)
β¨ 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:
wxGridCellEditorwxGridCellBoolEditorwxGridCellChoiceEditorwxGridCellFloatEditorwxGridCellTextEditor
This class is derived, and can use functions, from:
wxGridCellTextEditorwxGridCellEditor
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-1for bothminandmaxindicate 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
- 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