renoise.Views.MultiLineText
Shows multiple lines of text, auto-formatting and auto-wrapping paragraphs into lines. Size is not automatically set. As soon as the text no longer fits into the view, a vertical scroll bar will be shown.
by the user.
+--------------+-+ | Text, Bla 1 |+| | Text, Bla 2 | | | Text, Bla 3 | | | Text, Bla 4 |+| +--------------+-+
Properties
text : TextMultilineString
The text that should be displayed. Newlines (Windows, Mac or Unix styled) in the text can be used to create paragraphs.
paragraphs : TextParagraphs
A table of text lines to be used instead of specifying a single text line with newline characters like "text"
- Default: []
font : TextFontStyle
The style that the text should be displayed with.
style : TextBackgroundStyle
Default: "body"
visible : ViewVisibility
Set visible to false to hide a view (make it invisible without removing it). Please note that view.visible will also return false when any of its parents are invisible (when its implicitly invisible).
- Default: true
width : ViewDimension
The dimensions of a view has to be larger than 0. For nested views you can also specify relative size for example
vb:text { width = "80%"}
. The percentage values are relative to the view's parent size and will automatically update on size changes.
height : ViewDimension
The dimensions of a view has to be larger than 0. For nested views you can also specify relative size for example
vb:text { width = "80%"}
. The percentage values are relative to the view's parent size and will automatically update on size changes.
tooltip : ViewTooltip
A tooltip text that should be shown for this view on mouse hover.
- Default: "" (no tip will be shown)
views : renoise.Views.View
[]
READ-ONLY Empty for all controls, for layout views this contains the layout child views in the order they got added
Functions
scroll_to_last_line(self)
When a scroll bar is visible (needed), scroll the text to show the last line.
scroll_to_first_line(self)
When a scroll bar is visible, scroll the text to show the first line.
add_line(self, text : string
)
Append text to the existing text. Newlines in the text will create new paragraphs, just like in the "text" property.
clear(self)
Clear the whole text, same as multiline_text.text="".
add_child(self, child : renoise.Views.View
)
Add a new child view to this view.
remove_child(self, child : renoise.Views.View
)
Remove a child view from this view.
Local Aliases
TextBackgroundStyle
"body"
| "border"
| "strong"
-- Setup the text view's background: TextBackgroundStyle: | "body" -- simple text color with no background | "strong" -- stronger text color with no background | "border" -- text on a bordered background
TextFontStyle
"big"
| "bold"
| "italic"
| "mono"
| "normal"
-- The style that the text should be displayed with. TextFontStyle: | "normal" -- (Default) | "big" -- big text | "bold" -- bold font | "italic" -- italic font | "mono" -- monospace font
TextMultilineString
The text that should be displayed. Newlines (Windows, Mac or Unix styled) in the text can be used to create paragraphs.
TextParagraphs
string
[]
A table of text lines to be used instead of specifying a single text line with newline characters like "text"
- Default: []
ViewDimension
The dimensions of a view has to be larger than 0. For nested views you can also specify relative size for example
vb:text { width = "80%"}
. The percentage values are relative to the view's parent size and will automatically update on size changes.
ViewTooltip
A tooltip text that should be shown for this view on mouse hover.
- Default: "" (no tip will be shown)
ViewVisibility
Set visible to false to hide a view (make it invisible without removing it). Please note that view.visible will also return false when any of its parents are invisible (when its implicitly invisible).
- Default: true