MCPcopy Create free account

hub / github.com/PistonDevelopers/conrod / functions

Functions1,384 in github.com/PistonDevelopers/conrod

↓ 4 callersMethodcrop_kids
Indicates that all widgets who are children of this widget should be cropped to the `kid_area` of this widget.
conrod_core/src/widget/mod.rs:779
↓ 4 callersFunctiondefault_y_dimension
Determines the default **Dimension** for a **Widget**. This function checks for a default dimension in the following order. 1. Check for a default va
conrod_core/src/widget/mod.rs:454
↓ 4 callersFunctiondegrees
Convert degrees to radians.
conrod_core/src/utils.rs:51
↓ 4 callersMethoddepth_parent_recursion
A **Walker** type that recursively walks **Depth** parents starting from the given node.
conrod_core/src/graph/mod.rs:428
↓ 4 callersMethodedge_parent
If the widget at the given index has some parent along an **Edge** of the given variant, return an index to it.
conrod_core/src/graph/mod.rs:393
↓ 4 callersFunctionf32_to_byte
(c: f32)
conrod_core/src/color.rs:338
↓ 4 callersMethodfloating
Set whether or not the widget is floating (the default is `false`). A typical example of a floating widget would be a pop-up or alert window. A "floa
conrod_core/src/widget/mod.rs:772
↓ 4 callersMethodfloor
Floor the values at both ends of the Range and return the result. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(0.25, 9.5).floor(),
conrod_core/src/position/range.rs:340
↓ 4 callersMethodflow
Set the child Canvas Splits of the current Canvas flowing in a given direction.
conrod_core/src/widget/canvas.rs:165
↓ 4 callersFunctiongamma_srgb_to_linear
(c: [f32; 4])
conrod_core/src/mesh.rs:613
↓ 4 callersFunctiongamma_srgb_to_linear
(c: [f32; 4])
backends/conrod_gfx/src/lib.rs:686
↓ 4 callersFunctiongamma_srgb_to_linear
Converts gamma (brightness) from sRGB to linear color space. sRGB is the default color space for image editors, pictures, internet etc. Linear gamma
backends/conrod_glium/src/lib.rs:311
↓ 4 callersMethodglyph_cache_pixel_buffer
The CPU-side of the glyph cache, storing all necessary pixel data in a single slice.
conrod_core/src/mesh.rs:553
↓ 4 callersMethodhandle_resize
(&mut self, window: &support::Window)
backends/conrod_vulkano/examples/list_select_vulkano.rs:310
↓ 4 callersMethodhandle_resize
(&mut self, window: &support::Window)
backends/conrod_vulkano/examples/all_winit_vulkano.rs:296
↓ 4 callersMethodhas_same_direction
Does `self` have the same direction as `other`. # Examples ``` use conrod_core::Range; assert!(Range::new(0.0, 1.0).has_same_direction(Range::new(1
conrod_core/src/position/range.rs:478
↓ 4 callersFunctionimpl_derive
Use the given function to generate a TokenStream for the derive implementation.
conrod_derive/src/lib.rs:45
↓ 4 callersMethodinvert
The current range with its start and end values swapped. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(-5.0, 5.0).invert(), Range::n
conrod_core/src/position/range.rs:120
↓ 4 callersMethodis_over
(&self)
conrod_core/src/widget/primitive/line.rs:291
↓ 4 callersMethodkey
Produces an `Iterator` that yields only the press events that correspond with keyboard buttons.
conrod_core/src/input/widget.rs:293
↓ 4 callersMethodmid_bottom_of
Place `self` in the middle of the bottom edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:417
↓ 4 callersMethodmiddle
Return the value directly between the start and end values. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(-5.0, 5.0).middle(), 0.0);
conrod_core/src/position/range.rs:104
↓ 4 callersMethodnext
Transition from the **SessionEvents** into **SessionNodes** for instantiating nodes.
conrod_core/src/widget/graph/mod.rs:490
↓ 4 callersMethodnext_word_end
The cursor index of the end of the first word (block of non-whitespace) after `self`. If `self` is at the end of the text, this returns `None`. If `
conrod_core/src/text.rs:589
↓ 4 callersMethodnodes
Produce an iterator yielding a `NodeContext` for each node present in the graph.
conrod_core/src/widget/graph/mod.rs:514
↓ 4 callersMethodpad_right
If the `Tabs` has some `widget::canvas::Style`, assign the left padding.
conrod_core/src/widget/tabs.rs:143
↓ 4 callersFunctionpartial_max
Compare to PartialOrd values and return the max.
conrod_core/src/utils.rs:21
↓ 4 callersMethodpoint
(&self)
conrod_core/src/widget/primitive/shape/triangles.rs:63
↓ 4 callersMethodpositioned_glyphs
Produces a list of `PositionedGlyph`s which may be used to cache and render the text. `dpi_factor`, aka "dots per inch factor" is a multiplier repres
conrod_core/src/render.rs:234
↓ 4 callersMethodpressed
An iterator yielding all pressed mouse buttons along with the location at which they were originally pressed.
conrod_core/src/input/state.rs:242
↓ 4 callersMethodprevious_word_start
The cursor index of the beginning of the word (block of non-whitespace) before `self`. If `self` is at the beginning of the line, call previous, whic
conrod_core/src/text.rs:544
↓ 4 callersFunctionpush_event
Pushes an event onto the given global input with a default drag threshold.
conrod_core/src/tests/widget_input.rs:8
↓ 4 callersMethodscroll_kids_horizontally
Set whether or not the widget's `KidArea` is scrollable (the default is false). If a widget is scrollable and it has children widgets that fall outsi
conrod_core/src/widget/mod.rs:813
↓ 4 callersMethodset_color
Set the color for the style.
conrod_core/src/widget/primitive/shape/mod.rs:50
↓ 4 callersMethodset_edge
Set the given **Edge** within the graph. The added edge will be in the direction `a` -> `b` There may only ever be one **Edge** of the given variant
conrod_core/src/graph/mod.rs:274
↓ 4 callersMethodtext_color
The color of the `Text` used to display the file names.
conrod_core/src/widget/file_navigator/mod.rs:164
↓ 4 callersMethodtexture_sample_type
(&self)
backends/conrod_wgpu/src/lib.rs:123
↓ 4 callersMethodtrack_widget_under_mouse_and_update_capturing
Determines which widget is currently under the mouse and sets it within the `Ui`'s `input::Global`'s `input::State`. If the `widget_under_mouse` has
conrod_core/src/ui.rs:340
↓ 4 callersMethodtriangles
Produces an `Iterator` yielding `Triangle`s. Triangles are created by joining each edge yielded by the inner `Circumference` to the middle of the `Ov
conrod_core/src/widget/primitive/shape/oval.rs:278
↓ 4 callersFunctionval_to_string
Get a suitable string from the value, its max and the pixel range.
conrod_core/src/utils.rs:108
↓ 4 callersMethodvertices
(&self)
backends/conrod_rendy/src/lib.rs:222
↓ 4 callersMethodw_of
Set the width as the width of the widget at the given index.
conrod_core/src/position/mod.rs:741
↓ 4 callersMethodwas_clicked
`true` if the `Button` was clicked one or more times.
conrod_core/src/widget/button.rs:131
↓ 4 callersFunctionwindowless_ui
()
conrod_core/src/tests/ui.rs:59
↓ 4 callersMethodwith_bounding_rect
Specify the bounding rectangle for the **Triangles**. Typically, the given `Rect` bounds should be the min and max positions along both axes that are
conrod_core/src/widget/primitive/shape/triangles.rs:268
↓ 4 callersMethodwrap_by_whitespace
The `TextEdit` will wrap text via the whitespace that precedes the first width-exceeding character. This is the default setting.
conrod_core/src/widget/text_edit.rs:115
↓ 4 callersMethodx_direction_from
Build with the **Position** along the *x* axis as some distance from the given widget.
conrod_core/src/position/mod.rs:292
↓ 4 callersMethody_align
Align the **Position** of the widget along the *y* axis.
conrod_core/src/position/mod.rs:329
↓ 4 callersMethody_direction_from
Build with the **Position** along the *y* axis as some distance from the given widget.
conrod_core/src/position/mod.rs:297
↓ 3 callersFunctionadvance_width
A function for finding the advance width between the given character that also considers the kerning for some previous glyph. This also updates the `
conrod_core/src/text.rs:1132
↓ 3 callersMethodalign_after
Aligns the `start` of `self` with the `end` of `other`. If the directions are opposite, aligns the `end` of self with the `end` of `other`. # Exampl
conrod_core/src/position/range.rs:583
↓ 3 callersMethodalign_before
Aligns the `end` of `self` with the `start` of `other`. If the directions are opposite, aligns the `start` of self with the `start` of `other`. # Ex
conrod_core/src/position/range.rs:611
↓ 3 callersMethodalign_middle_x
Align the position to the middle (only effective for Up or Down `Direction`s).
conrod_core/src/position/mod.rs:339
↓ 3 callersMethodalign_middle_y
Align the position to the middle (only effective for Left or Right `Direction`s).
conrod_core/src/position/mod.rs:354
↓ 3 callersMethodand_if
(self, cond: bool, build: F)
conrod_core/src/widget/mod.rs:849
↓ 3 callersFunctionassert_event_was_pushed
(ui: &Ui, event: event::Event)
conrod_core/src/tests/ui.rs:41
↓ 3 callersFunctionbutton_to_idx
Converts a `Button` to its respective index within the `ButtonMap`.
conrod_core/src/input/state.rs:250
↓ 3 callersFunctioncircumference
An iterator yielding the `Oval`'s edges as a circumference represented as a series of points. `resolution` is clamped to a minimum of `1` as to avoid
conrod_core/src/widget/primitive/shape/oval.rs:189
↓ 3 callersMethodclamp_to_lines
Clamps `self` to the given lines. If `self` would lie after the end of the last line, return the index at the end of the last line. If `line_infos`
conrod_core/src/text.rs:701
↓ 3 callersFunctionclosest_cursor_index_on_line
Find the closest cursor index to the given `x` position on the given line along with the `x` position of that cursor.
conrod_core/src/text.rs:870
↓ 3 callersMethodcolor
(mut self, color: Color)
conrod_core/src/widget/collapsible_area.rs:226
↓ 3 callersMethodcomplement
Produce a complementary color. The two colors will accent each other. This is the same as rotating the hue by 180 degrees.
conrod_core/src/color.rs:106
↓ 3 callersFunctioncomponent
(f: f32)
conrod_core/src/mesh.rs:614
↓ 3 callersFunctioncomponent
(f: f32)
backends/conrod_gfx/src/lib.rs:687
↓ 3 callersFunctioncomponent
(f: f32)
backends/conrod_glium/src/lib.rs:312
↓ 3 callersFunctioncropped_area_of_widget
The rectangle that represents the maximum visible area for the widget with the given index. Specifically, this considers the cropped scroll area for
conrod_core/src/graph/algo.rs:154
↓ 3 callersFunctiondefault_x_dimension
Determines the default **Dimension** for a **Widget**. This function checks for a default dimension in the following order. 1. Check for a default va
conrod_core/src/widget/mod.rs:435
↓ 3 callersMethoddepth_children
For walking the **Depth** children of the given parent node.
conrod_core/src/graph/mod.rs:527
↓ 3 callersMethoddimensions
(&self)
backends/conrod_rendy/src/lib.rs:183
↓ 3 callersMethoddoes_edge_exist
Does the given edge type exist between the nodes `parent` -> `child`. Returns `false` if either of the given node indices do not exist.
conrod_core/src/graph/mod.rs:557
↓ 3 callersMethodfont_id
Specify the font used for displaying the label.
conrod_core/src/widget/number_dialer.rs:143
↓ 3 callersMethodfont_id
Specify the font used for displaying the text.
conrod_core/src/widget/text_edit.rs:163
↓ 3 callersMethodfont_id
A method for specifying the `Font` used for displaying the `Text`.
conrod_core/src/widget/primitive/text.rs:110
↓ 3 callersMethodget_w
Get the absolute width of the widget as a Scalar value.
conrod_core/src/position/mod.rs:808
↓ 3 callersMethodglyph_cache
The rusttype glyph cache used for managing caching of glyphs into the pixel buffer.
conrod_core/src/mesh.rs:548
↓ 3 callersMethodh
Set the absolute height for the widget.
conrod_core/src/position/mod.rs:726
↓ 3 callersMethodh_of
Set the height as the height of the widget at the given index.
conrod_core/src/position/mod.rs:752
↓ 3 callersMethodheight
The height of the `Item`.
conrod_core/src/widget/list.rs:465
↓ 3 callersFunctionhsl
(hue: f32, saturation: f32, lightness: f32)
conrod_core/src/color.rs:79
↓ 3 callersFunctionhsl_to_rgb
Pure function for converting hsl to rgb.
conrod_core/src/color.rs:374
↓ 3 callersFunctionindex_before_char
Convert the given character index into a cursor `Index`.
conrod_core/src/text.rs:781
↓ 3 callersMethodinput_socket_layout
Specify the layout of the input sockets.
conrod_core/src/widget/graph/node.rs:189
↓ 3 callersMethodis_over
Returns either of the following: - A `Function` that can be used to describe whether or not a given point is over the widget. - The `Id` of another `
conrod_core/src/widget/mod.rs:707
↓ 3 callersMethodkid_area_w_of
Set the width as the width of the padded area of the widget at the given index.
conrod_core/src/position/mod.rs:774
↓ 3 callersMethodlabel_font_size
(mut self, size: conrod_core::FontSize)
backends/conrod_glium/examples/custom_widget.rs:240
↓ 3 callersMethodlabel_x
Specify the label's position relatively to `Button` along the *x* axis.
conrod_core/src/widget/button.rs:265
↓ 3 callersMethodlength
Set the length of the Split as an absolute scalar.
conrod_core/src/widget/canvas.rs:151
↓ 3 callersFunctionload_image
Load an image from our assets folder as a texture we can draw to the screen.
backends/conrod_glium/examples/image_button.rs:150
↓ 3 callersMethodmid_left_with_margin_on
Place the widget in the middle of the left edge of the given Widget with the given margin between the edges.
conrod_core/src/position/mod.rs:540
↓ 3 callersMethodmid_top_with_margin_on
Place the widget in the middle of the top edge of the given Widget with the given margin between the edges.
conrod_core/src/position/mod.rs:514
↓ 3 callersFunctionnew_floating
()
conrod_core/src/widget/mod.rs:1045
↓ 3 callersMethodnext
(&mut self, graph: &Graph)
conrod_core/src/graph/mod.rs:838
↓ 3 callersMethodnext_primitive
(&mut self)
conrod_core/src/render.rs:64
↓ 3 callersMethodnode
Borrow the node at the given **widget::Id** if there is one.
conrod_core/src/graph/mod.rs:336
↓ 3 callersMethodoffset_radians
The radians at which the section will begin. A value of `0.0` will begin at the rightmost point of the oval.
conrod_core/src/widget/primitive/shape/oval.rs:138
↓ 3 callersMethodoutput_socket_layout
Specify the layout of the input sockets.
conrod_core/src/widget/graph/node.rs:195
↓ 3 callersMethodoverlap
The Rect representing the area in which two Rects overlap.
conrod_core/src/position/rect.rs:63
↓ 3 callersMethodpad_ends
The Range with some padding given for each end. # Examples ``` use conrod_core::Range; assert_eq!(Range::new(0.0, 10.0).pad_ends(1.0, 2.0), Range::
conrod_core/src/position/range.rs:398
↓ 3 callersFunctionpartial_min
Compare to PartialOrd values and return the min.
conrod_core/src/utils.rs:12
↓ 3 callersMethodpattern
The style with some given pattern.
conrod_core/src/widget/primitive/line.rs:185
← previousnext →201–300 of 1,384, ranked by callers