MCPcopy Create free account

hub / github.com/PistonDevelopers/conrod / functions

Functions1,384 in github.com/PistonDevelopers/conrod

↓ 192 callersMethodclone
(&self)
conrod_core/src/text.rs:1070
↓ 175 callersMethodset
Sets the given widget as the widget to use for the item. Sets the: - position of the widget. - dimensions of the widget. - parent of the widget. - an
conrod_core/src/widget/list.rs:434
↓ 160 callersMethodmap
Map over the inner widget.
conrod_core/src/widget/graph/mod.rs:650
↓ 133 callersMethodlen
The length of the longest side of the rectangle.
conrod_core/src/position/rect.rs:129
↓ 87 callersMethodand_then
(self, maybe: Option<T>, build: F)
conrod_core/src/widget/mod.rs:866
↓ 81 callersMethodtheme
The theme used to set default styling for widgets. If this field is `None` when `build` is called, `Theme::default` will be used.
conrod_core/src/ui.rs:134
↓ 62 callersMethodcolor
Use the specified color to uniquely color the this set of lines.
conrod_core/src/widget/grid.rs:107
↓ 60 callersMethodxy
The xy position in the middle of the bounds.
conrod_core/src/position/rect.rs:88
↓ 59 callersMethodcolor
(mut self, color: conrod_core::Color)
backends/conrod_glium/examples/custom_widget.rs:223
↓ 58 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_glium/src/lib.rs:912
↓ 49 callersMethodwidget_id_generator
Produces a type that may be used to generate new unique `widget::Id`s. See the [**widget::id::Generator**](../widget/id/struct.Generator.html) docs f
conrod_core/src/ui.rs:302
↓ 45 callersMethodborder
(self, width: f64)
conrod_core/src/widget/tabs.rs:417
↓ 45 callersMethodget
The same as `get_unchecked`, but checks whether or not the widget that we're inferring the parent for is the `Ui`'s window (which cannot have a parent
conrod_core/src/widget/mod.rs:182
↓ 45 callersMethodleft
The state of the left mouse button.
conrod_core/src/input/state.rs:216
↓ 44 callersMethodgraphics_for
Indicates that the **Widget** is used as a non-interactive graphical element for some other widget. This is useful for **Widget**s that are used to c
conrod_core/src/widget/mod.rs:760
↓ 42 callersMethodbuild
( self, _ctx: &GraphContext<B>, factory: &mut Factory<B>, queue: QueueId,
backends/conrod_rendy/src/lib.rs:254
↓ 42 callersMethodparent
Set the parent widget for this Widget by passing the WidgetId of the parent. This will attach this Widget to the parent widget.
conrod_core/src/widget/mod.rs:719
↓ 40 callersMethodw_h
The width and height of the Rect as a tuple.
conrod_core/src/position/rect.rs:113
↓ 39 callersMethodinto
(self)
conrod_core/src/color.rs:330
↓ 36 callersMethodinto
(self)
conrod_core/src/widget/graph/mod.rs:466
↓ 36 callersMethodmiddle_of
Place `self` directly in the middle of the `other` **Rect**.
conrod_core/src/position/rect.rs:432
↓ 36 callersMethodw
The width of the Rect.
conrod_core/src/position/rect.rs:98
↓ 36 callersMethodwidget_input
Returns a `input::Widget` for the given widget
conrod_core/src/ui.rs:216
↓ 33 callersMethodextend
Insert each of the images yielded by the given iterator and produce an iterator yielding their generated `Ids` in the same order. Note: Calling this
conrod_core/src/image.rs:100
↓ 33 callersMethodh
The height of the Rect.
conrod_core/src/position/rect.rs:103
↓ 32 callersMethodborder_color
Specify the color for the node's border.
conrod_core/src/widget/graph/node.rs:171
↓ 32 callersMethodpush_event
Add the new event to the stack.
conrod_core/src/input/global.rs:60
↓ 31 callersMethoddim
The total dimensions of the Rect.
conrod_core/src/position/rect.rs:108
↓ 31 callersMethodhandle_event
Handle raw window events and update the `Ui` state accordingly. This occurs within several stages: 1. Convert the user's given `event` to a `RawEven
conrod_core/src/ui.rs:390
↓ 30 callersMethodto_rgb
Extract the components of a color in the RGB format.
conrod_core/src/color.rs:155
↓ 29 callersMethodset_widgets
A function within which all widgets are instantiated by the user, normally situated within the "update" stage of an event loop.
conrod_core/src/ui.rs:1138
↓ 28 callersFunctionmap_range
Map a value from a given range to a new given range.
conrod_core/src/utils.rs:72
↓ 26 callersMethodinsert
Adds the given `rusttype::Font` to the `Map` and returns a unique `Id` for it.
conrod_core/src/text.rs:167
↓ 26 callersMethodnext
Generate a new, unique `widget::Id` into a Placeholder node within the widget graph. This should only be called once for each unique widget needed to
conrod_core/src/widget/id.rs:52
↓ 25 callersMethodinsert_from_file
Insert a single `Font` into the map by loading it from the given file path.
conrod_core/src/text.rs:176
↓ 25 callersMethodmouse
If the widget is currently capturing the mouse, this returns the state of the mouse. Returns `None` if the widget is not capturing the mouse.
conrod_core/src/input/widget.rs:177
↓ 24 callersMethodplain_contrast
Return either black or white, depending which contrasts the Color the most. This will be useful for determining a readable color for text on any given
conrod_core/src/color.rs:126
↓ 24 callersMethodright
The state of the right mouse button.
conrod_core/src/input/state.rs:226
↓ 22 callersMethodwh
Set the dimensions for the widget.
conrod_core/src/position/mod.rs:731
↓ 21 callersMethodas_ref
(&self)
conrod_core/src/widget/primitive/shape/triangles.rs:446
↓ 21 callersMethodhas_changed
Returns if the redraw_count is greater than 0 and thus draw_if_changed would draw See `Ui::draw_if_changed` for when this is triggered
conrod_core/src/ui.rs:1258
↓ 21 callersMethodx_place
Place the widget at some position on the Widget along the *x* axis.
conrod_core/src/position/mod.rs:559
↓ 21 callersMethodx_place_on
Place the widget at some position on the `other` Widget along the *x* axis.
conrod_core/src/position/mod.rs:406
↓ 21 callersMethody_place
Place the widget at some position on the Widget along the *y* axis.
conrod_core/src/position/mod.rs:564
↓ 21 callersMethody_place_on
Place the widget at some position on the `other` Widget along the *y* axis.
conrod_core/src/position/mod.rs:411
↓ 20 callersMethodbottom
The Rect's lowest y value.
conrod_core/src/position/rect.rs:134
↓ 20 callersMethodfill
Fill the inner vertex and command buffers by translating the given `primitives`.
backends/conrod_glium/src/lib.rs:503
↓ 20 callersMethodinto
(self)
backends/conrod_rendy/src/lib.rs:174
↓ 20 callersMethodmiddle
The state of the middle mouse button.
conrod_core/src/input/state.rs:221
↓ 20 callersMethodpad
Set the padding for all edges.
conrod_core/src/widget/tabs.rs:95
↓ 20 callersMethodtop
The Rect's highest y value.
conrod_core/src/position/rect.rs:139
↓ 19 callersMethodabs
Build a new **Line** whose bounding box is fit to the absolute co-ordinates of the line points. If you would rather centre the start and end to the m
conrod_core/src/widget/primitive/line.rs:92
↓ 19 callersMethodids
Produces an iterator yielding the `Id` for each `Font` within the `Map`.
conrod_core/src/text.rs:185
↓ 19 callersMethodnext
Produce an iterator yielding all available events.
backends/conrod_glium/examples/tutorial/chapter3_hello_world.rs:117
↓ 18 callersFunctionclamp
Clamp a value between some range.
conrod_core/src/utils.rs:30
↓ 18 callersMethoddown
Build with the **Position** as some distance below another widget.
conrod_core/src/position/mod.rs:272
↓ 18 callersMethodlabel
(mut self, text: &'a str)
backends/conrod_glium/examples/custom_widget.rs:232
↓ 18 callersFunctionrun_loop
In most of the examples the `glutin` crate is used for providing the window context and events while the `glium` crate is used for displaying `conrod_
backends/conrod_glium/examples/support/mod.rs:26
↓ 18 callersMethodwidget
If there is a Widget for the given index, return a reference to it.
conrod_core/src/graph/mod.rs:361
↓ 17 callersMethodlabel_color
Specify the color of the `CollapsibleArea`'s label.
conrod_core/src/widget/collapsible_area.rs:92
↓ 17 callersMethodlabel_font_size
Specify the font size for the `CollapsibleArea`'s label.
conrod_core/src/widget/collapsible_area.rs:98
↓ 16 callersMethodclear
Removes all **Node**s and **Edge**s from the **Graph**.
conrod_core/src/graph/mod.rs:220
↓ 16 callersMethodhighlighted
Return a highlighted version of the current Color.
conrod_core/src/color.rs:213
↓ 16 callersMethodrect_of
The **Rect** for the widget at the given index. Returns `None` if there is no widget for the given index.
conrod_core/src/ui.rs:231
↓ 15 callersMethodalign_middle_x_of
Align the middle of `self` with the middle of the `other` **Rect** along the *x* axis.
conrod_core/src/position/rect.rs:352
↓ 15 callersMethodlabel_color
(mut self, color: conrod_core::Color)
backends/conrod_glium/examples/custom_widget.rs:236
↓ 15 callersFunctionnew_primitive
Simplify the constructor for a `Primitive`.
conrod_core/src/render.rs:893
↓ 15 callersFunctionvec2_sub
Subtract `b` from `a`.
conrod_core/src/utils.rs:163
↓ 14 callersMethodis_down
Is the `ButtonPosition` down.
conrod_core/src/input/state.rs:163
↓ 14 callersMethodl_r_b_t
The edges of the **Rect** in a tuple (top, bottom, left, right).
conrod_core/src/position/rect.rs:174
↓ 14 callersMethodnext
Yield the next `Primitive` for rendering.
conrod_core/src/render.rs:295
↓ 14 callersFunctionrgb
(r: f32, g: f32, b: f32)
conrod_core/src/color.rs:38
↓ 13 callersMethodclicked
Return a clicked version of the current Color.
conrod_core/src/color.rs:234
↓ 13 callersMethodevents
Produces an iterator yielding all events that are relevant to a specific widget. All events provided by this Iterator will be filtered in accordance
conrod_core/src/input/widget.rs:196
↓ 13 callersMethodset
Set the given widget for the node at `node_id()`.
conrod_core/src/widget/graph/mod.rs:668
↓ 13 callersFunctionvec2_add
Add `a` and `b`.
conrod_core/src/utils.rs:155
↓ 12 callersMethodbutton
Produces an `Iterator` that yields only events associated with the given mouse button.
conrod_core/src/input/widget.rs:300
↓ 12 callersMethodround
Round 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).round(),
conrod_core/src/position/range.rs:326
↓ 12 callersMethodto_fsa
Extract the components of a color in the RGB format within a fixed-size array.
conrod_core/src/color.rs:166
↓ 12 callersFunctiontriangles
Given two points and half the line thickness, return the two triangles that describe the line.
conrod_core/src/widget/primitive/line.rs:347
↓ 11 callersMethodalign_end_of
Align the `end` of `self` to the `end` of the `other` **Range**. If the direction of `other` is different to `self`, `self`'s `start` will be aligned
conrod_core/src/position/range.rs:533
↓ 11 callersFunctionpush_event
Pushes an event onto the given global input with a default drag threshold.
conrod_core/src/tests/global_input.rs:8
↓ 11 callersMethodwidget_graph
Borrow the **Ui**'s `widget_graph`.
conrod_core/src/ui.rs:278
↓ 10 callersMethodalign_start_of
Align the `start` of `self` to the `start` of the `other` **Range**. If the direction of `other` is different to `self`, `self`'s `end` will be align
conrod_core/src/position/range.rs:504
↓ 10 callersMethodalpha
Return the same color but with the alpha multiplied by the given alpha.
conrod_core/src/color.rs:197
↓ 10 callersMethodclear
Call this routine to clear the render target.
backends/conrod_gfx/src/lib.rs:678
↓ 10 callersMethodcolor
Specify the color for the node's inner rectangle.
conrod_core/src/widget/graph/node.rs:156
↓ 10 callersMethodget
Borrow the `rusttype::Font` associated with the given `font::Id`.
conrod_core/src/text.rs:162
↓ 10 callersMethodget_x
Return the X value.
conrod_core/src/widget/envelope_editor.rs:112
↓ 10 callersMethodis_over
(&self)
conrod_core/src/widget/plot_path.rs:89
↓ 10 callersMethodthickness
Specify a unique thickness for these lines.
conrod_core/src/widget/grid.rs:101
↓ 10 callersMethodxy_dim
Convert the Rect to a `Point` and `Dimensions`.
conrod_core/src/position/rect.rs:118
↓ 9 callersMethodauto_hide
By default, this is set to `false`. When false, the `Scrollbar` will always be visible. When true, the `Scrollbar` will only be visible when: - The
conrod_core/src/widget/scrollbar.rs:89
↓ 9 callersMethodglobal_input
Get an immutable reference to global input. Handles aggregation of events and providing them to Widgets Can be used to access the current input state
conrod_core/src/ui.rs:961
↓ 9 callersMethodlayout
(&self)
backends/conrod_rendy/src/lib.rs:226
↓ 9 callersMethodmax
The Rect that encompass the two given sets of Rect.
conrod_core/src/position/rect.rs:70
↓ 9 callersMethodmid_left_of
Place `self` in the middle of the left edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:422
↓ 9 callersMethodparents
A **Walker** type that may be used to step through the parents of the given child node.
conrod_core/src/graph/mod.rs:377
↓ 9 callersFunctionrgba
(r: f32, g: f32, b: f32, a: f32)
conrod_core/src/color.rs:32
↓ 9 callersFunctiontest_handling_basic_input_event
(ui: &mut Ui, event: Input)
conrod_core/src/tests/ui.rs:36
next →1–100 of 1,384, ranked by callers