mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
Small edit to documentation.
This commit is contained in:
@@ -16,13 +16,11 @@
|
||||
type
|
||||
TEventArgs* = object of TObject ## Base object for event arguments
|
||||
## that are passed to callback functions.
|
||||
TEventHandler* = tuple[name: string, handlers: seq[proc(e:TEventArgs)]]
|
||||
#PEventHandler* = ref TEventHandler ## An eventhandler for an event.
|
||||
TEventHandler* = tuple[name: string, handlers: seq[proc(e:TEventArgs)]] ## An eventhandler for an event.
|
||||
|
||||
type
|
||||
TEventEmitter* = object {.pure, final.}
|
||||
TEventEmitter* = object {.pure, final.} ## An object that fires events and holds event handlers for an object.
|
||||
s: seq[TEventHandler]
|
||||
#PEventEmitter* = ref TEventEmitter ## An object that fires events and holds event handlers for an object.
|
||||
EInvalidEvent* = object of EInvalidValue
|
||||
|
||||
proc newEventHandler*(name: string): TEventHandler =
|
||||
|
||||
Reference in New Issue
Block a user