wxStyledTextEvent(3)
π NAME π
okay bestie, meet wxStyledTextEvent β the type of events sent from wxStyledTextCtrl. that's it, that's the whole vibe. this is an Erlang module definition page (yes, the (3) in the corner, iykyk) π¦
β¨ DESCRIPTION β¨
so this class is derived, which means it can use functions from its ancestors too. the nepo baby lineage is:
wxCommandEventwxEvent
also, wxWidgets docs have a whole page for wxStyledTextEvent if you want to go read the source material π
π Events π
use wxEvtHandler:connect/3 with wxStyledTextEventType to subscribe to events of this type. that's your whole subscription situation, no cap π
π§ DATA TYPES π§
wxStyledText() :: #wxStyledText{}.
wxStyledTextEvent() :: wx:wx_object().
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.
π FUNCTIONS π
getAlt(This) -> boolean()whenThis :: wxStyledTextEvent().
returns true if the Alt key is pressed. alt girl behavior honestly.
this method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getControl(This) -> boolean()whenThis :: wxStyledTextEvent().
returns true if the Ctrl key is pressed. control freak (affectionate) π
this method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getDragAllowMove(This) -> boolean()whenThis :: wxStyledTextEvent().
basic question, basic answer β no description in the original, so no lore from me either π
getDragResult(This) -> wx:wx_enum()whenThis :: wxStyledTextEvent().
returns the drag result for this event.
this method is valid for wxEVT_STC_DRAG_OVER and wxEVT_STC_DO_DROP events.
getDragText(This) -> unicode:charlist()whenThis :: wxStyledTextEvent().
Deprecated: use wxCommandEvent:getString/1 instead. the old one is giving 2019, we moved on π«Ά
getFoldLevelNow(This) -> integer()whenThis :: 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()whenThis :: wxStyledTextEvent().
returns the previous fold level for the line. the before picture πΈ
this method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes ?wxSTC_MOD_CHANGEFOLD.
getKey(This) -> integer()whenThis :: wxStyledTextEvent().
returns the key code of the key that generated this event.
this method is valid for the following event types:
wxEVT_STC_CHARADDEDwxEVT_STC_USERLISTSELECTIONwxEVT_STC_AUTOCOMP_SELECTIONwxEVT_STC_AUTOCOMP_COMPLETED
getLParam(This) -> integer()whenThis :: wxStyledTextEvent().
returns the value of the LParam field for this event.
this method is valid for wxEVT_STC_MACRORECORD events.
getLength(This) -> integer()whenThis :: wxStyledTextEvent().
returns the length (number of characters) of this event.
this method is valid for wxEVT_STC_MODIFIED and wxEVT_STC_NEEDSHOWN events.
getLine(This) -> integer()whenThis :: wxStyledTextEvent().
returns the zero-based line number for this event. zero-based, because of course it is π
this method is valid for wxEVT_STC_DOUBLECLICK and wxEVT_STC_MODIFIED events.
getLinesAdded(This) -> integer()whenThis :: wxStyledTextEvent().
returns the number of lines added or deleted with this event. yes, it can go negative in spirit, it counts both directions bestie.
this method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes ?wxSTC_MOD_INSERTTEXT or ?wxSTC_MOD_DELETETEXT.
getListType(This) -> integer()whenThis :: 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 it can be used to distinguish lists if more than one is used. like name tags at a party, but for lists π
this method is valid for wxEVT_STC_AUTOCOMP_SELECTION_CHANGE and wxEVT_STC_USERLISTSELECTION events.
getMargin(This) -> integer()whenThis :: 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()whenThis :: wxStyledTextEvent().
returns a message number while a macro is being recorded.
a lot of the wxStyledTextCtrl methods β like 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 the macro can be played back later. it's giving diary entry for future you π
this method is valid for wxEVT_STC_MACRORECORD events.
getModificationType(This) -> integer()whenThis :: 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:
?wxSTC_MOD_INSERTTEXT?wxSTC_MOD_DELETETEXT?wxSTC_MOD_CHANGESTYLE?wxSTC_MOD_CHANGEFOLD?wxSTC_PERFORMED_USER?wxSTC_PERFORMED_UNDO?wxSTC_PERFORMED_REDO?wxSTC_MULTISTEPUNDOREDO?wxSTC_LASTSTEPINUNDOREDO?wxSTC_MOD_CHANGEMARKER?wxSTC_MOD_BEFOREINSERT?wxSTC_MOD_BEFOREDELETE?wxSTC_MULTILINEUNDOREDO?wxSTC_STARTACTION?wxSTC_MOD_CHANGEINDICATOR?wxSTC_MOD_CHANGELINESTATE?wxSTC_MOD_CHANGEMARGIN?wxSTC_MOD_CHANGEANNOTATION?wxSTC_MOD_CONTAINER?wxSTC_MOD_LEXERSTATE?wxSTC_MOD_INSERTCHECK?wxSTC_MOD_CHANGETABSTOPS
this method is valid for wxEVT_STC_MODIFIED events.
getModifiers(This) -> integer()whenThis :: 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:
?wxSTC_KEYMOD_SHIFT?wxSTC_KEYMOD_CTRL?wxSTC_KEYMOD_ALT?wxSTC_KEYMOD_SUPER?wxSTC_KEYMOD_META
in addition, the value can be checked for equality with ?wxSTC_KEYMOD_NORM to test if no modifiers are present. the clean girl aesthetic of modifiers β¨
this method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getPosition(This) -> integer()whenThis :: wxStyledTextEvent().
returns the zero-based text position associated with this event.
this method is valid for the following event types:
wxEVT_STC_STYLENEEDEDwxEVT_STC_DOUBLECLICKwxEVT_STC_MODIFIEDwxEVT_STC_MARGINCLICKwxEVT_STC_NEEDSHOWNwxEVT_STC_USERLISTSELECTIONwxEVT_STC_DWELLSTARTwxEVT_STC_DWELLENDwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_CALLTIP_CLICKwxEVT_STC_AUTOCOMP_SELECTIONwxEVT_STC_AUTOCOMP_SELECTION_CHANGEwxEVT_STC_AUTOCOMP_COMPLETEDwxEVT_STC_MARGIN_RIGHT_CLICK
(yes that's a long list, she's popular, let her cook π)
getShift(This) -> boolean()whenThis :: wxStyledTextEvent().
returns true if the Shift key is pressed.
this method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getText(This) -> unicode:charlist()whenThis :: wxStyledTextEvent().
Deprecated: use wxCommandEvent:getString/1 instead. same energy, newer fit. don't @ me, @ the docs π
getWParam(This) -> integer()whenThis :: wxStyledTextEvent().
returns the value of the WParam field for this event.
this method is valid for wxEVT_STC_MACRORECORD events.
getX(This) -> integer()whenThis :: wxStyledTextEvent().
returns the X coordinate of the mouse for this event. the horizontal one, for the record.
this method is valid for the following event types:
wxEVT_STC_DWELLSTARTwxEVT_STC_DWELLENDwxEVT_STC_START_DRAGwxEVT_STC_DRAG_OVERwxEVT_STC_DO_DROP
getY(This) -> integer()whenThis :: wxStyledTextEvent().
returns the Y coordinate of the mouse for this event. vertical bestie, they come as a pair π«Ά
this method is valid for the following event types:
wxEVT_STC_DWELLSTARTwxEVT_STC_DWELLENDwxEVT_STC_START_DRAGwxEVT_STC_DRAG_OVERwxEVT_STC_DO_DROP
and that's the whole page, no notes π this lil manual page comes to you from Ericsson AB, for wx 2.6, and it lives at section wxStyledTextEvent(3) β go forth and subscribe to events, main character πβ
π¦ 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