wxStyledTextEvent(3erl)
π¦ wxStyledTextEvent(3erl) β Erlang Module Definition π¦
Ok bestie, this is the manual page for wxStyledTextEvent, the event type sent by wxStyledTextCtrl in Erlang-land. Itβs giving βevent object with lore,β and weβre going to get through every single export together. π
πΈ NAME πΈ
wxStyledTextEvent β functions for the wxStyledTextEvent class. Literally the whole vibe: helper functions for this event class. π
β¨ DESCRIPTION β¨
This is the type of events sent from wxStyledTextCtrl. Slay. π¦
This class is derived (and can use functions) from: wxCommandEvent wxEvent. Yep, both are in the family tree. π
wxWidgets docs: wxStyledTextEvent.
ποΈ EVENTS ποΈ
Use wxEvtHandler:connect/3 with wxStyledTextEventType to subscribe to events of this type. Thatβs the whole subscription situation, no cap. π
π§ DATA TYPES π§
wxStyledTextEvent() = wx:wx_object() β thatβs the object type, simple and cute.
Hereβs the wxStyledText() record, looking iconic and fully fielded:
wxStyledText() =
#wxStyledText{type =
wxStyledTextEvent:wxStyledTextEventType(),
position = integer(),
key = integer(),
modifiers = integer(),
modificationType = integer(),
text = unicode:chardata(),
length = integer(),
linesAdded = integer(),
line = integer(),
foldLevelNow = integer(),
foldLevelPrev = integer(),
margin = integer(),
message = integer(),
wParam = integer(),
lParam = integer(),
listType = integer(),
x = integer(),
y = integer(),
dragText = unicode:chardata(),
dragAllowMove = boolean(),
dragResult = wx:wx_enum()}
And hereβs the event type union, no skips, no gatekeeping:
wxStyledTextEventType() =
stc_autocomp_cancelled | stc_autocomp_char_deleted |
stc_autocomp_selection | stc_calltip_click | stc_change |
stc_charadded | stc_do_drop | stc_doubleclick |
stc_drag_over | stc_dwellend | stc_dwellstart |
stc_hotspot_click | stc_hotspot_dclick |
stc_hotspot_release_click | stc_indicator_click |
stc_indicator_release | stc_macrorecord | stc_marginclick |
stc_modified | stc_needshown | stc_painted |
stc_romodifyattempt | stc_savepointleft |
stc_savepointreached | stc_start_drag | stc_styleneeded |
stc_updateui | stc_userlistselection | stc_zoom
π EXPORTS π
Every export is here, in order, because we do not skip βboringβ parts in this group chat. π
getPosition(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the zero-based text position associated with this event.
This method is valid for the following event types: (blank in the source β yes, really π)
getKey(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the key code of the key that generated this event.
This method is valid for the following event types: (still blank, bestie π)
getModifiers(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the modifiers of the key press or mouse click for this event.
The returned value is a bit list that may contain one or more of the following values: (the source lists no values here π)
In addition, the value can be checked for equality with ?wxSTC_KEYMOD_NORM to test if no modifiers are present.
This method is valid for the following event types: (yep, blank again π)
getModificationType(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the modification type for this event.
The modification type is a bit list that describes the change that generated this event. It may contain one or more of the following values: (again, no values are listed in the source π)
This method is valid for wxEVT_STC_MODIFIED events.
getText(This) -> unicode:charlist()
Types: This = wxStyledTextEvent()
Deprecated: Use wxCommandEvent:getString/1 instead. π
getLength(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the length (number of characters) of this event.
This method is valid for wxEVT_STC_MODIFIED and wxEVT_STC_NEEDSHOWN events.
getLinesAdded(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the number of lines added or deleted with this event.
This method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes ?wxSTC_MOD_INSERTTEXT or ?wxSTC_MOD_DELETETEXT.
getLine(This) -> integer()
Types: This = wxStyledTextEvent()
Returns zero-based line number for this event.
This method is valid for wxEVT_STC_DOUBLECLICK and wxEVT_STC_MODIFIED events.
getFoldLevelNow(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the current fold level for the line.
This method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes ?wxSTC_MOD_CHANGEFOLD.
getFoldLevelPrev(This) -> integer()
Types: This = wxStyledTextEvent()
Returns previous fold level for the line.
This method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes ?wxSTC_MOD_CHANGEFOLD.
getMargin(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the zero-based index of the margin that generated this event.
This method is valid for wxEVT_STC_MARGINCLICK and wxEVT_STC_MARGIN_RIGHT_CLICK events.
getMessage(This) -> integer()
Types: This = wxStyledTextEvent()
Returns a message number while a macro is being recorded.
Many of the wxStyledTextCtrl methods such as wxStyledTextCtrl:insertText/3 and wxStyledTextCtrl:paste/1 have an event number associated with them. This method returns that number while a macro is being recorded so that the macro can be played back later.
This method is valid for wxEVT_STC_MACRORECORD events.
getWParam(This) -> integer()
Types: This = wxStyledTextEvent()
Returns value of the WParam field for this event.
This method is valid for wxEVT_STC_MACRORECORD events.
getLParam(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the value of the LParam field for this event.
This method is valid for wxEVT_STC_MACRORECORD events.
getListType(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the list type for this event.
The list type is an integer passed to a list when it is created with the wxStyledTextCtrl:userListShow/3 method and can be used to distinguish lists if more than one is used.
This method is valid for wxEVT_STC_AUTOCOMP_SELECTION_CHANGE and wxEVT_STC_USERLISTSELECTION events.
getX(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the X coordinate of the mouse for this event.
This method is valid for the following event types: (blank in the source β Iβm not hiding anything π)
getY(This) -> integer()
Types: This = wxStyledTextEvent()
Returns the Y coordinate of the mouse for this event.
This method is valid for the following event types: (also blank, bestie π)
getDragText(This) -> unicode:charlist()
Types: This = wxStyledTextEvent()
Deprecated: Use wxCommandEvent:getString/1 instead. π
getDragAllowMove(This) -> boolean()
Types: This = wxStyledTextEvent()
No description in the source β itβs just here, being iconic and mysterious. π
getDragResult(This) -> wx:wx_enum()
Types: This = wxStyledTextEvent()
Returns drag result for this event.
This method is valid for wxEVT_STC_DRAG_OVER and wxEVT_STC_DO_DROP events.
getShift(This) -> boolean()
Types: This = wxStyledTextEvent()
Returns true if the Shift key is pressed.
This method is valid for the following event types: (yep, blank again π)
getControl(This) -> boolean()
Types: This = wxStyledTextEvent()
Returns true if the Control key is pressed.
This method is valid for the following event types: (still blank π)
getAlt(This) -> boolean()
Types: This = wxStyledTextEvent()
Returns true if the Alt key is pressed.
This method is valid for the following event types: (blank one last time π)
Made with π by the wxWidgets team Β· source/version: wx 2.2.2.1 Β· page: wxStyledTextEvent(3erl) Β· date: not in this footer, bestie π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms