add line number interface documentation

original commit: 7f56e677f41798aaeb52affddc32e05729b7e4e1
This commit is contained in:
Jon Rafkind 2010-11-03 15:09:04 -06:00
parent a7e7bb6384
commit f21bdf599b

View File

@ -1164,6 +1164,24 @@
@defclass[text:searching% (text:searching-mixin text:backup-autosave%) ()]{}
@defclass[text:info% (text:info-mixin (editor:info-mixin text:searching%)) ()]{}
@definterface[text:line-numbers<%> ()]{
@defmethod*[(((show-line-numbers! (show boolean?)) void))]{
Enables or disables line number drawing.
}
@defmethod*[(((show-line-numbers?) boolean?))]{
Returns whether or not line drawing is enabled.
}
@defmethod*[(((set-line-numbers-color (color string?)) void?))]{
Sets the color of the line numbers.
}
}
@defmixin[text:line-numbers-mixin (text%) (text:line-numbers<%>)]{
@defmethod*[#:mode override (((on-paint) void))]{
@ -1180,6 +1198,11 @@
Returns whether or not line drawing is enabled.
}
@defmethod*[(((set-line-numbers-color (color string?)) void?))]{
Sets the color of the line numbers.
}
}
@(include-previously-extracted "main-extracts.ss" #rx"^text:")