Small edit to documentation.
This commit is contained in:
parent
5209469fd7
commit
ecd62b955b
1 changed files with 2 additions and 4 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue