To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
val create : ?width:int -> ?height:int -> ?noscale:bool -> ?bg:Draw.color -> ?angle:float -> string -> t
create "image.jpg" will load the image
"image.jpg". The actual load occurs only once, on the first time the image widget is effectively displayed. The image is then stored in a texture. All Sdl_image image formats are supported.
The file "image.png" will be search in the current Theme directory. Absolute paths starting with "/" can also be used.
val create_from_svg : ?width:int -> ?height:int -> ?bg:Draw.color -> string -> t
Load an svg image. This requires the
Remark: With SDL_Image >= 2.0.2, one can use
create to load SVG files, but the size is not correctly handled (the image will be rendered at its 'internal SVG size', and then scaled, which may result in poor accuracy).