Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PistonDevelopers/conrod
/ functions
Functions
1,384 in github.com/PistonDevelopers/conrod
⨍
Functions
1,384
◇
Types & classes
423
↓ 1 callers
Function
rect_range
Returns the range along the rect for the given axis.
conrod_core/src/widget/graph/node.rs:248
↓ 1 callers
Function
rects_per_line
Produce an iterator that, for every `(line, line_rect)` pair yielded by the given iterator, produces an iterator that yields a `Rect` for every charac
conrod_core/src/text.rs:329
↓ 1 callers
Function
rel_tab_bar_area
Calculate the dimensions and position of the Tab Bar relative to the center of the widget.
conrod_core/src/widget/tabs.rs:364
↓ 1 callers
Method
rel_xy
The position of the mouse relative to the middle of the widget's `Rect`.
conrod_core/src/input/widget.rs:275
↓ 1 callers
Method
relative_to
Returns a copy of the input::State relative to the given `position::Point`
conrod_core/src/input/state.rs:56
↓ 1 callers
Method
relative_to_x
Returns a `Rect` with a position relative to the given position on the *x* axis.
conrod_core/src/position/rect.rs:212
↓ 1 callers
Method
relative_to_y
Returns a `Rect` with a position relative to the given position on the *y* axis.
conrod_core/src/position/rect.rs:220
↓ 1 callers
Method
release
Set's the `Button` in the `Up` position.
conrod_core/src/input/state.rs:236
↓ 1 callers
Function
release_mouse_button
(button: MouseButton, ui: &mut Ui)
conrod_core/src/tests/ui.rs:15
↓ 1 callers
Method
render
Converts the inner list of `Command`s generated via `fill` to a list of `RenderPassCommand`s that are easily digestible by a `wgpu::RenderPass` produc
backends/conrod_wgpu/src/lib.rs:273
↓ 1 callers
Method
reset_indices
Resets the index for every `TypeWidgetIds` list to `0`. This should be called at the beginning of the `Graph` update to ensure each widget receives a
conrod_core/src/widget/graph/mod.rs:176
↓ 1 callers
Method
rgba
Set the color of the widget from rgba values.
conrod_core/src/color.rs:525
↓ 1 callers
Function
rgba_bytes
(r: u8, g: u8, b: u8, a: f32)
conrod_core/src/color.rs:45
↓ 1 callers
Method
right_justify
Align the text to the right of its bounding **Rect**'s *x* axis range.
conrod_core/src/widget/text_box.rs:87
↓ 1 callers
Function
rounded_border_triangles
An iterator yielding triangles for a rounded border. Clamps the thickness of the border to half the smallest dimension of the rectangle to ensure the
conrod_core/src/widget/bordered_rectangle.rs:150
↓ 1 callers
Function
run_conrod
A function that runs the conrod loop.
backends/conrod_glium/examples/all_winit_glium_threaded.rs:68
↓ 1 callers
Function
rusttype_glyph_cache
Creating the rusttype glyph cache used within a `GlyphCache`.
backends/conrod_glium/src/lib.rs:346
↓ 1 callers
Function
sampler_desc
()
backends/conrod_wgpu/src/lib.rs:542
↓ 1 callers
Method
scroll_kids
Makes the widget's `KidArea` scrollable. If a widget is scrollable and it has children widgets that fall outside of its `KidArea`, the `KidArea` will
conrod_core/src/widget/mod.rs:790
↓ 1 callers
Function
scroll_offset
Return the `scroll_offset` for the widget at the given index. The offset is retrieved from the widget that is the immediate `depth_parent` of the wid
conrod_core/src/graph/algo.rs:289
↓ 1 callers
Method
scrollable_y_parent_recursion
A **Walker** type that recursively walks **Depth** parents that are scrollable along the y* axis for the given node.
conrod_core/src/graph/mod.rs:483
↓ 1 callers
Method
scrollbar_next_to
Specifies that the `List` should be scrollable and should provide a `Scrollbar` to the right of the items.
conrod_core/src/widget/list_select.rs:337
↓ 1 callers
Method
scrollbar_next_to
Specifies that the list should be scrollable and should provide a `Scrollbar` to the right of the items.
conrod_core/src/widget/drop_down_list.rs:131
↓ 1 callers
Method
scrollbar_on_top
Specifies that the `List` should be scrollable and should provide a `Scrollbar` that hovers above the right edge of the items and automatically hides
conrod_core/src/widget/list_select.rs:344
↓ 1 callers
Method
scrollbar_on_top
Specifies that the list should be scrollable and should provide a `Scrollbar` that hovers above the right edge of the items and automatically hides wh
conrod_core/src/widget/drop_down_list.rs:138
↓ 1 callers
Method
scrollbar_width
Specify the width of the scrollbar.
conrod_core/src/widget/drop_down_list.rs:150
↓ 1 callers
Method
scrolls
Produce an iterator that yields only the `Scroll` events yielded by the `Events` iterator.
conrod_core/src/input/widget.rs:261
↓ 1 callers
Method
section
Produces an `Oval` where only a section is drawn. The given `radians` describes the angle occuppied by the section's circumference.
conrod_core/src/widget/primitive/shape/oval.rs:114
↓ 1 callers
Function
selected_rects
Produces an iterator yielding a `Rect` for the selected range in each selected line in a block of text. The yielded `Rect`s represent the selected ra
conrod_core/src/text.rs:1459
↓ 1 callers
Function
selected_rects_per_line
Produces an iterator that yields iterators yielding `Rect`s for each selected character in each line of text within the given iterator yielding char `
conrod_core/src/text.rs:351
↓ 1 callers
Method
set_cap
Set the **Cap** for the line.
conrod_core/src/widget/primitive/line.rs:224
↓ 1 callers
Function
set_ui
Declare the `WidgetId`s and instantiate the widgets.
backends/conrod_glium/examples/text_edit.rs:120
↓ 1 callers
Function
set_ui
(ref mut ui: conrod_core::UiCell, ids: &Ids, fonts: &Fonts)
backends/conrod_glium/examples/text.rs:136
↓ 1 callers
Function
set_ui
(ref mut ui: conrod_core::UiCell, ids: &Ids)
backends/conrod_glium/examples/primitives.rs:106
↓ 1 callers
Function
set_ui
Declare the `WidgetId`s and instantiate the widgets.
backends/conrod_glium/examples/range_slider.rs:107
↓ 1 callers
Function
set_ui
Declare the `WidgetId`s and instantiate the widgets.
backends/conrod_glium/examples/list.rs:106
↓ 1 callers
Function
set_widget
Updates the given widget and caches it within the given `Ui`'s `widget_graph`. If it is the first time a widget has been set, it will be cached into
conrod_core/src/widget/mod.rs:902
↓ 1 callers
Function
set_widgets
(ui: &mut conrod_core::UiCell, ids: &Ids, graph: &mut MyGraph, layout: &mut Layout)
backends/conrod_glium/examples/graph.rs:139
↓ 1 callers
Function
set_widgets
Set all `Widget`s within the User Interface. The first time this gets called, each `Widget`'s `State` will be initialised and cached within the `Ui`
backends/conrod_glium/examples/old_demo.rs:236
↓ 1 callers
Function
set_widgets
Draw the Ui.
backends/conrod_glium/examples/canvas.rs:103
↓ 1 callers
Method
set_x
Return the X value.
conrod_core/src/widget/envelope_editor.rs:120
↓ 1 callers
Method
set_y
Return the Y value.
conrod_core/src/widget/envelope_editor.rs:124
↓ 1 callers
Method
shift_x
Shift the Rect along the x axis.
conrod_core/src/position/rect.rs:191
↓ 1 callers
Method
shift_y
Shift the Rect along the y axis.
conrod_core/src/position/rect.rs:199
↓ 1 callers
Method
show_hidden_files
Whether to show hidden files and directories.
conrod_core/src/widget/file_navigator/mod.rs:170
↓ 1 callers
Function
side_axis_and_scalar
Axis from a given side and the scalar offset from the centre of the rect.
conrod_core/src/widget/graph/node.rs:223
↓ 1 callers
Method
socket_color
Specify the color for the node's sockets.
conrod_core/src/widget/graph/node.rs:183
↓ 1 callers
Function
socket_position
The position of the socket at the given index.
conrod_core/src/widget/graph/node.rs:233
↓ 1 callers
Function
socket_rect_dim
Dimensions for a socket rectangle given some axis.
conrod_core/src/widget/graph/node.rs:240
↓ 1 callers
Function
socket_step_and_start
The gap between each socket and the position of the first socket.
conrod_core/src/widget/graph/node.rs:256
↓ 1 callers
Method
start
The start (or "input") for the edge. This is described via the node's `Id` and the position of its output socket.
conrod_core/src/widget/graph/mod.rs:695
↓ 1 callers
Method
style
(&self)
conrod_core/src/widget/tabs.rs:191
↓ 1 callers
Function
tab_dim
(num_tabs: usize, tab_bar_dim: Dimensions, layout: Layout)
conrod_core/src/widget/tabs.rs:399
↓ 1 callers
Method
text_color
The color of the `Text` used to display the file names.
conrod_core/src/widget/file_navigator/directory_view.rs:169
↓ 1 callers
Function
text_texture_uncompressed_float_format
Return the optimal uncompressed float format for the text texture given the version.
backends/conrod_glium/src/lib.rs:334
↓ 1 callers
Function
texture_from_image
Specify how to get the drawable texture from the image. In this case, the image is* the texture.
backends/conrod_piston/examples/all_piston_window.rs:124
↓ 1 callers
Function
title_bar
The Rect for the Canvas' title bar.
conrod_core/src/widget/canvas.rs:424
↓ 1 callers
Method
title_bar_color
Set the color of the `Canvas`' `TitleBar` if it is visible.
conrod_core/src/widget/canvas.rs:209
↓ 1 callers
Function
to_window_coordinates
(xy: Point, ui: &Ui)
conrod_core/src/tests/ui.rs:53
↓ 1 callers
Function
triangles
Triangulate the polygon given as a list of `Point`s describing its sides. Returns `None` if the given iterator yields less than two points.
conrod_core/src/widget/primitive/shape/polygon.rs:286
↓ 1 callers
Function
turns
Convert turns to radians.
conrod_core/src/utils.rs:95
↓ 1 callers
Method
ui
Converts the `Events` into a `UiEvents`, yielding only the `event::Ui`s that have occurred since the last time `Ui::set_widgets` was called.
conrod_core/src/input/global.rs:75
↓ 1 callers
Method
unselected_color
The color of the unselected entries within each `DirectoryView`.
conrod_core/src/widget/file_navigator/directory_view.rs:163
↓ 1 callers
Method
up
Build with the **Position** as some distance above another widget.
conrod_core/src/position/mod.rs:277
↓ 1 callers
Method
up_from
Build with the **Position** as some distance above the given widget.
conrod_core/src/position/mod.rs:307
↓ 1 callers
Function
update_texture
Updates a texture with the given data (used for updating the GlyphCache texture)
backends/conrod_gfx/src/lib.rs:767
↓ 1 callers
Function
val_string_width
Return the dimensions of value string glyphs.
conrod_core/src/widget/number_dialer.rs:118
↓ 1 callers
Function
vertex_attrs
()
backends/conrod_wgpu/src/lib.rs:653
↓ 1 callers
Function
vertices_as_bytes
(s: &[mesh::Vertex])
backends/conrod_wgpu/src/lib.rs:753
↓ 1 callers
Method
w_of
The absolute width of the widget at the given index. Returns `None` if there is no widget for the given index.
conrod_core/src/ui.rs:238
↓ 1 callers
Method
walk
Produce an iterator-like type for yielding `Primitive`s.
conrod_core/src/render.rs:767
↓ 1 callers
Method
wh_of
Set the dimensions as the dimensions of the widget at the given index.
conrod_core/src/position/mod.rs:763
↓ 1 callers
Function
widget_graph_mut
A mutable reference to the given `Ui`'s widget `Graph`.
conrod_core/src/ui.rs:1411
↓ 1 callers
Method
window_dim
Returns the dimensions of the window
conrod_core/src/ui.rs:1293
↓ 1 callers
Method
with_dimensions
Construct a **GlyphCache** with the given texture dimensions. When calling `GlyphCache::new`, the `get_framebuffer_dimensions` method is used to prod
backends/conrod_glium/src/lib.rs:391
↓ 1 callers
Method
with_style
Override the default button style
conrod_core/src/widget/button.rs:204
↓ 1 callers
Method
wrap_by_word
Line wrap the **Text** at the beginning of the first word that exceeds the width.
conrod_core/src/widget/primitive/text.rs:98
↓ 1 callers
Method
x
Build with the given **Absolute** **Position** along the *x* axis.
conrod_core/src/position/mod.rs:162
↓ 1 callers
Method
x_position_children
For walking the **Position(X)** children of the given parent node.
conrod_core/src/graph/mod.rs:532
↓ 1 callers
Method
x_position_parent
Return the index of the parent along the given widget's **Position** **Edge**.
conrod_core/src/graph/mod.rs:405
↓ 1 callers
Method
x_position_parent_recursion
A **Walker** type that recursively walks **X** **Position** parents starting from the given node.
conrod_core/src/graph/mod.rs:442
↓ 1 callers
Method
x_relative
Set the **Position** as a **Scalar** along the *x* axis **Relative** to the middle of previous widget.
conrod_core/src/position/mod.rs:218
↓ 1 callers
Method
x_relative_to
Set the position relative to the widget with the given widget::Id.
conrod_core/src/position/mod.rs:240
↓ 1 callers
Method
xy
Set the **Position** with some Point.
conrod_core/src/position/mod.rs:172
↓ 1 callers
Function
xy_at
Determine the *xy* location of the cursor at the given cursor `Index`.
conrod_core/src/text.rs:799
↓ 1 callers
Method
xy_of
The coordinates for the widget at the given index. Returns `None` if there is no widget for the given index.
conrod_core/src/ui.rs:259
↓ 1 callers
Method
xy_relative
Set the **Position** as a **Point** **Relative** to the middle of the previous widget.
conrod_core/src/position/mod.rs:229
↓ 1 callers
Function
xys_per_line
Every possible cursor position within each line of text yielded by the given iterator. Yields `(xs, y_range)`, where `y_range` is the `Range` occupie
conrod_core/src/text.rs:731
↓ 1 callers
Method
y
Build with the given **Absolute** **Position** along the *y* axis.
conrod_core/src/position/mod.rs:167
↓ 1 callers
Method
y_position_children
For walking the **Position(Y)** children of the given parent node.
conrod_core/src/graph/mod.rs:537
↓ 1 callers
Method
y_position_parent
Return the index of the parent along the given widget's **Position** **Edge**.
conrod_core/src/graph/mod.rs:410
↓ 1 callers
Method
y_position_parent_recursion
A **Walker** type that recursively walks **Y** **Position** parents starting from the given node.
conrod_core/src/graph/mod.rs:456
↓ 1 callers
Method
y_relative
Set the **Position** as a **Scalar** along the *y* axis **Relative** to the middle of previous widget.
conrod_core/src/position/mod.rs:224
↓ 1 callers
Method
y_relative_to
Set the position relative to the widget with the given widget::Id.
conrod_core/src/position/mod.rs:245
Method
above
Align `self`'s bottom edge with the top edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:320
Method
abs
Build a new PointPath whose bounding box is fit to the absolute co-ordinates of the points. This requires that the `points` iterator is `Clone` so th
conrod_core/src/widget/primitive/point_path.rs:72
Method
abs_fill
The same as [**Polygon::abs_styled**](./struct.Polygon#method.abs_styled) but builds the Polygon** with the default **Fill** style.
conrod_core/src/widget/primitive/shape/polygon.rs:106
Method
abs_fill_with
The same as [**Polygon::abs_styled**](./struct.Polygon#method.abs_styled) but builds the Polygon** **Fill**ed with the given **Color**.
conrod_core/src/widget/primitive/shape/polygon.rs:115
Method
abs_from_position
Retrieves the absolute **Scalar** position from the given position for a single axis. The axis used is specified by the given range_from_rect functio
conrod_core/src/ui.rs:1007
Method
abs_outline
The same as [**Polygon::abs_styled**](./struct.Polygon#method.abs_styled) but builds the Polygon** with the default **Outline** style.
conrod_core/src/widget/primitive/shape/polygon.rs:124
← previous
next →
601–700 of 1,384, ranked by callers