add the get-autowrap-bitmap-width method to text%

original commit: 5052e8251871046767e1851d078b883b4d829693
This commit is contained in:
Robby Findler 2014-10-28 15:49:07 -05:00
parent 269e2f583c
commit 479772fbbb
2 changed files with 8 additions and 0 deletions

View File

@ -807,6 +807,12 @@ Returns @racket[#t] if the selection is currently auto-extending. See
}
@defmethod[(get-autowrap-bitmap-width) (and/c real? (not/c negative?))]{
Returns the width of the bitmap last passed to @method[text% set-autowrap-bitmap]
or @racket[zero?] if no bitmap has been passed to @method[text% set-autowrap-bitmap] or
if @racket[#f] was most recently passed.
}
@defmethod[(get-between-threshold)
(and/c real? (not/c negative?))]{

View File

@ -4953,6 +4953,8 @@
old)))
(def/public (get-autowrap-bitmap-width) wrap-bitmap-width)
;; ----------------------------------------
;; notifies the administrator that we need to be redrawn