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