Blame support/textvariable.mli

Packit bd2e5d
(***********************************************************************)
Packit bd2e5d
(*                                                                     *)
Packit bd2e5d
(*                 MLTk, Tcl/Tk interface of OCaml                     *)
Packit bd2e5d
(*                                                                     *)
Packit bd2e5d
(*    Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis    *)
Packit bd2e5d
(*               projet Cristal, INRIA Rocquencourt                    *)
Packit bd2e5d
(*            Jacques Garrigue, Kyoto University RIMS                  *)
Packit bd2e5d
(*                                                                     *)
Packit bd2e5d
(*  Copyright 2002 Institut National de Recherche en Informatique et   *)
Packit bd2e5d
(*  en Automatique and Kyoto University.  All rights reserved.         *)
Packit bd2e5d
(*  This file is distributed under the terms of the GNU Library        *)
Packit bd2e5d
(*  General Public License, with the special exception on linking      *)
Packit bd2e5d
(*  described in file LICENSE found in the OCaml source tree.          *)
Packit bd2e5d
(*                                                                     *)
Packit bd2e5d
(***********************************************************************)
Packit bd2e5d
Packit bd2e5d
(* $Id$ *)
Packit bd2e5d
Packit bd2e5d
(* Support for Tk -textvariable option *)
Packit bd2e5d
open Widget
Packit bd2e5d
open Protocol
Packit bd2e5d
Packit bd2e5d
type textVariable
Packit bd2e5d
      (* TextVariable is an abstract type *)
Packit bd2e5d
Packit bd2e5d
val create : ?on: 'a widget -> unit -> textVariable
Packit bd2e5d
      (* Allocation of a textVariable with lifetime associated to widget
Packit bd2e5d
         if a widget is specified *)
Packit bd2e5d
val set : textVariable -> string -> unit
Packit bd2e5d
      (* Setting the val of a textVariable *)
Packit bd2e5d
val get : textVariable -> string
Packit bd2e5d
      (* Reading the val of a textVariable *)
Packit bd2e5d
val name : textVariable -> string
Packit bd2e5d
      (* Its tcl name *)
Packit bd2e5d
Packit bd2e5d
val cCAMLtoTKtextVariable : textVariable -> tkArgs
Packit bd2e5d
      (* Internal conversion function *)
Packit bd2e5d
Packit bd2e5d
val handle : textVariable -> callback:(unit -> unit) -> unit
Packit bd2e5d
      (* Callbacks on variable modifications *)
Packit bd2e5d
Packit bd2e5d
val coerce : string -> textVariable
Packit bd2e5d
Packit bd2e5d
(*-*)
Packit bd2e5d
val free : textVariable -> unit