A | |
| activate [Bogue.Mailbox] | activate mbx handler sets the owner widget ready to receive messages,
and each received message will be handled by the handler function.
|
| activate [Bogue.Text_input] |
Warning: two Text_input widgets cannot be active at the same time.
|
| active_widgets [Bogue.Radiolist] | |
| adaptive_fps [Bogue.Time] |
Create helper functions to help controlling the frame rate of the graphics
loop.
|
| add [Bogue.Sdl_area] | add area ~name f adds the arbitrary command f to the render queue.
|
| add [Bogue.Selection] | |
| add [Bogue.Timeout] | add delay action will execute action () (in the main thread) after the
delay of delay ms.
|
| add_bar [Bogue.Menu] |
Creation of a menu bar in the
dst layout, with drop-down submenus.
|
| add_connection [Bogue.Widget] |
Registers the connection with the widget.
|
| add_element [Bogue.Sdl_area] |
Append the element to the end of the command queue.
|
| add_get [Bogue.Sdl_area] |
Similar to
Sdl_area.add, but returns the corresponding Sdl_area.draw_element.
|
| add_ignore [Bogue.Timeout] |
Same as
add except that this does not return the Timeout element.
|
| add_screen [Bogue.Popup] |
Add a screen on top of the layout.
|
| add_shortcut [Bogue.Main] | |
| add_translation [Bogue.I18n.ContextInit] | add_translation locale text translation will declare the string
translation to be the translation of the string text within the
current context and for the given locale.
|
| animate_alpha [Bogue.Layout] | |
| animate_angle [Bogue.Layout] | |
| animate_h [Bogue.Layout] | |
| animate_w [Bogue.Layout] | |
| animate_x [Bogue.Layout] |
Assign an Avar to the layout x position.
|
| animate_y [Bogue.Layout] | |
| apply [Bogue.Avar] | apply f v creates a new Avar by composing with f; the old Avar v
is still active
|
| attach [Bogue.Popup] |
Generic modal type popup
|
| auto_scale [Bogue.Layout] |
Set the layout to automatically scale its inner rooms when the layout size
is modified.
|
B | |
| bar [Bogue.Menu] |
Return a menu layout that will be installed with
Menu.add_bar into the top
house at startup.
|
| basedir [Bogue.File] |
Return the full path of the currently displayed directory.
|
| black [Bogue.Draw] | |
| blue [Bogue.Draw] | |
| bold [Bogue.Text_display] | |
| box [Bogue.Widget] |
Create a Box widget, which simply displays a rectangle, optionally with
rounded corners and drop shadow.
|
| button [Bogue.Widget] | |
| button_pos [Bogue.Mouse] | |
| buttons_down [Bogue.Trigger] |
A list of events containing the mouse_button_down event, and the
finger_down event.
|
| buttons_up [Bogue.Trigger] |
A list of events containing the mouse_button_up event, and the
finger_up event.
|
C | |
| cache [Bogue.Sdl_area] |
This will insert a special command in the queue that will save the texture
obtained at that point, and clear all previous commands in the
queue.
|
| cancel [Bogue.Timeout] |
Cancel the Timeout.
|
| cancel [Bogue.I18n.Popup] | |
| cancel [Bogue.I18n.File] | |
| change_volume [Bogue.Mixer] |
Multiply sound intensity by a float factor
|
| check_box [Bogue.Widget] | |
| check_box_with_label [Bogue.Widget] | let b,l = check_box_with_label text creates a check box b, a label
l, and connect them so that clicking on the text will also act on the
check box.
|
| circle [Bogue.Draw] | circle renderer ~width ~color ~radius ~x ~y draws a circle with given
line thickness, centered at (x,y), with given radius.
|
| claim_keyboard_focus [Bogue.Layout] | |
| clear [Bogue.Mailbox] | |
| clear [Bogue.Sdl_area] |
Clear the area (this removes all commands from the render queue).
|
| clear_cache [Bogue.Sdl_area] |
Clear the graphics cache generated by the
Sdl_area.cache command.
|
| close [Bogue.Mixer] | |
| close [Bogue.I18n.Popup] | |
| close [Bogue.I18n.File] | |
| color_bg [Bogue.Layout] |
Construct a background from an RGBA color.
|
| color_bg [Bogue.Style] | |
| connect [Bogue.Widget] | connect source target action triggers creates a connection from the
source widget to the target widget, but does not register it (this
may change in the future...
|
| connect_main [Bogue.Widget] |
Alias for
connect ~priority:Main.
|
| containing_widget [Bogue.Layout] |
Search for the room containing the widget, if any.
|
| continue [Bogue.I18n.File] | |
| copy [Bogue.I18n.Menu] | |
| create [Bogue.Main] |
Create a
board from a list of layouts and connections.
|
| create [Bogue.Window] |
Create a window from the given layout.
|
| create [Bogue.Table] |
Create a table by specifying its list of columns; in each column, the
entries can be arbitrary layouts.
|
| create [Bogue.Select] | create string_array i creates a select box with preselected entry
i.
|
| create [Bogue.Menu] |
Generic menu creation, inserted in the
dst layout.
|
| create [Bogue.Tabs] | |
| create [Bogue.Long_list] |
Create a long list through the function
generate which maps any index i
to the ieth element (layout) of the list.
|
| create [Bogue.Snapshot] |
Should be called from the main thread only.
|
| create [Bogue.Mailbox] |
Create an empty mailbox which will receive messages of type
'a.
|
| create [Bogue.Sdl_area] |
Create an empty SDL area.
|
| create [Bogue.Box] | |
| create [Bogue.Check] | |
| create [Bogue.Button] |
The
action parameter is executed (with the current button state as
argument) just after the button state is modified by mouse clicking or
keyboard (on button up or key up).
|
| create [Bogue.Label] |
Create a new
Label.t.
|
| create [Bogue.Style] | |
| create [Bogue.Image] | create "image.jpg" will load the image "image.jpg".
|
| create [Bogue.Avar] |
Generic Avar creation.
|
| create [Bogue.Tvar] | |
| create [Bogue.Var] | create v returns a Var with initial value v.
|
| create_from_svg [Bogue.Image] |
Load an svg image.
|
| create_layout [Bogue.Long_list] |
Similar to
create but only returns the layout.
|
| create_mixer [Bogue.Mixer] | create devname creates the mixer an opens the sound device.
|
| cyan [Bogue.Draw] | |
D | |
| dark_grey [Bogue.Draw] | |
| darker [Bogue.Draw] | |
| debug [Bogue.Utils] | |
| debug_board [Bogue.Utils] | |
| debug_code [Bogue.Utils] |
Logical ored of
!debug with debug flags (below) controls the amount
of debuging.
|
| debug_custom [Bogue.Utils] | |
| debug_error [Bogue.Utils] | |
| debug_event [Bogue.Utils] | |
| debug_graphics [Bogue.Utils] | |
| debug_io [Bogue.Utils] | |
| debug_memory [Bogue.Utils] | |
| debug_thread [Bogue.Utils] | |
| debug_warning [Bogue.Utils] | |
| default [Bogue.Utils] | default o v is the same as Option.value o ~default:v.
|
| delay [Bogue.File.Monitor] |
Return the delay (in seconds) between two polls.
|
| destroy [Bogue.Window] |
Ask Bogue to destroy the window.
|
| destroy_window [Bogue.Layout] |
Emit the destroy_window event to ask Bogue to destroy the SDL window
containing the layout.
|
| dialog [Bogue.File] |
Use this function if you need unusual combinations of options.
|
| disable [Bogue.Mailbox] | |
| disable [Bogue.Sdl_area] |
Mark an element for skipping its execution.
|
| disable_resize [Bogue.Layout] |
This makes sure that nothing is executed when someone tries to resize the
layout (that is, when the size of the layout's house changes).
|
| do_option [Bogue.Utils] | do_option o f is the same as Option.iter f o.
|
| draw_circle [Bogue.Sdl_area] | draw_circle c ~color ~thick ~radius (x0, y0) draws a circle of the given
line thickness and color inside the disc of center coordinates
(x0, y0) and given radius.
|
| draw_line [Bogue.Sdl_area] | draw_line c ~color ~thick (x1, y1) (x2, y2) draws a line of given
color and thickness from point (x1, y1) to point (x2, y2).
|
| draw_rectangle [Bogue.Sdl_area] | draw_rectangle c ~color ~thick ~w ~h x0 y0 draws a rectangle of the
given line thickness inside the box of top-left coordinates (x0,, width w and height h.
|
| drawing_size [Bogue.Sdl_area] |
Size in physical pixels of the target SDL texture on which you can
draw.
|
E | |
| edit [Bogue.I18n.Menu] | |
| empty [Bogue.Layout] |
An empty layout can reserve some space without stealing focus.
|
| empty [Bogue.Widget] |
Create a widget that does not display anything but still gets focus and
reacts to events.
|
| empty [Bogue.Style] | |
| empty [Bogue.Selection] | |
| enable [Bogue.Mailbox] | |
| enable [Bogue.Sdl_area] |
See
Sdl_area.disable.
|
| enter_path [Bogue.I18n.File] | |
| event_kind [Bogue.Trigger] |
Union of
Trigger.sdl_event and Trigger.bogue_event
|
| example [Bogue.Text_display] | |
| exit_on_escape [Bogue.Main] |
The
exit_on_escape shortcut will raise the Main.Exit exception upon
pressing the Escape key.
|
F | |
| fade_in [Bogue.Layout] |
Animate the alpha channel of the layout.
|
| fade_out [Bogue.Layout] |
See
Layout.fade_in.
|
| filename [Bogue.File] | |
| fill_circle [Bogue.Sdl_area] | |
| fill_rectangle [Bogue.Sdl_area] | |
| find_color [Bogue.Draw] |
Convert a string of the form
"grey" or "#FE01BC" to a rgb code
(r,g,b).
|
| find_share [Bogue.Theme] | find_share app file returns a guessed location for your application
share directory (if it exists), for instance
/usr/local/share/my_app.
|
| finger_pos [Bogue.Mouse] | |
| first [Bogue.Selection] | |
| fit_content [Bogue.Layout] |
Adapt the size of the layout (and their houses) to the disposition of the
contained rooms.
|
| fix_content [Bogue.Layout] |
Disable automatic resizing of the rooms inside this layout.
|
| flat [Bogue.Layout] |
Create a horizontal arrangement from a list of rooms.
|
| flat_of_w [Bogue.Layout] |
Horizontal arrangement of widgets.
|
| fold [Bogue.Selection] | |
| follow_mouse [Bogue.Layout] | |
| font_from_file [Bogue.Label] |
Define a font by specifying a filename of a TTF file.
|
| fromto [Bogue.Avar] | fromto x1 x2 creates a integer Avar.t with initial value x1 and, as
time elapses, moves continuously to x2, with a final slowdown.
|
| fromto_unif [Bogue.Avar] |
Similar to
Avar.fromto but with uniform speed (no slowdown).
|
| full_height [Bogue.Space] | |
| full_width [Bogue.Space] |
This will set the width of the room (layout) in order to occupy the whole
width of its house.
|
G | |
| get [Bogue.Avar] |
Start the animation (if necessary) and compute the current value of the
variable.
|
| get [Bogue.Tvar] | |
| get [Bogue.Var] | |
| get_box [Bogue.Widget] | |
| get_button [Bogue.Widget] | |
| get_check [Bogue.Widget] | |
| get_content [Bogue.Layout] | |
| get_empty [Bogue.Widget] | |
| get_font_path_opt [Bogue.Theme] | get_font_path file returns an absolute path for the given TTF file, if
found.
|
| get_frame [Bogue.Main] |
Number of displayed frames since startup.
|
| get_image [Bogue.Widget] | |
| get_index [Bogue.Radiolist] | |
| get_label [Bogue.Widget] | |
| get_layout [Bogue.File] |
Return the layout containing the whole file dialog except for the "select"
and "cancel" buttons.
|
| get_layout [Bogue.Table] |
Use this layout to display your table.
|
| get_layout [Bogue.Long_list] | |
| get_layout [Bogue.Ti_validate] | |
| get_locales [Bogue.I18n] |
Return the list of preferred locales as detected from the user's OS.
|
| get_max [Bogue.Slider] | |
| get_monitor_refresh_rate [Bogue.Main] | get_monitor_refresh_rate board returns the monitor refresh rate, for the
monitor containing board.
|
| get_oldx [Bogue.Layout] |
Return the last computed value for the relative x position of the
layout.
|
| get_oldy [Bogue.Layout] | |
| get_path [Bogue.Theme] | get_path file returns an absolute path for accessing the given file
using the rules described above, except if the
file is not found, in which case the string file is returned unchanged,
with the hope that it corresponds to a file in the current
directory.
|
| get_physical_size [Bogue.Layout] |
multiplies
get_size by the Theme scaling factor.
|
| get_rooms [Bogue.Layout] | |
| get_scroll [Bogue.Long_list] |
Return the scroll percentage of the Long list, between 0 and 1.
|
| get_sdl_area [Bogue.Widget] | |
| get_selected [Bogue.File] |
Return the (alphabetically sorted) list of selected files or
directories.
|
| get_selection [Bogue.Table] |
Which rows were selected by the user.
|
| get_shortcut [Bogue.Main] | |
| get_size [Bogue.Layout] | get_size l is equivalent to (width l, height l)
|
| get_slider [Bogue.Widget] | |
| get_state [Bogue.Widget] |
Query a boolean state.
|
| get_status [Bogue.Ti_validate] | |
| get_style [Bogue.Box] | |
| get_text [Bogue.Ti_validate] | |
| get_text [Bogue.Widget] |
Return the text of the widget.
|
| get_text_display [Bogue.Widget] | |
| get_text_input [Bogue.Ti_validate] | |
| get_text_input [Bogue.Widget] | |
| get_texture [Bogue.Sdl_area] | |
| get_window_pos [Bogue.Layout] |
Return the window position within the desktop, in physical pixels.
|
| gettext [Bogue.I18n.ContextInit] | gettext text tries to return the translation of the text string into
the user's preferred language, in the current context.
|
| gettext_opt [Bogue.I18n.ContextInit] |
Similar to
gettext but returns None if the translation
cannot be found.
|
| getx [Bogue.Layout] |
Compute the relative x position of the room with respect to its house,
using animations if any.
|
| gety [Bogue.Layout] | |
| go [Bogue.Utils] |
Transform a
result into a standard value, or fail with an error.
|
| gradient [Bogue.Style] | |
| green [Bogue.Draw] | |
| grey [Bogue.Draw] | |
H | |
| has_element [Bogue.Sdl_area] |
Check whether the element belongs to the command queue.
|
| has_resident [Bogue.Layout] | |
| height [Bogue.Layout] | |
| hfill [Bogue.Space] |
When used in a
Layout.flat structure, this special empty layout will
automatically expand in order to fill the available width in the parent
house.
|
| hgradient [Bogue.Style] | |
| hide [Bogue.Layout] |
See
Layout.show.
|
| hide_window [Bogue.Layout] |
Hide the window containing the layout.
|
| hint [Bogue.Ti_validate.Email] | |
| html [Bogue.Widget] |
Display basic html text by interpreting the following tags:
<em>,</em>, and also a color
selector with <font color="???">, </font>.
|
I | |
| icon [Bogue.Widget] |
Create a Label widget with a
FontAwesome icon.
|
| icon [Bogue.Label] |
Create a
Label.t using the name of a
FontAwesome symbol.
|
| image [Bogue.Widget] |
Load image file.
|
| image_bg [Bogue.Style] | |
| image_copy [Bogue.Widget] |
Return a new "Image" widget linked to the same image (same underlying
Image.t, hence same texture.)
|
| image_from_svg [Bogue.Widget] |
Requires
rsvg.
|
| imax [Bogue.Utils] | imax a b returns max(a, b).
|
| imin [Bogue.Utils] | imin a b returns min(a, b).
|
| info [Bogue.Popup] |
Add to the layout a modal popup with a text and a close button.
|
| init [Bogue.Mixer] |
Initialize SDL audio.
|
| inside [Bogue.Layout] | |
| intersect [Bogue.Selection] |
Not tail-recursive
|
| invert [Bogue.Selection] | invert ~first ~last sel returns a selection containing all integers not
selected in sel, withing the range [first, last].
|
| is_empty [Bogue.Selection] | |
| is_pressed [Bogue.Button] | |
| is_shown [Bogue.Layout] | |
| is_valid [Bogue.Ti_validate.Email] | |
| italic [Bogue.Text_display] | |
| iter [Bogue.Selection] | |
| iter_unload_textures [Bogue.Layout] |
Use this to free the textures stored by the layout (and its children) for
reducing memory.
|
K | |
| keep_bottom [Bogue.Space] | |
| keep_right [Bogue.Space] | |
| key_down [Bogue.Trigger] |
Same as Tsdl.Sdl.Event.key_down
|
| key_up [Bogue.Trigger] |
Same as Tsdl.Sdl.Event.key_up
|
L | |
| label [Bogue.Widget] |
Create a Label widget with a one-line text.
|
| label_color [Bogue.Draw] | |
| last [Bogue.Selection] | |
| layout [Bogue.Radiolist] |
The layout to display the radiolist.
|
| layout_down [Bogue.Print] |
Print a layout with all its rooms and subrooms (children).
|
| layout_error [Bogue.Print] |
Print a message to stderr and dump the top_house structure to a temporary
file.
|
| layout_up [Bogue.Print] |
Print the layout node and all the rooms (houses, or parents) in which it
is contained.
|
| let@ [Bogue.File] | ( let@ ) f x is just f x .
|
| let@ [Bogue.Utils] | |
| lighter [Bogue.Draw] | |
| line [Bogue.Draw] | |
| load_chunk [Bogue.Mixer] |
Load a WAV file.
|
| lock [Bogue.Layout] | |
| ls [Bogue.File.Monitor] | ls m returns the list of files watched by the monitor m when the
last *modified function was called.
|
| lstat_opt [Bogue.File] | |
M | |
| magenta [Bogue.Draw] | |
| make [Bogue.Main] |
Similar to
Main.of_layouts.
|
| make [Bogue.Ti_validate] |
Return a layout containing a Text Entry and a Validity indicator; also
return a function to examine the validity of the last user entry.
|
| make_clip [Bogue.Layout] |
Clip a layout inside a smaller container and make it scrollable, and
optionally add a scrollbar widget.
|
| make_context [Bogue.I18n] |
Create a new module for using the given context.
|
| make_hfill [Bogue.Space] | |
| make_sdl_windows [Bogue.Main] |
This is only useful if you have your own graphics loop, and do not use
Main.run.
|
| make_vfill [Bogue.Space] |
Like
Space.hfill, but applies to the specified layout instead of creating an
empty one.
|
| map_option [Bogue.Utils] | map_option o f is the same as Option.map f o.
|
| map_text [Bogue.Widget] | map_text f is a Widget.action that replaces the text of the second widget
by f applied to the text of the first widget.
|
| maximize_width [Bogue.Window] |
See remarks in
Window.set_size.
|
| mem [Bogue.Selection] | |
| min_height [Bogue.Table] |
Same remark.
|
| min_width [Bogue.Table] |
Hint for minimum width of the table layout; it's up to the user to
enforce this.
|
| mk_border [Bogue.Style] |
Note: currently, a border with positive
radius is not compatible with a
transparent background.
|
| mk_line [Bogue.Style] | |
| mk_shadow [Bogue.Style] | |
| modified [Bogue.File.Monitor] |
Return three lists of file (or directory) names that have been modified
since last call of this function or of
was_modified:
|
| modified [Bogue.I18n.File] | |
| mouse_at_rest [Bogue.Trigger] |
Triggered when the mouse did not move for a while.
|
| mouse_enter [Bogue.Trigger] |
The
mouse_enter event is triggered when the pointer (mouse motion, or
finger touch -- but not finger drag) enters a new layout.
|
| mouse_leave [Bogue.Trigger] |
Similar to
Trigger.mouse_enter, when the pointer leaves the layout.
|
| mouse_over [Bogue.Widget] | |
N | |
| name [Bogue.I18n.File] | |
| nice_delay [Bogue.Trigger] | nice_delay ev t Wait during a delay (t seconds), but quit anyway when
Trigger.should_exit ev is true.
|
| no [Bogue.I18n.Popup] | |
| no_selection [Bogue.I18n.File] | |
| none [Bogue.Draw] | none = (0,0,0,0) is completely transparent black.
|
| normal [Bogue.Text_display] | |
| now [Bogue.Time] |
Time elapsed from the initialization of SDL (roughly, since the start of
your program).
|
O | |
| of_array [Bogue.Table] |
Create a table from an array of rows, each row being a string
array.
|
| of_bg [Bogue.Style] | |
| of_border [Bogue.Style] | |
| of_layout [Bogue.Main] |
Similar to
Main.of_layout but with only one layout.
|
| of_layouts [Bogue.Main] |
Similar to
Main.create.
|
| of_list [Bogue.Table] |
Create a table from a list of rows, each row being a string list.
|
| of_list [Bogue.Selection] | |
| of_regexp [Bogue.Ti_validate] |
Same as
Ti_validate.make, with a validator obtained from a regular expression via
Ti_validate.regexp_validator.
|
| of_shadow [Bogue.Style] | |
| of_widgets [Bogue.Radiolist] | |
| of_windows [Bogue.Main] |
Synonym for
Main.create.
|
| on_button_release [Bogue.Widget] |
Similar to
Widget.on_release but specialised to button widgets.
|
| on_click [Bogue.Widget] |
Uses
priority=Main
|
| on_close [Bogue.Window] |
Modify the
on_close parameter of Window.create.
|
| on_release [Bogue.Widget] | on_release ~release:f w registers on the widget w the action f,
which will be executed when the mouse button is released on this widget.
|
| on_resize [Bogue.Layout] | on_resize room f will execute f () upon resizing the room's house (or
the room's window, in case the room is the top house, see Layout.top_house),
in addition to the already registered resize functions.
|
| on_unload [Bogue.Empty] | |
| one_button [Bogue.Popup] |
Add to
dst the given layout and one button with the button
string.
|
| one_dir_selected [Bogue.I18n.File] | |
| one_file_selected [Bogue.I18n.File] | |
| one_step [Bogue.Main] |
This is only useful if you have your own graphics loop, and do not use
Main.run.
|
| opaque [Bogue.Draw] | |
| opaque_bg [Bogue.Layout] |
Construct a background from an RGB (ie non-transparent) color.
|
| opaque_bg [Bogue.Style] | |
| open_ [Bogue.I18n.Menu] | |
| open_ [Bogue.I18n.File] | |
| open_dir [Bogue.I18n.File] | |
| oscillate [Bogue.Layout] | |
| oscillate [Bogue.Avar] | oscillate amplitude x0 will oscillate with the given amplitude around
the initial value x0
|
P | |
| page [Bogue.Text_display] | |
| pale [Bogue.Draw] | |
| pale_grey [Bogue.Draw] | |
| para [Bogue.Text_display] | |
| paragraphs_of_string [Bogue.Text_display] | |
| paste [Bogue.I18n.Menu] | |
| path [Bogue.File.Monitor] |
Return the monitored path.
|
| pause [Bogue.Mixer] | |
| pi [Bogue.Utils] | |
| play_chunk [Bogue.Mixer] |
Play chunk on the desired track number.
|
| pointer_motion [Bogue.Trigger] |
A list of events containing the mouse_motion event, and the finger_motion
event.
|
| pointer_pos [Bogue.Sdl_area] |
Position of the pointer (mouse or touchscreen that has generated the
event) in physical pixels, with respect to the top-left corner of the
Sdl_area.
|
| pointer_pos [Bogue.Mouse] |
Return the pointer current position.
|
| pos [Bogue.Mouse] |
Get current mouse position.
|
| printd [Bogue.Utils] |
For instance
printd debug_warning "The value x=%u is too big" x will
print a message in the console only if the Utils.debug variable contains the
debug_warning flag.
|
| progress [Bogue.Avar] | progress v is a float in [0,1] giving the percentage of the animation
when the last v.value was computed.
|
| protect_fn [Bogue.Var] | |
| push [Bogue.Update] |
Register a widget for being updated (at next frame) by the main loop.
|
| push [Bogue.Sync] | push action registers the action to be executed by the mainloop at the
start of the next frame, or at a subsequent frame if the queue is already
large.
|
| push_close [Bogue.Layout] |
Emit the close-window event to the window containing the layout, as if the
user clicked on the close button.
|
| push_quit [Bogue.Trigger] |
Send the SDL_QUIT event, as if the user clicked on the close button of the
last existing window.
|
Q | |
| quit [Bogue.Main] |
Use this to close SDL windows and cleanup memory, after
Main.run has
returned.
|
| quit [Bogue.Draw] |
Cleanup and quit SDL.
|
R | |
| random_color [Bogue.Draw] | |
| range [Bogue.Selection] | |
| raw [Bogue.Text_display] | |
| rectangle [Bogue.Draw] | rectangle renderer ~color ~thick ~w ~h ~x ~y draws a rectangle with
given line thickness.
|
| red [Bogue.Draw] | |
| reflat [Bogue.Layout] |
Adjust an existing layout to arrange its rooms in a "flat" fashion, as if
they were created by
Layout.flat.
|
| refresh_custom_windows [Bogue.Main] |
Ask the GUI to refresh (ie.
|
| regexp_validator [Bogue.Ti_validate] |
Construct a validator function from a regular expression.
|
| remove [Bogue.Selection] | |
| remove_connection [Bogue.Widget] |
Unregister the connection.
|
| remove_element [Bogue.Sdl_area] |
Remove the
Sdl_area.draw_element from the command queue.
|
| remove_option [Bogue.Utils] |
Like
Option.get.
|
| remove_shortcut [Bogue.Main] | |
| remove_trigger [Bogue.Widget] |
Remove all the connections from the given widget that respond to the given
trigger (=event)
|
| replace [Bogue.Text_display] | replace ~by:t2 t1 replaces the text content of t1 by the one of t2.
|
| replace_room [Bogue.Layout] |
Replace
room by by inside its "house" in lieu and place of the initial
room.
|
| reset [Bogue.Button] | |
| reset [Bogue.Avar] | |
| resident [Bogue.Layout] |
Create a layout (=room) from a single Widget (=resident).
|
| resize_keep_margins [Bogue.Layout] |
When asked to resize, the layout will keep the initial 4 margins with
respect to its house.
|
| retower [Bogue.Layout] | |
| rgba_of_int32 [Bogue.Draw] | |
| rich_text [Bogue.Widget] | |
| room_margin [Bogue.Theme] | |
| rotate [Bogue.Layout] |
Rotate all widgets inside the layout around their respective centers.
|
| round [Bogue.Utils] |
Round float to nearest integer.
|
| run [Bogue.Main] |
This is finally how you run your app! It creates the SDL windows
associated with the
Window.ts registered with the board, and launches
the main loop.
|
| run [Bogue.Utils] | run f is equivalent to f ().
|
S | |
| save [Bogue.I18n.Menu] | |
| save [Bogue.I18n.File] | |
| save_as [Bogue.File] |
Similar to
File.select_file, but here the user can enter a filename that
does not already exist in the displayed directory.
|
| save_as [Bogue.I18n.Menu] | |
| save_as [Bogue.I18n.File] | |
| save_locale [Bogue.I18n] |
Save the translation file for the given locale (including all contexts,
and all user additions made with
add_translation).
|
| scale_int [Bogue.Theme] |
Conversion: Bogue dimension -> hardware pixel dimension.
|
| sdl_area [Bogue.Widget] |
See
Sdl_area.create regarding the size (w,h).
|
| select [Bogue.I18n.File] | |
| select_dir [Bogue.File] |
Similar to
File.select_file except that here only a directory can be
selected.
|
| select_directory [Bogue.I18n.File] | |
| select_dirs [Bogue.File] |
Similar to
File.select_files except that here only directories can be
selected.
|
| select_dirs [Bogue.I18n.File] | |
| select_file [Bogue.File] | select_file dirname continue will open a file dialog, initially showing
the content of the directory dirname.
|
| select_file [Bogue.I18n.File] | |
| select_files [Bogue.File] |
Similar to
File.select_file except that here several files can be
selected.
|
| select_files [Bogue.I18n.File] | |
| send [Bogue.Mailbox] | send mbx msg sends the message msg to the mailbox mbx.
|
| separator [Bogue.Menu] | |
| set [Bogue.Slider] |
Set a new value.
|
| set [Bogue.Label] |
Modify the text of the label.
|
| set [Bogue.Tvar] | |
| set [Bogue.Var] | set v value waits until no thread is accessing the Var v
and then sets its value to value.
|
| set_alpha [Bogue.Draw] | |
| set_background [Bogue.Layout] | |
| set_background [Bogue.Box] | |
| set_check_state [Bogue.Widget] | |
| set_color [Bogue.Draw] |
Equivalent to
Sdl.set_render_draw_color.
|
| set_cursor [Bogue.Layout] |
Set the current cursor to the default value for this layout.
|
| set_cursor [Bogue.Widget] |
Set the cursor that should be displayed for this widget.
|
| set_enabled [Bogue.Layout] |
Disable or enable a layout and all its rooms recursively.
|
| set_fg_color [Bogue.Label] |
Modify the color of the text.
|
| set_file [Bogue.Image] | |
| set_height [Bogue.Layout] | |
| set_index [Bogue.Radiolist] |
Set the selected entry to the specified index and directly activate the
button's connections with the
Trigger.var_changed event.
|
| set_int_scale [Bogue.Theme] |
Set
INT_SCALE.
|
| set_label_font [Bogue.Theme] | |
| set_options [Bogue.File] | |
| set_rooms [Bogue.Layout] |
Modify the layout content by replacing the former content by a new list of
rooms.
|
| set_scale [Bogue.Theme] | |
| set_scroll [Bogue.Long_list] | |
| set_selection [Bogue.Table] | |
| set_shadow [Bogue.Layout] | |
| set_show [Bogue.Layout] | |
| set_size [Bogue.Window] |
Set window size in physical pixels.
|
| set_size [Bogue.Layout] | |
| set_state [Bogue.Widget] |
Set a boolean state.
|
| set_style [Bogue.Box] | |
| set_system_cursor [Bogue.Draw] |
Set the mouse cursor to be the standard system cursor.
|
| set_text [Bogue.Widget] |
Change the text of a widget.
|
| set_text_color [Bogue.Draw] |
Overrides the
Theme TEXT_COLOR variable.
|
| set_text_font [Bogue.Theme] | |
| set_texture [Bogue.Sdl_area] | |
| set_wheel_speed [Bogue.Mouse] |
Set the speed of vertical scrolling via the mouse wheel and touchpad.
|
| set_width [Bogue.Layout] | set_width and similar functions will not work if there is an animation
running acting of the variable we want to set (here, the width).
|
| set_window_pos [Bogue.Layout] | set_window_pos layout x y sets the position of the window containing
layout to (x,y), in physical pixels.
|
| setx [Bogue.Layout] | |
| sety [Bogue.Layout] | |
| shortcuts_add [Bogue.Main] | |
| shortcuts_add_ctrl [Bogue.Main] | |
| shortcuts_add_ctrl_shift [Bogue.Main] | |
| shortcuts_empty [Bogue.Main] | |
| shortcuts_of_list [Bogue.Main] |
Construct shortcuts from a list of (SDL keycode, SDL keymod, action).
|
| should_exit [Bogue.Trigger] |
Tell if the current thread should exit.
|
| show [Bogue.Layout] |
Does nothing if the layout is already fully displayed.
|
| show_window [Bogue.Layout] |
Make the window containing the layout appear onscreen, using
set_show
and Sdl.show_window.
|
| sienna [Bogue.Draw] | |
| size [Bogue.File.Monitor] |
If
t monitors a directory, then size t is the number of elements of
this directory, before recent modifications.
|
| size [Bogue.Widget] |
If the widget is not rendered yet, a default size may be returned instead
of the true size.
|
| size [Bogue.Slider] | |
| size [Bogue.Label] |
Return the logical size (w,h).
|
| size [Bogue.Selection] |
Number of selected integers
|
| size [Bogue.I18n.File] | |
| slide_in [Bogue.Layout] | |
| slide_to [Bogue.Layout] | slide_to room (x0,y0) will translate the room to the position
(x0,y0).
|
| slider [Bogue.Widget] | |
| slider_with_action [Bogue.Widget] |
Create a slider that executes an action each time the local value of the
slider is modified by the user.
|
| sort_column [Bogue.Table] | |
| sprint [Bogue.Selection] | |
| start [Bogue.File.Monitor] | start path starts monitoring the directory or file path and
immediately returns.
|
| startup [Bogue.Trigger] |
The
startup event is sent to all Widgets when the Bogue mainloop is
started using Main.run.
|
| stat_opt [Bogue.File] |
The
stat_opt and lstat_opt return the corresponding pre-computed
Unix.stats results, without actually calling any system function.
|
| state [Bogue.Check] | |
| state [Bogue.Button] | |
| stop [Bogue.File.Monitor] |
Kill the monitoring process.
|
| stop_pos [Bogue.Layout] |
Stop animations of the variables x and y.
|
| strikethrough [Bogue.Text_display] | |
| style_bg [Bogue.Layout] |
Construct a background from the given
Style.
|
| superpose [Bogue.Layout] |
Create a new layout by superposing a list of layouts without changing
their (x,y) position.
|
T | |
| t_int [Bogue.I18n.ContextInit] |
Same as
t_uint but for usual (signed) integers (flag %i).
|
| t_str [Bogue.I18n.ContextInit] |
Same as
t_uint but for strings (flag %s).
|
| t_uint [Bogue.I18n.ContextInit] |
For instance:
will print, for French locale:
as soon as the French translation of "%u dollars off coupon" is declared to be
"bon de réduction de %u dollars".
|
| t_uint2 [Bogue.I18n.ContextInit] |
Similar to
t_uint but the format string should contain two
%s flags.
|
| test [Bogue.Mixer] | |
| text [Bogue.Text_input] | |
| text_display [Bogue.Widget] | |
| text_input [Bogue.Widget] | size is the font size.
|
| text_input [Bogue.Trigger] |
Same as Tsdl.Sdl.Event.text_input
|
| tf [Bogue.I18n.ContextInit] |
Shorthand for
Lazy.force.
|
| theme_bg [Bogue.Layout] |
This is the background constructed from the current theme's BG_COLOR.
|
| theme_bg [Bogue.Style] | |
| to_cursor [Bogue.Snapshot] | |
| to_list [Bogue.Selection] | |
| to_pixels [Bogue.Sdl_area] |
Convert BOGUE logical coordinates into pixel coordinates usable for the
SDL area.
|
| to_pixels [Bogue.Draw] |
Convert BOGUE logical coordinates into hardware pixel coordinates.
|
| toggle [Bogue.Selection] | |
| tooltip [Bogue.Popup] | tooltip text ~target widget layout adds a tooltip which will appear on
layout, next to target (which should be a sublayout of layout), when
the widget gets mouse focus and mouse is idle for some time on it.
|
| top_house [Bogue.Layout] |
Return the top of the layout tree (the "house" that contains the given
layout and that is not contained in another layout).
|
| tower [Bogue.Layout] |
Create a vertical arrangement from a list of rooms.
|
| tower_of_w [Bogue.Layout] |
Vertical arrangement of widgets.
|
| transp [Bogue.Draw] | |
| triggers [Bogue.Text_input] |
The list of events that a Text_input can react to.
|
| triggers [Bogue.Slider] |
The list of events that a Slider can react to.
|
| tt [Bogue.I18n.ContextInit] |
Lazy version of
gettext.
|
| two_buttons [Bogue.Popup] |
If
dst is present, a popup containing the given layout (and two buttons)
will be contructed inside dst, otherwise a new window will be
created.
|
| type_string [Bogue.File.Mime] | type_string filename returns the mimetype string of filename,
obtained by inspecting only the filename extension (no inspection of
the file is done), using this
table.
|
U | |
| uint_filter [Bogue.Text_input] | |
| underline [Bogue.Text_display] | |
| union [Bogue.Selection] |
Not tail-recursive
|
| unload_background [Bogue.Layout] |
Free the texture associated with the background (if any).
|
| unlock [Bogue.Layout] |
In general, modifying a layout should by done by the main Thread or by
using a
Sync.push.
|
| unpause [Bogue.Mixer] | |
| unscale_size [Bogue.Draw] |
Transform a size (W,H) in physical pixels into 'logical' pixels (w,h),
which are used for layouts.
|
| update [Bogue.Widget] | update w asks the widget w to refresh at next frame.
|
| update [Bogue.Sdl_area] |
Force the area to be re-drawn at the next graphics frame.
|
| update [Bogue.Trigger] |
Currently the
update event is more or less equivalent to
var_changed.
|
| update_verbatim [Bogue.Text_display] | |
| user_event [Bogue.Trigger] |
Same as
Tsdl.Sdl.Event.user_event.
|
V | |
| validator [Bogue.Ti_validate.Email] | |
| value [Bogue.Slider] |
Get current value.
|
| var [Bogue.Avar] |
Create an Avar which behaves like a normal Var (no animation).
|
| var_changed [Bogue.Trigger] |
The
var_changed event can be sent to notify that some widget made a
change to a global variable.
|
| verbatim [Bogue.Widget] | |
| vertical [Bogue.Radiolist] |
A radiolist with the usual vertical layout of items.
|
| vfill [Bogue.Space] |
When used in a
Layout.tower structure, this special empty layout will
automatically expand in order to fill the available height in the parent
house.
|
| vgradient [Bogue.Style] | |
| video_init [Bogue.Draw] |
Manually init the SDL video system, and detect the scaling factor used by
Bogue.
|
W | |
| wait_for [Bogue.Trigger] |
SDL Misc
|
| was_modified [Bogue.File.Monitor] |
Simply returns true if files were modified since the last call of this
function or of
modified.
|
| wheel_y [Bogue.Mouse] | |
| white [Bogue.Draw] | |
| widget [Bogue.Layout] |
Return the resident widget, or
|
| width [Bogue.Layout] | |
| will_exit [Bogue.Trigger] |
A nice thread should do this just before terminating.
|
| window_opt [Bogue.Layout] |
Return the SDL window containing the layout.
|
| window_pos [Bogue.Mouse] |
Return the mouse position with respect to the given window, using window
position if necessary.
|
| with_bg [Bogue.Style] | |
| with_border [Bogue.Style] | |
| with_protect [Bogue.Var] | with_protect v f applies f to the value of v, while protecting v
from the access of any other thread.
|
| with_shadow [Bogue.Style] | |
X | |
| x_dirs_selected [Bogue.I18n.File] | |
| x_files_selected [Bogue.I18n.File] | |
| x_files_x_dirs_selected [Bogue.I18n.File] | |
| xpos [Bogue.Layout] |
get current absolute x position of the layout (relative to the top-left
corner of the window).
|
Y | |
| yellow [Bogue.Draw] | |
| yes [Bogue.I18n.Popup] | |
| yesno [Bogue.Popup] |
Add to the layout a modal popup with two yes/no buttons.
|
| ypos [Bogue.Layout] |
see
Layout.xpos
|
Z | |
| zoom [Bogue.Layout] |