package stk

  1. Overview
  2. Docs
On This Page
  1. Properties
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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 : ?delay:float -> ?propagate:bool -> bool -> unit
method autosize : bool
method set_autosize : ?delay:float -> ?propagate:bool -> 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.

method surface : Tsdl.Sdl.surface option

Return the (unscaled) image surface, if any.

OCaml

Innovation. Community. Security.