MCPcopy Create free account

hub / github.com/PistonDevelopers/conrod / functions

Functions1,384 in github.com/PistonDevelopers/conrod

↓ 3 callersFunctionpoints
Produce an iterator yielding the outer points of a rounded rectangle. - `rect` describes the location and dimensions - `radius` describes the radius
conrod_core/src/widget/rounded_rectangle.rs:153
↓ 3 callersMethodpresses
Filters all events yielded by `Self::events` other than `event::Press`es.
conrod_core/src/input/widget.rs:207
↓ 3 callersMethodprevious
The cursor index that comes before `self`. If `self` is at the beginning of the text, this returns `None`. If `self` is at the beginning of a line o
conrod_core/src/text.rs:635
↓ 3 callersFunctionrects
Produce an iterator yielding the bounding `Rect` for each line in the text. This function assumes that `font_size` is the same `FontSize` used to pro
conrod_core/src/text.rs:1410
↓ 3 callersFunctionref_mut_from_ui_cell
A function for retrieving the `&mut Ui<B>` from a `UiCell<B>`. This function is only for internal use to allow for some `Ui` type acrobatics in order
conrod_core/src/ui.rs:1406
↓ 3 callersMethodremove_parent_edge
Remove the parent edge of the given kind for the given index if there is one. Returns `true` if an edge was removed. Returns `false` if no edges wer
conrod_core/src/graph/mod.rs:319
↓ 3 callersMethodrgb
Set the color of the widget from rgb values.
conrod_core/src/color.rs:530
↓ 3 callersFunctionrgb_to_hsl
Pure function for converting rgb to hsl. Inputs expected to be between `0.0` and `1.0`. Outputs `[0.0, 2*PI)` for `h`, `[0.0, 1.0]` for both `s` and `
conrod_core/src/color.rs:345
↓ 3 callersMethodright
The Rect's highest x value.
conrod_core/src/position/rect.rs:149
↓ 3 callersFunctionsampler_img_state
(queue_id: QueueId)
backends/conrod_rendy/src/lib.rs:523
↓ 3 callersMethodscrollbar_color
The color of the `Scrollbar`.
conrod_core/src/widget/list.rs:338
↓ 3 callersMethodscrollbar_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.rs:326
↓ 3 callersMethodscrollbar_thickness
The width of the `Scrollbar`.
conrod_core/src/widget/list.rs:332
↓ 3 callersMethodset_color
Set the color for the line.
conrod_core/src/widget/primitive/line.rs:214
↓ 3 callersMethodset_thickness
Set the thickness for the line.
conrod_core/src/widget/primitive/line.rs:219
↓ 3 callersFunctionsign
(a: Point, b: Point, c: Point)
conrod_core/src/widget/primitive/shape/triangles.rs:459
↓ 3 callersFunctiontext
(text: widget::Text)
backends/conrod_glium/examples/canvas.rs:192
↓ 3 callersMethodtop_left_of
Place `self` along the top left edges of the `other` **Rect**.
conrod_core/src/position/rect.rs:392
↓ 3 callersMethodtop_left_with_margins_on
Place the widget in the top left corner of the given Widget with the given margins between each respective edge.
conrod_core/src/position/mod.rs:436
↓ 3 callersMethodupdate
Update the state of the Line.
conrod_core/src/widget/primitive/point_path.rs:167
↓ 3 callersMethodupdate
Update the state of the Polygon.
conrod_core/src/widget/primitive/shape/polygon.rs:220
↓ 3 callersMethodupdate
(self, args: widget::UpdateArgs<Self>)
conrod_core/src/widget/primitive/shape/triangles.rs:345
↓ 3 callersMethodw
Set the absolute width for the widget.
conrod_core/src/position/mod.rs:721
↓ 3 callersFunctionwidth
Produce the width of the given line of text including spaces (i.e. ' ').
conrod_core/src/text.rs:1347
↓ 3 callersMethodwidth
The width of the `Item`.
conrod_core/src/widget/list.rs:458
↓ 3 callersMethodwrap_by_character
By default, the `TextEdit` will wrap text via the whitespace that precedes the first width-exceeding character. Calling this method causes the `TextE
conrod_core/src/widget/text_edit.rs:123
↓ 3 callersMethodx_align
Align the **Position** of the widget along the *x* axis.
conrod_core/src/position/mod.rs:324
↓ 3 callersMethodx_align_to
Align the **Position** of the widget with the given widget along the *x* axis.
conrod_core/src/position/mod.rs:364
↓ 3 callersMethodx_position
(mut self, pos: Position)
conrod_core/src/position/matrix.rs:93
↓ 3 callersFunctionxys_per_line_from_text
Similarly to `xys_per_line`, this produces an iterator yielding every possible cursor position within each line of text yielded by the given iterator.
conrod_core/src/text.rs:754
↓ 3 callersMethody_align_to
Align the **Position** of the widget with the given widget along the *y* axis.
conrod_core/src/position/mod.rs:369
↓ 3 callersMethody_position
(mut self, pos: Position)
conrod_core/src/position/matrix.rs:98
↓ 2 callersMethodadd_placeholder
Add a new placeholder node and return it's `widget::Id` into the `Graph`. This method is used by the `widget::set_widget` function when some internal
conrod_core/src/graph/mod.rs:331
↓ 2 callersMethodand_mut
(mut self, mutate: F)
conrod_core/src/widget/mod.rs:835
↓ 2 callersMethodbackground_color
Color the **Graph**'s rectangular area with the given color.
conrod_core/src/widget/graph/mod.rs:850
↓ 2 callersMethodbar_thickness
The width of a vertical `Tabs` selection bar, or the height of a horizontal one.
conrod_core/src/widget/tabs.rs:167
↓ 2 callersFunctionbind_group
( device: &wgpu::Device, layout: &wgpu::BindGroupLayout, glyph_cache_tex: &wgpu::Texture, samp
backends/conrod_wgpu/src/lib.rs:604
↓ 2 callersFunctionbind_group_layout
( device: &wgpu::Device, img_tex_component_ty: wgpu::TextureSampleType, )
backends/conrod_wgpu/src/lib.rs:559
↓ 2 callersMethodborder
(mut self, border: Scalar)
conrod_core/src/widget/collapsible_area.rs:233
↓ 2 callersMethodborder_color
(self, color: Color)
conrod_core/src/widget/tabs.rs:423
↓ 2 callersMethodborder_color
(mut self, color: Color)
conrod_core/src/widget/collapsible_area.rs:237
↓ 2 callersFunctionborder_triangles
The eight triangles that describe a rectangular border. `rect` specifies the outer rectangle and `border` specifies the thickness of the border. Ret
conrod_core/src/widget/bordered_rectangle.rs:120
↓ 2 callersMethodbottom_right_of
Place `self` along the bottom right edges of the `other` **Rect**.
conrod_core/src/position/rect.rs:407
↓ 2 callersFunctionbounding_rect_for_triangles
(triangles: I)
conrod_core/src/widget/primitive/shape/triangles.rs:213
↓ 2 callersMethodbutton_style
Style for a `Button` given this `Style`'s current state.
conrod_core/src/widget/drop_down_list.rs:372
↓ 2 callersFunctioncalc_height
Calculate the default height for the **TitleBar**'s rect.
conrod_core/src/widget/title_bar.rs:129
↓ 2 callersMethodcalc_rect
(&self)
conrod_core/src/widget/primitive/line.rs:151
↓ 2 callersMethodcalc_xy
Get the centred xy coords for some given `Dimension`s, `Position` and alignment. If getting the xy for a specific widget, its `widget::Id` should be
conrod_core/src/ui.rs:992
↓ 2 callersMethodclick_selection
( &self, _: event::Click, i: usize, _num_items: usize, state: &State,
conrod_core/src/widget/list_select.rs:591
↓ 2 callersMethodcolor
(self, color: Color)
conrod_core/src/widget/tabs.rs:408
↓ 2 callersMethodcommands
Produce an `Iterator` yielding `Command`s.
backends/conrod_gfx/src/lib.rs:236
↓ 2 callersFunctioncommon_builder_field
Find the name of the struct and the field with the `CommonBuilder` attribute.
conrod_derive/src/common.rs:68
↓ 2 callersFunctionconv_vertex_buffer
(buffer: &[mesh::Vertex])
backends/conrod_vulkano/src/lib.rs:505
↓ 2 callersMethodcreate_buffer
Creates a buffer on the GPU loaded with the updated pixel data. Created with `BufferUsages::COPY_SRC`, ready to be copied to the texture. TODO: In t
backends/conrod_wgpu/src/lib.rs:450
↓ 2 callersFunctioncreate_framebuffers
( window: &support::Window, render_pass: Arc<RenderPass>, depth_buffer: Arc<AttachmentImage>, )
backends/conrod_vulkano/examples/list_select_vulkano.rs:325
↓ 2 callersFunctioncreate_framebuffers
( window: &support::Window, render_pass: Arc<RenderPass>, depth_buffer: Arc<AttachmentImage>, )
backends/conrod_vulkano/examples/all_winit_vulkano.rs:311
↓ 2 callersFunctioncreate_glyph_cache_descriptor
Create the glyph cache texture sampler descriptor.
backends/conrod_rendy/src/lib.rs:533
↓ 2 callersFunctioncreate_multisampled_framebuffer
( device: &wgpu::Device, surface_config: &wgpu::SurfaceConfiguration, sample_count: u32, )
backends/conrod_wgpu/examples/all_winit_wgpu.rs:265
↓ 2 callersFunctioncreate_texture
Creates a gfx texture with the given data
backends/conrod_gfx/src/lib.rs:699
↓ 2 callersFunctioncropped_area_of_widget_maybe_within_depth
Logic shared between the `cropped_area_of_widget` and `cropped_area_of_widget_within_depth` functions.
conrod_core/src/graph/algo.rs:174
↓ 2 callersFunctiondefault_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:403
↓ 2 callersMethoddepth_parent
Return the index of the parent along the given widget's **Depth** **Edge**.
conrod_core/src/graph/mod.rs:400
↓ 2 callersMethoddispose
(self, _factory: &mut Factory<B>, _aux: &T)
backends/conrod_rendy/src/lib.rs:520
↓ 2 callersMethoddoes_recursive_depth_edge_exist
Are the given `parent` and `child` nodes connected by a single chain of **Depth** edges? i.e. `parent` -> x -> y -> `child`. Returns `false` if eith
conrod_core/src/graph/mod.rs:611
↓ 2 callersMethoddoes_recursive_edge_exist
Are the given `parent` and `child` nodes connected by a single chain of edges of the given kind? i.e. `parent` -> x -> y -> `child`. Returns `false`
conrod_core/src/graph/mod.rs:593
↓ 2 callersMethoddrags
Produces an iterator that yields all `event::Drag` events yielded by the `Events` iterator. Only events that occurred while the widget was capturing
conrod_core/src/input/widget.rs:244
↓ 2 callersFunctiondraw
Draws the given `primitives` to the given `Display`.
backends/conrod_glium/examples/all_winit_glium_threaded.rs:135
↓ 2 callersFunctionf32_pt_to_px
Converts the given font size in "points" to its font size in pixels. This is useful for when the font size is not an integer.
conrod_core/src/text.rs:67
↓ 2 callersMethodfill
Fill the inner vertex and command buffers by translating the given `primitives`.
backends/conrod_gfx/src/lib.rs:249
↓ 2 callersMethodfill
Fill the inner vertex and command buffers by translating the given `primitives`. This method may return an `Option<GlyphCacheCommand>`, in which case
backends/conrod_vulkano/src/lib.rs:357
↓ 2 callersMethodflow_right
Begin building a new `List` flowing from left to right.
conrod_core/src/widget/list.rs:224
↓ 2 callersFunctionfmod
Modulo float.
conrod_core/src/utils.rs:57
↓ 2 callersMethodget_unchecked
Convert the **MaybeParent** into an **Option<Id>**. If `Unspecified`, check the positioning to retrieve the **Id** from there. If `None`, the `Ui`'s
conrod_core/src/widget/mod.rs:172
↓ 2 callersMethodget_wh
The dimensions for the widget.
conrod_core/src/position/mod.rs:830
↓ 2 callersFunctionget_window_dimensions
( ctx: &glutin::WindowedContext<glutin::PossiblyCurrent>, )
backends/conrod_gfx/examples/all_winit_gfx.rs:30
↓ 2 callersMethodget_x_position
(&self, ui: &Ui)
conrod_core/src/widget/mod.rs:1314
↓ 2 callersMethodget_y_position
(&self, ui: &Ui)
conrod_core/src/widget/mod.rs:1327
↓ 2 callersMethodgraphic_parent_recursion
A **Walker** type that recursively walks **Graphic** parents starting from the given node.
conrod_core/src/graph/mod.rs:469
↓ 2 callersFunctiongui
( ui: &mut conrod_core::UiCell, ids: &Ids, list_items: &[String], list_selected: &mut HashSet<
backends/conrod_vulkano/examples/list_select_vulkano.rs:348
↓ 2 callersMethodhidpi_factor
(&self)
backends/conrod_vulkano/examples/support/mod.rs:155
↓ 2 callersFunctionhorizontal_tab_bar_h
The height of a horizontally laid out tab bar area.
conrod_core/src/widget/tabs.rs:390
↓ 2 callersMethodimage
Begin building a button displaying the given `Image` on top.
conrod_core/src/widget/button.rs:150
↓ 2 callersMethodimage_map
(&self)
backends/conrod_rendy/src/lib.rs:202
↓ 2 callersFunctionimpl_tokens
(params: &Params, crate_tokens: Option<syn::Ident>)
conrod_derive/src/style.rs:40
↓ 2 callersFunctioninfer_parent_unchecked
Attempts to infer the parent of a widget from its *x*/*y* `Position`s and the current state of the `Ui`. If no parent can be inferred via the `Positi
conrod_core/src/ui.rs:1446
↓ 2 callersFunctioninfer_position_from_other_position
In the case that a position hasn't been given for one of the axes, we must first check to see if we can infer the missing axis position from the other
conrod_core/src/widget/mod.rs:1354
↓ 2 callersMethodinsert
Inserts the given image into the map, returning its associated `image::Id`. The user *must store the returned `image::Id` in order to use, modify or r
conrod_core/src/image.rs:69
↓ 2 callersFunctioninteraction_and_times_triggered
(button_id: widget::Id, ui: &UiCell)
conrod_core/src/widget/button.rs:407
↓ 2 callersFunctionis_over
Returns `true` if the given `Point` is over an oval at the given rect.
conrod_core/src/widget/primitive/shape/oval.rs:322
↓ 2 callersMethodis_over
Is the mouse currently over the widget.
conrod_core/src/input/widget.rs:280
↓ 2 callersFunctionlabel
(button_id: widget::Id, label_id: widget::Id, label: &str, style: &Style, ui: &mut UiCell)
conrod_core/src/widget/button.rs:461
↓ 2 callersMethodlabel_font_id
Specify the font for the `CollapsibleArea`'s label.
conrod_core/src/widget/collapsible_area.rs:104
↓ 2 callersMethodlabel_font_id
Specify the font used for displaying the label.
backends/conrod_glium/examples/custom_widget.rs:99
↓ 2 callersMethodluminance
Calculate and return the luminance of the Color.
conrod_core/src/color.rs:117
↓ 2 callersMethodmax
The Range that encompasses both self and the given Range. The returned Range's `start` will always be <= its `end`. # Examples ``` use conrod_core:
conrod_core/src/position/range.rs:231
↓ 2 callersFunctionmax_text_width
Calculate the max text width yielded by a string in the tabs slice.
conrod_core/src/widget/tabs.rs:349
↓ 2 callersMethodmaybe_prev_widget
An index to the previously updated widget if there is one.
conrod_core/src/ui.rs:273
↓ 2 callersMethodmid_bottom_with_margin_on
Place the widget in the middle of the bottom edge of the given Widget with the given margin between the edges.
conrod_core/src/position/mod.rs:527
↓ 2 callersMethodmid_right_of
Place `self` in the middle of the right edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:427
↓ 2 callersMethodmid_right_with_margin_on
Place the widget in the middle of the right edge of the given Widget with the given margin between the edges.
conrod_core/src/position/mod.rs:553
← previousnext →301–400 of 1,384, ranked by callers