24.17 text:1-pixel-tab-snip%
Superclass: tab-snip%
This class re-uses the implementation of
tab-snip% to implement a string snip that is always one pixel
high.
See also
text:1-pixel-string-snip% for a similar extension to the
string-snip%class.
This snip is used in conjunction with the
frame:delegate<%> and
text:delegate<%> interfaces.
(make-object text:1-pixel-tab-snip%->allocsizes)text:1-pixel-tab-snip%object
allocsize=0: exact non-negative integer
s: stringCreates a snip for a single tab, though the tab is initially empty.
Normally, a single tab is inserted into a
tab-snip%object using theinsertmethod.The tab's content is not drawn, through it is used when determining the size of a single character in editors where tabbing is determined by the character width (see
set-tabs); if the content is a single tab character (the normal case), then the average character width of snip's font is used as the tab's width.
Methods
copy
draw
get-extent
split
All Methods
adjust-cursor from snip%
blink-caret from snip%
can-do-edit-operation? (augmentable only) from snip%
copy from text:1-pixel-tab-snip%
overrides copy from snip%
do-edit-operation from snip%
draw from text:1-pixel-tab-snip%
overrides draw from snip%
find-scroll-step from snip%
get-admin from snip%
get-count from snip%
get-extent from text:1-pixel-tab-snip%
overrides get-extent from snip%
get-flags from snip%
get-num-scroll-steps from snip%
get-scroll-step-offset from snip%
get-snipclass from snip%
get-style from snip%
get-text from snip%
get-text! from snip%
insert from string-snip%
is-owned? from snip%
match? from snip%
merge-with from snip%
next from snip%
on-char from snip%
on-event from snip%
own-caret from snip%
partial-offset from snip%
previous from snip%
read from string-snip%
release-from-owner from snip%
resize from snip%
set-admin from snip%
set-count from snip%
set-flags from snip%
set-snipclass from snip%
set-style from snip%
set-unmodified from snip%
size-cache-invalid from snip%
split from text:1-pixel-tab-snip%
overrides split from snip%
write from snip%