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/Image/class-image/index.html

Class Image.imageSource

A widget to display an image.

Properties

method width : int option
method set_width : int -> unit
method height : int option
method set_height : int -> unit
method keep_ratio : bool
method set_keep_ratio : bool -> unit
method image_size : (int * int) option

Returns orignal (width, height) of image, if an image is loaded.

method load_rw : Tsdl.Sdl.rw_ops -> unit

Load image from rw operations. Beware that this may be a io-blocking operation.

method load_file : string -> unit

Load image from file. Beware that this is a io-blocking operation.

OCaml

Innovation. Community. Security.

On This Page
  1. Properties