Index of values


A
absolute_coord [Ojw_position]

absolute_coord ?h ?v ~relative elt same as relative_coord, but instead of placing elt outside of relative, it place inside.

absolute_move [Ojw_position]

absolute_move ?h ?v ~relative elt same as absolute_coord, but instead of returning coordinates, it moves directly elt to the calculated coordinates.

active [Ojw_traversable_sigs.​T]
actives [Ojw_traversable_sigs.​T.​Event]
actives [Ojw_traversable_sigs.​T]

This event is triggered when an element is to active.

add_scrollbar [Ojw_scrollbar_sigs.​T]

This function adds a custom scrollbar to the element elt.

add_slider [Ojw_slider]

Add a slider to the given element.

alert [Ojw_alert_sigs.​T]

Provides behaviours of the alert class to an element.

alert [Ojw_log]

Create a JS alert message.

alert_int [Ojw_log]

Create a JS alert message with an int.

append_at [Ojw_color_picker]
as_dom_elt [Ojw_tools]

as_dom_elt elt f consider elt as an dom element.

assoc_remove [Ojw_pervasives.​List]

find_remove k l takes the first value from the list equal to k, and returns it (as the 'a).


B
button [Ojw_button_sigs.​T]

Provides behaviours of a basic button.

button_alert [Ojw_button_sigs.​T]

Provides behaviours of an alert button.

button_dyn_alert [Ojw_button_sigs.​T]

Provides behaviours of an dynamic alert button.


C
clear [Ojw_jsstorage.​JSSTORAGE]
client_bottom [Ojw_pervasives.​Size]
client_left [Ojw_pervasives.​Size]
client_right [Ojw_pervasives.​Size]
client_top [Ojw_pervasives.​Size]
closeable [Ojw_tools]
closeable_by_click [Ojw_popup_sigs.​T]

Alias to Ojw_alert_sigs.closeable_by_click

closeable_by_click [Ojw_button_sigs.​T]

Same as closeable_by_click from the module Ojw_alert

closeable_by_click [Ojw_alert_sigs.​T]

Provides the behaviour of automatically hide an alert if the element is clicked.

closeable_by_click [Ojw_tools]
cmp_coord [Ojw_event_tools]

Take two coordinates and return true if they are equal

completion__ [Ojw_completion_sigs.​T]

Provides behaviours of a completion widget.

create [Ojw_color_picker]
create [Ojw_hammer_swipe]

create swipe and fill with panes_list Swipe html element is derectly add into body Because it need to be in top level of body

create [Ojw_hookjs]

Add a hook to your page.

create [Ojw_swipejs]

Create a swipe from an dom node.

create_key [Ojw_jsstorage.​JSSTORAGE]

create_key name json_type

ctor [Ojw_active_set.​T]
ctor [Ojw_base_widget]
customEvent [Ojw_event]

D
default_parent [Ojw_dom.​Parent]
default_parent [Ojw_dom_sigs.​Parent]
disable [Ojw_active_set.​T]
disable_drag_and_drop [Ojw_event_tools]
disable_event [Ojw_event_tools]

Disable Dom_html.Event with stopping propagation during capture phase *

disable_zoom [Ojw_mobile_tools]
dispatchEvent [Ojw_event]
dropdown [Ojw_dropdown_sigs.​T]

Provides behaviours of dropdown menu.

dyn_alert [Ojw_alert_sigs.​T]

Provides behaviours of the dyn_alert class to an element.

dyn_popup [Ojw_popup_sigs.​T]

Specialization of a Ojw_alert.dyn_alert that shows a transparent background if with_background is set to true.


E
empty_options [Ojw_hookjs]
empty_options [Ojw_swipejs]
enable [Ojw_active_set.​T]
enable_event [Ojw_event_tools]

Enable Dom_html.Event with id given by disable_event *

enable_events [Ojw_event_tools]

F
find_remove [Ojw_pervasives.​List]

find_remove f l takes the first value from the list returning true, and returns it (as the 'a).


G
get [Ojw_jsstorage.​JSSTORAGE]

If storage does not existe, It launch failwith "Storage is not available"

getComputedStyle [Ojw_fun]
get_current_pane [Ojw_hammer_swipe]
get_document_size [Ojw_tools]
get_dragger_pct [Ojw_scrollbar_sigs.​T]

Return the position of the dragger in the bar in percent.

get_dragger_pos [Ojw_scrollbar_sigs.​T]

Return the position of the dragger.

get_full_height [Ojw_pervasives.​Size]
get_full_width [Ojw_pervasives.​Size]
get_item [Ojw_jsstorage.​JSSTORAGE]
get_local_mouse_ev_coord [Ojw_event_tools]

Similar to get_mouse_ev_coord.

get_local_slide_coord [Ojw_slide_event]

Based on get_local_mouse_ev_coord and get_local_touch_ev_coord

get_local_touch_ev_coord [Ojw_event_tools]
get_mouse_ev_coord [Ojw_event_tools]
get_name_key [Ojw_jsstorage.​JSSTORAGE]

get_name_key storage index

get_noopt_item [Ojw_jsstorage.​JSSTORAGE]

get_noopt_item storage key json_type default_value

get_number_of_slides [Ojw_swipejs]
get_position [Ojw_swipejs]
get_rgb [Ojw_color_picker]
get_screen_orientation [Ojw_tools]
get_screen_size [Ojw_tools]
get_size [Ojw_tools]
get_slide_coord [Ojw_slide_event]

Based on get_mouse_ev_coord and get_touch_ev_coord

get_timestamp [Ojw_tools]
get_touch_coord [Ojw_event_tools]
get_touch_ev_coord [Ojw_event_tools]

Similar to get_touch_coord.

get_value [Ojw_slider]

Return the value of the slider.


H
height [Ojw_pervasives.​Size]
height_to_bottom [Ojw_pervasives.​Size]

Compute the height of an element to the bottom of the page

hide [Ojw_alert_sigs.​T.​Event.​S]
hide [Ojw_alert_sigs.​T.​Event]
hide [Ojw_alert_sigs.​T]
hide_background [Ojw_popup_sigs.​T]

Internal background id hidden when a popup is triggered.

hide_navigation_bar [Ojw_mobile_tools]
hides [Ojw_alert_sigs.​T]

This events is triggered when the method hide is called.


I
id [Ojw_pervasives]
init [Ojw_hammer_swipe]
init [Ojw_hookjs]
init [Ojw_swipejs]

You need to initialize your swipe content with default values to allow future update

init_handler [Ojw_color_picker]
int_of_pxstring [Ojw_pervasives]

Convert an int into "%i px".

is_completed_by [Ojw_completion_f.​Utils]
iter [Ojw_pervasives.​Option]

iter f v apply f to v if v is not None.

iter_lwt [Ojw_pervasives.​Option]

iter_lwt is like iter but returns a Lwt value.


L
length [Ojw_jsstorage.​JSSTORAGE]
log [Ojw_log]

Log a message in the firebug console.

log_int [Ojw_log]

Log an int in the firebug console.

lwt_map [Ojw_pervasives.​Option]

lwt_map t f g If the thread has returned a value v, returns (f v).

lwt_scroll_to [Ojw_scrollbar_sigs.​T]

Scroll the scrollbar attached to elt to a point defined by scroll.


M
map [Ojw_pervasives.​Option]

map f v returns the application of f on the option v if v is not None, or None.

map_lwt [Ojw_pervasives.​Option]

map_lwt is like map but returns a Lwt value.

mouseslide [Ojw_slide_event]

First is html element where catch start event Second is start_func call at start event Third is move_func call at each move event Fourth is end event call at end event

mouseslides [Ojw_slide_event]

Same as mouseslide but catch all start event instead of only one


N
next [Ojw_hammer_swipe]
next [Ojw_swipejs]
nothing [Ojw_dom]

O
of_dom_elt [Ojw_dom.​Parent]
of_dom_elt [Ojw_dom.​T]
of_dom_elt [Ojw_dom_sigs.​Parent]
of_dom_elt [Ojw_dom_sigs.​T]
of_opt [Ojw_pervasives]

De-optize the value.

on_slide [Ojw_slider]

Replace the callback function done on slides.

outer_click [Ojw_alert_sigs.​T]
outer_clicks [Ojw_alert_sigs.​T]

This events is triggered when a click occurs outside of an alert box or outside of an element immune to out clicks.


P
popup [Ojw_popup_sigs.​T]

Specialization of a Ojw_alert.alert that shows a transparent background if with_background is set to true.

post_press [Ojw_button_sigs.​T]
post_presses [Ojw_button_sigs.​T]

This event is triggered after the button is pressed.

post_unpress [Ojw_button_sigs.​T]
post_unpresses [Ojw_button_sigs.​T]

This event is triggered after the button is unpressed.

pre_press [Ojw_button_sigs.​T]
pre_presses [Ojw_button_sigs.​T]

This event is triggered before the button is pressed.

pre_unpress [Ojw_button_sigs.​T]
pre_unpresses [Ojw_button_sigs.​T]

This event is triggered before the button is unpressed.

press [Ojw_button_sigs.​T.​Event]
press [Ojw_button_sigs.​T]
presses [Ojw_button_sigs.​T]

This event is triggered when the button is pressed.

prev [Ojw_hammer_swipe]
prev [Ojw_swipejs]
prevent_outer_clicks [Ojw_alert_sigs.​T]

Prevent outer clicks on the given element (make it immune to them).

pxstring_of_int [Ojw_pervasives]

Extract an int from a string of the form "%i px".


R
relative_coord [Ojw_position]

relative_coord ?h ?v ~relative elt try to calculate the coordinates of elt applying the directions h and v on it and using relative as a reference.

relative_move [Ojw_position]

relative_move ?h ?v ~relative elt same as relative_coord, but instead of returning coordinates, it moves directly elt to the calculated coordinates.

removeDiacritics [Ojw_fun]
remove_item [Ojw_jsstorage.​JSSTORAGE]

S
scroll_starts [Ojw_scrollbar_sigs.​T]

Add a function to the list of callbacks executed before a scroll.

scrolls [Ojw_scrollbar_sigs.​T]

Add a function to the list of callbacks executed after a scroll.

selected_cls [Ojw_traversable_sigs.​T.​Style]
set [Ojw_active_set.​T]
set_adaptative_height [Ojw_pervasives.​Size]

set_adaptative_height elt f will make the width of the element recomputed using f everytime the height of the window changes.

set_adaptative_width [Ojw_pervasives.​Size]

set_adaptative_width elt f will make the width of the element recomputed using f everytime the width of the window changes.

set_item [Ojw_jsstorage.​JSSTORAGE]
show [Ojw_alert_sigs.​T.​Event.​S]
show [Ojw_alert_sigs.​T.​Event]
show [Ojw_alert_sigs.​T]
show_background [Ojw_popup_sigs.​T]

Internal background is shown when a popup is triggered.

show_pane [Ojw_hammer_swipe]

show_pane t index

shows [Ojw_alert_sigs.​T]

This events is triggered when the method show is called.

slide_event [Ojw_slide_event]

First is start event Second is function which take move_func and end_func (partial slide_without_start) Third is html element where catch start event Fourth is start_func call at start event Fifth is move_func call at each move event Sixth is end_func call at end event

slide_events [Ojw_slide_event]

Same as slide_event but catch all start event instead of only one

slide_to [Ojw_swipejs]

Jump to a specific slide.

slide_without_start [Ojw_slide_event]
start [Ojw_swipejs]

Start motion.

subs_suffix [Ojw_pervasives]

Extract a suffix of a string.


T
to_alert [Ojw_alert_sigs.​T]

Tests if an element is an alert or not and returns it as a alert instance.

to_button [Ojw_button_sigs.​T]
to_button_alert [Ojw_button_sigs.​T]
to_button_dyn_alert [Ojw_button_sigs.​T]
to_dom_elt [Ojw_dom.​Parent]
to_dom_elt [Ojw_dom.​T]
to_dom_elt [Ojw_dom_sigs.​Parent]
to_dom_elt [Ojw_dom_sigs.​T]
to_dom_parent [Ojw_dom.​Parent]
to_dom_parent [Ojw_dom_sigs.​Parent]
to_dyn_alert [Ojw_alert_sigs.​T]

Tests if an element is an dyn_alert or not and returns it as a dyn_alert instance.

to_dyn_popup [Ojw_popup_sigs.​T]

Tests if an element is an alert or not and returns it as a dyn_popup instance.

to_popup [Ojw_popup_sigs.​T]

Tests if an element is an alert or not and returns it as a popup instance.

to_traversable [Ojw_traversable_sigs.​T]

Check if the given element is an instance of a traversable widget.

touch_or_mouse_slide [Ojw_slide_event]

Same as mouseslide or touchslide but handle the both

touch_or_mouse_slides [Ojw_slide_event]

Same as touch_or_mouse_slide but catch all event instead of only the first

touchslide [Ojw_slide_event]

Same as mouseslide but with touchevent

touchslides [Ojw_slide_event]

Same as mouseslides but with touchevent

traversable [Ojw_traversable_sigs.​T]

Provides the behaviour of listening keys when the element is traversable.

traversable_cls [Ojw_traversable_sigs.​T.​Style]
traversable_elt_cls [Ojw_traversable_sigs.​T.​Style]

U
uniq [Ojw_pervasives.​List]

Remove duplicates in a sorted list

unpress [Ojw_button_sigs.​T.​Event]
unpress [Ojw_button_sigs.​T]
unpresses [Ojw_button_sigs.​T]

This event is triggered when the button is unpressed.

update [Ojw_scrollbar_sigs.​T]

Update the scrollbar.


W
width [Ojw_pervasives.​Size]
width_height [Ojw_pervasives.​Size]