Definition at line 31 of file text_wrapper.py.
◆ _break_word()
def smach_viewer.text_wrapper.TextWrapper._break_word |
( |
|
self, |
|
|
|
word, |
|
|
|
space_left |
|
) |
| |
|
private |
_break_word(word : string, space_left : int) -> (string, string)
Break line by unicode width instead of len(word).
Definition at line 81 of file text_wrapper.py.
◆ _handle_long_word()
def smach_viewer.text_wrapper.TextWrapper._handle_long_word |
( |
|
self, |
|
|
|
reversed_chunks, |
|
|
|
cur_line, |
|
|
|
cur_len, |
|
|
|
width |
|
) |
| |
|
private |
_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int)
Override original method for using self._break_word() instead of slice.
Definition at line 109 of file text_wrapper.py.
◆ _split()
def smach_viewer.text_wrapper.TextWrapper._split |
( |
|
self, |
|
|
|
text |
|
) |
| |
|
private |
_split(text : string) -> [string]
Override original method that only split by 'wordsep_re'.
This '_split' split wide-characters into chunk by one character.
Definition at line 93 of file text_wrapper.py.
◆ _wrap_chunks()
def smach_viewer.text_wrapper.TextWrapper._wrap_chunks |
( |
|
self, |
|
|
|
chunks |
|
) |
| |
|
private |
_wrap_chunks(chunks : [string]) -> [string]
Original _wrap_chunks use len() to calculate width.
This method respect to wide/fullwidth characters for width adjustment.
Definition at line 33 of file text_wrapper.py.
The documentation for this class was generated from the following file: