package stk

  1. Overview
  2. Docs
SDL-based GUI toolkit

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-stk-0.1.0.tar.bz2
md5=c334ffabde8b710f1eba6699db0f601a
sha512=7978e3f10bc196ee6177ded9ae0313a5ba65e1a74e501fbecbe5ebc216ca6ee7117deaff5bc4c414083a4a55851a81e5dedaa8d0a880ad72689b3f56f3b064f5

doc/stk/Stk/Text/class-status/index.html

Class Text.statusSource

A status is a label where messages can be stacked. Only the message at the top of the stack is displayed. Each message has an id, which can be used to remove the message even if not on top of the stack.

inherit label
method push : string -> Status_msg_id.t

s#push msg pushes new message msg and returns message id.

method pop : unit

v#pop pops message from the stack. If the stack is not empty, then the new message on top is displayed.

method remove : Status_msg_id.t -> unit

v#remove id removes message with given id from the stack.

method remove_all : unit

Removes all messages.

method flash : ?delay:int -> string -> unit

flash ?delay msg pushes msg to the stack and removes it after a given delay in seconds (default is 4).

OCaml

Innovation. Community. Security.