MCPcopy Create free account

hub / github.com/PistonDevelopers/conrod / functions

Functions1,384 in github.com/PistonDevelopers/conrod

↓ 9 callersMethodx
Move the lines over the X axis.
conrod_core/src/widget/grid.rs:113
↓ 8 callersMethodabs_xy
The absolute position of the mouse within the window.
conrod_core/src/input/widget.rs:270
↓ 8 callersMethodadd_node
Add the given **Node** to the graph. Computes in **O(1)** time. Returns the index of the new node.
conrod_core/src/graph/mod.rs:251
↓ 8 callersMethodalign_middle_of
Align the middle of `self` to the middle of the `other` **Range**. # Examples ``` use conrod_core::Range; let a = Range::new(0.0, 5.0); let b = Ran
conrod_core/src/position/range.rs:559
↓ 8 callersFunctionclampf32
Clamp a f32 between 0f32 and 1f32.
conrod_core/src/color.rs:93
↓ 8 callersMethoddimensions
(&self)
backends/conrod_glium/src/lib.rs:270
↓ 8 callersMethoddown_from
Build with the **Position** as some distance below the given widget.
conrod_core/src/position/mod.rs:302
↓ 8 callersMethodevents
All events that have occurred since the last
conrod_core/src/widget/graph/mod.rs:477
↓ 8 callersMethodget_dimensions
(&self)
backends/conrod_vulkano/examples/support/mod.rs:122
↓ 8 callersMethodget_thickness
The width or thickness of the Line.
conrod_core/src/widget/primitive/line.rs:252
↓ 8 callersMethodindex
Returns the inner `usize` from the `Id`.
conrod_core/src/text.rs:147
↓ 8 callersFunctioninfos
Produce an `Infos` iterator that yields an `Info` for every line in the given text. The produced `Infos` iterator will not wrap the text, and only br
conrod_core/src/text.rs:1389
↓ 8 callersMethodinvert
Return the Color's invert.
conrod_core/src/color.rs:255
↓ 8 callersMethodmid_top_of
Place `self` in the middle of the top edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:412
↓ 8 callersMethodpadded_w_of
Set the width as the width of the widget at the given index padded at both ends by the given Scalar.
conrod_core/src/position/mod.rs:747
↓ 8 callersMethodrelative_to
Returns a copy of the `Touch` relative to the given `xy`.
conrod_core/src/input/mod.rs:116
↓ 8 callersMethodresize
Resizes the `List`'s inner `Vec` to the given target length, using the given `UiCell` to generate new unique `widget::Id`s if necessary.
conrod_core/src/widget/id.rs:70
↓ 8 callersMethodwh_of
The absolute dimensions for the widget at the given index. Returns `None` if there is no widget for the given index.
conrod_core/src/ui.rs:252
↓ 8 callersMethodwidget
Specify the widget to use
conrod_core/src/widget/graph/mod.rs:619
↓ 8 callersMethodx_position_relative_to
Set the *x* **Position** **Relative** to the given widget.
conrod_core/src/position/mod.rs:199
↓ 8 callersMethodx_y_w_h
The Rect's centered coordinates and dimensions in a tuple.
conrod_core/src/position/rect.rs:123
↓ 8 callersMethody
Move the lines over the Y axis.
conrod_core/src/widget/grid.rs:118
↓ 8 callersMethody_position_relative_to
Set the *y* **Position** **Relative** to the given widget.
conrod_core/src/position/mod.rs:204
↓ 7 callersMethodalign_bottom_of
Align `self`'s bottom edge with the bottom edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:368
↓ 7 callersMethodalign_left_of
Align `self`'s left edge with the left edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:344
↓ 7 callersMethodalign_middle_y_of
Align the middle of `self` with the middle of the `other` **Rect** along the *y* axis.
conrod_core/src/position/rect.rs:376
↓ 7 callersMethoddimensions
(&self)
backends/conrod_wgpu/src/lib.rs:117
↓ 7 callersMethoddraw
Draws using the inner list of `Command`s to the given `display`. Note: If you require more granular control over rendering, you may want to use the `
backends/conrod_gfx/src/lib.rs:617
↓ 7 callersMethodfont_id
Specify the font used for displaying the text.
conrod_core/src/widget/text_box.rs:92
↓ 7 callersMethodget_cap
The styling for the ends of the Line.
conrod_core/src/widget/primitive/line.rs:263
↓ 7 callersMethodinto
(self)
conrod_core/src/widget/primitive/shape/triangles.rs:160
↓ 7 callersMethodmap_canvas_style
Map the `NumberDialer`'s `widget::canvas::Style` to a new `widget::canvas::Style`.
conrod_core/src/widget/tabs.rs:121
↓ 7 callersMethodnext
(&mut self)
conrod_core/src/text.rs:92
↓ 7 callersMethodrecursive_walk
A **Walker** type that recursively walks the **Graph** using the given `recursive_fn`. Panics** If the given start index does not exist within the **
conrod_core/src/graph/mod.rs:384
↓ 7 callersMethodset_pattern
Set the pattern for the line.
conrod_core/src/widget/primitive/line.rs:209
↓ 7 callersFunctiontheme
A set of reasonable stylistic defaults that works for the `gui` below.
backends/conrod_example_shared/src/lib.rs:41
↓ 7 callersMethodundirected
Converts the Range to an undirected Range. By ensuring that `start` <= `end`. If `start` > `end`, then the start and end points will be swapped. # E
conrod_core/src/position/range.rs:206
↓ 7 callersMethodx_y_relative_to
Set the position relative to the widget with the given widget::Id.
conrod_core/src/position/mod.rs:255
↓ 6 callersMethodalign_right_of
Align `self`'s right edge with the right edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:360
↓ 6 callersFunctionbounding_box_for_points
Find the bounding rect for the given series of points.
conrod_core/src/widget/primitive/mod.rs:16
↓ 6 callersMethodchar_range
The index range for indexing into a `char` iterator over the original str slice.
conrod_core/src/text.rs:1101
↓ 6 callersMethodclamp_value
Clamp the given value to the range. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(0.0, 5.0).clamp_value(7.0), 5.0); assert_eq!(Range
conrod_core/src/position/range.rs:413
↓ 6 callersMethodclosest_edge
The closest **Edge** of `self` to the given `scalar`. Returns **Start** if the distance between both **Edge**s is equal. # Examples ``` use conrod_
conrod_core/src/position/range.rs:642
↓ 6 callersMethoddraw
Draws using the inner list of `Command`s to a list of `DrawCommand`s compatible with the vulkano command buffer builders. Uses the given `queue` for
backends/conrod_vulkano/src/lib.rs:395
↓ 6 callersMethodend_char
The end of the index range for indexing into the slice.
conrod_core/src/text.rs:1091
↓ 6 callersMethodflow_down
Begin building a new `List` flowing from top to bottom.
conrod_core/src/widget/list.rs:238
↓ 6 callersMethodget_color
The Color for the Line.
conrod_core/src/widget/primitive/line.rs:241
↓ 6 callersMethodget_y
Return the Y value.
conrod_core/src/widget/envelope_editor.rs:116
↓ 6 callersFunctiongui
Instantiate a GUI demonstrating every widget available in conrod.
backends/conrod_example_shared/src/lib.rs:104
↓ 6 callersFunctionhsla
(hue: f32, saturation: f32, lightness: f32, alpha: f32)
conrod_core/src/color.rs:58
↓ 6 callersFunctionindex_after_cursor
Find the index of the character that directly follows the cursor at the given `cursor_idx`. Returns `None` if either the given `cursor::Index` `line`
conrod_core/src/text.rs:305
↓ 6 callersFunctioniter_diff
Compares every element yielded by both elems and new_elems in lock-step. If the number of elements yielded by `b` is less than the number of elements
conrod_core/src/utils.rs:224
↓ 6 callersMethodkid_area_of
The `kid_area` of the widget at the given index. Returns `None` if there is no widget for the given index.
conrod_core/src/ui.rs:266
↓ 6 callersMethodlabel
(self, text: &'a str)
conrod_core/src/widget/canvas.rs:454
↓ 6 callersMethodpad_top
If the `Tabs` has some `widget::canvas::Style`, assign the left padding.
conrod_core/src/widget/tabs.rs:159
↓ 6 callersMethodremove
Removes the given image from the map if it exists. Returns the image or None. Any future use of the given `image::Id` will be invalid. Note: Calling
conrod_core/src/image.rs:91
↓ 6 callersMethodright_from
Build with the **Position** as some distance to the right of the given widget.
conrod_core/src/position/mod.rs:317
↓ 6 callersMethodscroll_kids_vertically
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:802
↓ 6 callersMethodshift
Shift the Rect by the given Point.
conrod_core/src/position/rect.rs:207
↓ 5 callersMethodadd
(self, add: Point)
conrod_core/src/widget/primitive/shape/triangles.rs:66
↓ 5 callersMethodalign_top_of
Align `self`'s top edge with the top edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:384
↓ 5 callersMethodand
(self, build: F)
conrod_core/src/widget/mod.rs:823
↓ 5 callersMethodbyte_range
The index range for indexing (via bytes) into the original str slice.
conrod_core/src/text.rs:1096
↓ 5 callersFunctionconvert_rgb_to_hsl_to_rgb
(expected_r: f32, expected_g: f32, expected_b: f32)
conrod_core/src/tests/color.rs:6
↓ 5 callersMethoddimensions
(&self)
backends/conrod_vulkano/src/lib.rs:185
↓ 5 callersMethoddraw_if_changed
Same as the `Ui::draw` method, but *only* draws if the `redraw_count` is greater than 0. The `redraw_count` is set to `SAFE_REDRAW_COUNT` whenever a
conrod_core/src/ui.rs:1248
↓ 5 callersFunctionfrom_quad
(points: [Point; 4])
conrod_core/src/widget/primitive/shape/triangles.rs:437
↓ 5 callersMethodget_mut
Uniquely borrow the `Img` associated with the given widget. Note: Calling this will trigger a redraw the next time `Ui::draw_if_changed` is called.
conrod_core/src/image.rs:60
↓ 5 callersFunctionheight
Determine the total height of a block of text with the given number of lines, font size and `line_spacing` (the space that separates each line of text
conrod_core/src/text.rs:45
↓ 5 callersMethoditem_size
Specify a fixed item size, where size is a `Scalar` in the direction that the `List` is flowing. When a `List` is constructed with this method, all it
conrod_core/src/widget/list.rs:264
↓ 5 callersMethodleft
The Rect's lowest x value.
conrod_core/src/position/rect.rs:144
↓ 5 callersMethodmagnitude
The `start` value subtracted from the `end` value. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(-5.0, 5.0).magnitude(), 10.0); asse
conrod_core/src/position/range.rs:72
↓ 5 callersMethodneeds_redraw
Tells the `Ui` that it needs to re-draw everything. It does this by setting the redraw count to `num_redraw_frames`. See the docs for `set_num_redraw_
conrod_core/src/ui.rs:1192
↓ 5 callersMethodnext
(&mut self)
conrod_core/src/widget/primitive/point_path.rs:248
↓ 5 callersMethodpad_bottom
If the `Tabs` has some `widget::canvas::Style`, assign the left padding.
conrod_core/src/widget/tabs.rs:151
↓ 5 callersMethodpad_end
The Range with some padding given to the `end` value. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(0.0, 10.0).pad_end(2.0), Range::
conrod_core/src/position/range.rs:369
↓ 5 callersMethodpad_left
If the `Tabs` has some `widget::canvas::Style`, assign the left padding.
conrod_core/src/widget/tabs.rs:135
↓ 5 callersMethodpad_start
The Range with some padding given to the `start` value. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(0.0, 10.0).pad_start(2.0), Ran
conrod_core/src/position/range.rs:354
↓ 5 callersMethodpadding
(self, pad: Padding)
conrod_core/src/widget/canvas.rs:201
↓ 5 callersFunctionpick_widgets
Produces a graph node "walker" that yields all widgets under the given `xy` position in order from top to bottom.
conrod_core/src/graph/algo.rs:134
↓ 5 callersMethodpress
Sets the `Button` in the `Down` position.
conrod_core/src/input/state.rs:231
↓ 5 callersFunctionpt_to_scale
Converts the given font size in "points" to a uniform `rusttype::Scale`.
conrod_core/src/text.rs:83
↓ 5 callersFunctionrad_to_dim
(radius: Scalar)
conrod_core/src/widget/primitive/shape/circle.rs:12
↓ 5 callersMethodscroll_widget
Scroll the widget at the given index by the given offset amount. The produced `Scroll` event will be applied upon the next call to `Ui::set_widgets`.
conrod_core/src/ui.rs:309
↓ 5 callersMethodshift
Shift the `Range` start and end points by a given `Scalar`. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(0.0, 5.0).shift(5.0), Rang
conrod_core/src/position/range.rs:165
↓ 5 callersMethodx_dimension
(mut self, w: Dimension)
conrod_core/src/position/matrix.rs:124
↓ 5 callersMethodx_position_relative
Set the *x* **Position** **Relative** to the previous widget.
conrod_core/src/position/mod.rs:184
↓ 5 callersMethodx_y
The centered x and y coordinates as a tuple.
conrod_core/src/position/rect.rs:93
↓ 5 callersMethodxy_relative_to
Set the position relative to the widget with the given widget::Id.
conrod_core/src/position/mod.rs:250
↓ 5 callersMethody_dimension
(mut self, h: Dimension)
conrod_core/src/position/matrix.rs:129
↓ 5 callersMethody_position_relative
Set the *y* **Position** **Relative** to the previous widget.
conrod_core/src/position/mod.rs:189
↓ 4 callersMethodalign_to
Align `self` to `other` along the *x* axis in accordance with the given `Align` variant.
conrod_core/src/position/range.rs:621
↓ 4 callersMethodas_ref
(&self)
conrod_core/src/ui.rs:1397
↓ 4 callersMethodbuild
Build **Ui** from the given builder
conrod_core/src/ui.rs:158
↓ 4 callersMethodcenter_justify
Align the text to the middle of its bounding **Rect**'s *x* axis range.
conrod_core/src/widget/text_box.rs:82
↓ 4 callersMethodchildren
A **Walker** type that may be used to step through the children of the given parent node.
conrod_core/src/graph/mod.rs:522
↓ 4 callersMethodclear_events_and_update_start_state
Called at the end of every update cycle in order to prepare the `Global` to handle events for the next one.
conrod_core/src/input/global.rs:66
↓ 4 callersMethodclicks
Filters all events yielded by `Self::events` for all `event::Click`s. A _click_ is determined to have occured if a pointing device button was both pr
conrod_core/src/input/widget.rs:224
↓ 4 callersFunctionclosest_cursor_index_and_xy
Find the closest cursor index to the given `xy` position, and the center `Point` of that cursor. Returns `None` if the given `text` is empty.
conrod_core/src/text.rs:850
↓ 4 callersMethodcolor_all
Convert the `Triangle<Point>` to a `Triangle<ColoredPoint>` using the given color.
conrod_core/src/widget/primitive/shape/triangles.rs:123
← previousnext →101–200 of 1,384, ranked by callers