package miaou-driver-sdl

  1. Overview
  2. Docs
Miaou SDL driver

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.5.2.tar.gz
md5=60a3b9f181f24572a06a9492532bfdda
sha512=fcc35a275066be2900e6201782faf47503076fa4640f08cf78067835a6f447b74613009e55b2ac799adb7ca46f1bffa261fc5971753f2cc3c6bef327511c7ef6

doc/miaou-driver-sdl.driver/Miaou_driver_sdl/Sdl_driver/index.html

Module Miaou_driver_sdl.Sdl_driverSource

Sourcemodule Logger_capability = Miaou_interfaces.Logger_capability
Sourcemodule Modal_manager = Miaou_core.Modal_manager
Sourcemodule Registry = Miaou_core.Registry
Sourcemodule Style_context = Miaou_style.Style_context
Sourcemodule Theme_loader = Miaou_style.Theme_loader
Sourcemodule Ttf = Tsdl_ttf.Ttf
Sourcemodule Sdl = Tsdl.Sdl
Sourcemodule Colors = Sdl_colors
Sourceval available : bool
Sourceval overlay_enabled : bool lazy_t
Sourcetype fps_tracker = {
  1. mutable frame_count : int;
  2. mutable last_time : float;
  3. mutable current_fps : float;
}
Sourceval create_fps_tracker : unit -> fps_tracker
Sourceval update_fps : fps_tracker -> unit
Sourcetype color = Colors.color
Sourcetype ansi_state = Colors.ansi_state
Sourcetype config = {
  1. font_path : string option;
  2. font_size : int;
  3. window_title : string;
  4. fg : color;
  5. bg : color;
  6. gradient : bool;
  7. scale : float;
  8. transition : [ `None | `Slide | `Fade | `Explode | `Random ];
}
Sourceval detect_display_scale : unit -> float option
Sourceval default_config : config
Sourceval font_candidates : string list
Sourceval pick_font_path : config -> (string, string) result
Sourceval sdl_fail : string -> string -> 'a
Sourceval register_sdl_ops : unit -> unit
Sourceval with_sdl : (unit -> 'a) -> 'a
Sourceval create_renderer : Sdl.window -> Sdl.renderer
Sourceval render_lines : Sdl.renderer -> Ttf.font -> fg:color -> bg:color -> char_w:int -> char_h:int -> ?clear:??? -> ?offset:??? -> ?present:??? -> string list -> unit
Sourceval shift_lines : string list -> int -> string list
Sourceval draw_background : Sdl.renderer -> config -> 'a -> int -> unit
Sourceval perform_transition : Sdl.renderer -> Ttf.font -> config -> int -> int -> from_lines:string list -> to_lines:string list -> size:LTerm_geom.size -> unit
Sourceval string_of_event_text : Tsdl.Sdl.event -> string option
Sourceval keyname_of_scancode : Tsdl.Sdl.scancode -> string option
Sourcetype next_action =
  1. | Refresh
  2. | Quit
  3. | Key of string
Sourceval poll_event : timeout_ms:int -> on_resize:(unit -> 'a) -> next_action
Sourceval render_page : (module Miaou_core.Tui_page.PAGE_SIG with type state = 's) -> 's Page_transition.Navigation.t -> LTerm_geom.size -> string
Sourceval run_with_sdl : (module Miaou_core.Tui_page.PAGE_SIG) -> config -> [ `Back | `Quit | `SwitchTo of string ]
Sourceval run : ?config:??? -> (module Miaou_core.Tui_page.PAGE_SIG) -> [ `Back | `Quit | `SwitchTo of string ]