module AXOWidgets:This module allows easy creation of "graphical" widgetssig
..end
a virtual "interface" ( called generic_* )
with detailed comments on expected methods behaviour
a half virtual plugin ( called *_plugin )
a wrapper to be used to avoid code duplication in implementation
class virtual common :object
..end
class common_wrap :JSOO.obj ->
object
..end
widget
provides a complete set of methods for attributes
and style manipulation. As it is based on Dom/XHTML/CSS properties, one
should be familiar with concepts of , and the
such.type
position =
| |
Absolute |
| |
Fixed |
| |
Relative |
val string_of_position : position -> string
val position_of_string : string -> position
typecolor =
string
val rgb : int -> int -> int -> color
val hex : int -> int -> int -> color
val px_string : int -> string
val pct_string : int -> string
class virtual generic_widget :object
..end
class virtual widget_plugin :object
..end
class virtual generic_container :object
..end
class virtual container_plugin :object
..end
val body : container_plugin
module Button_click:AXOEvents.Make
(
sig
typev =
unit
val name :string
val name_modifier :string option
val destruct :'a -> unit
val default_value :unit option
end
)
class virtual generic_button :object
..end
class virtual button_plugin :bool ->
object
..end
module Dragg_n_drop_move:AXOEvents.Make
(
sig
typev =
int * int
val name :string
val name_modifier :string option
val destruct :JSOO.obj -> int * int
val default_value :'a option
end
)
module Dragg_n_drop_down:AXOEvents.Make
(
sig
typev =
unit
val name :string
val name_modifier :string option
val destruct :'a -> unit
val default_value :'a option
end
)
module Dragg_n_drop_up:AXOEvents.Make
(
sig
typev =
AXOWidgets.common
val name :string
val name_modifier :string option
val destruct :JSOO.obj -> AXOWidgets.common_wrap
val default_value :'a option
end
)
class shadow :?style:string -> JSOO.obj ->
object
..end
class virtual generic_dragg :object
..end
class virtual dragg_plugin :< activate : unit; deactivate : 'a; .. > ->
object
..end