]> gitweb.factorcode.org Git - factor.git/blob - basis/delegate/protocols/protocols.factor
Add HOOK-CONSULT: to delegate
[factor.git] / basis / delegate / protocols / protocols.factor
1 ! Copyright (C) 2007 Daniel Ehrenberg
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: assocs delegate deques io sequences sequences.private
4 sets ui.theme ;
5 IN: delegate.protocols
6
7 PROTOCOL: sequence-protocol
8 like new-sequence new-resizable nth nth-unsafe
9 set-nth set-nth-unsafe length set-length
10 lengthen ;
11
12 PROTOCOL: assoc-protocol
13 at* assoc-size >alist set-at assoc-clone-like
14 delete-at clear-assoc new-assoc assoc-like ;
15
16 PROTOCOL: deque-protocol
17 push-front* push-back* peek-front* peek-back* pop-front*
18 pop-back* delete-node deque-member?  clear-deque deque-empty? ;
19
20 PROTOCOL: set-protocol
21 adjoin ?adjoin in? delete ?delete set-like fast-set members
22 union intersect intersects? diff subset? set= duplicates
23 all-unique? null? cardinality clear-set ;
24
25 PROTOCOL: input-stream-protocol
26 stream-read1 stream-read-unsafe stream-read-partial-unsafe
27 stream-readln stream-read-until stream-contents* ;
28
29 PROTOCOL: output-stream-protocol
30 stream-flush stream-write1 stream-write stream-nl ;
31
32 PROTOCOL: theme-protocol
33 toolbar-background toolbar-button-pressed-background
34 menu-background menu-border-color status-bar-background
35 status-bar-foreground button-text-color
36 button-clicked-text-color line-color column-title-background
37 roll-button-rollover-border roll-button-selected-background
38 source-files-color errors-color details-color debugger-color
39 completion-color data-stack-color retain-stack-color
40 call-stack-color title-bar-gradient popup-color object-color
41 contents-color help-header-background
42 thread-status-stopped-background
43 thread-status-suspended-background
44 thread-status-running-background
45 thread-status-stopped-foreground
46 thread-status-suspended-foreground
47 thread-status-running-foreground error-summary-background
48 content-background text-color link-color title-color
49 heading-color snippet-color output-color
50 deprecated-background-color deprecated-border-color
51 warning-background-color warning-border-color
52 code-background-color code-border-color help-path-border-color
53 tip-background-color prompt-background-color dim-color
54 highlighted-word-color string-color stack-effect-color
55 vocab-background-color vocab-border-color field-border-color
56 editor-caret-color selection-color panel-background-color
57 focus-border-color labeled-border-color table-border-color ;