package stk
SDL-based GUI toolkit
Install
Dune Dependency
Authors
Maintainers
Sources
ocaml-stk-0.1.0.tar.bz2
md5=c334ffabde8b710f1eba6699db0f601a
sha512=7978e3f10bc196ee6177ded9ae0313a5ba65e1a74e501fbecbe5ebc216ca6ee7117deaff5bc4c414083a4a55851a81e5dedaa8d0a880ad72689b3f56f3b064f5
doc/stk/Stk/Textlog/index.html
Module Stk.Textlog
Source
A widget to display Logs
message.
Property "log_max_size"
so that log will not keep more characters than specified. Default is 30_000
.
Source
class textlog : ?class_:string option -> ?name:string option -> ?props:Props.t option ->
unit -> object ... end
The textlog
widgets to display log messages.
Source
val textlog :
?class_:string ->
?name:string ->
?props:Props.t ->
?theme:string ->
?maxsize:int ->
?pack:(Widget.widget -> unit) ->
unit ->
textlog
Convenient function to create a textlog
. max_size
can specified a value for max_size
property. theme
can specify a theme name to use. See Widget arguments for other arguments.
reporter textlog
creates a Logs.reporter
which will dispatch log messages according to the presence of Log.tag
in message tags: if present, the message is a Stk log message and will be displayed on stderr, else if will be displayed in the textlog
widget.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>