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
↓ 192 callers
Method
clone
(&self)
conrod_core/src/text.rs:1070
↓ 175 callers
Method
set
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 callers
Method
map
Map over the inner widget.
conrod_core/src/widget/graph/mod.rs:650
↓ 133 callers
Method
len
The length of the longest side of the rectangle.
conrod_core/src/position/rect.rs:129
↓ 87 callers
Method
and_then
(self, maybe: Option<T>, build: F)
conrod_core/src/widget/mod.rs:866
↓ 81 callers
Method
theme
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 callers
Method
color
Use the specified color to uniquely color the this set of lines.
conrod_core/src/widget/grid.rs:107
↓ 60 callers
Method
xy
The xy position in the middle of the bounds.
conrod_core/src/position/rect.rs:88
↓ 59 callers
Method
color
(mut self, color: conrod_core::Color)
backends/conrod_glium/examples/custom_widget.rs:223
↓ 58 callers
Method
draw
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 callers
Method
widget_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 callers
Method
border
(self, width: f64)
conrod_core/src/widget/tabs.rs:417
↓ 45 callers
Method
get
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 callers
Method
left
The state of the left mouse button.
conrod_core/src/input/state.rs:216
↓ 44 callers
Method
graphics_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 callers
Method
build
( self, _ctx: &GraphContext<B>, factory: &mut Factory<B>, queue: QueueId,
backends/conrod_rendy/src/lib.rs:254
↓ 42 callers
Method
parent
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 callers
Method
w_h
The width and height of the Rect as a tuple.
conrod_core/src/position/rect.rs:113
↓ 39 callers
Method
into
(self)
conrod_core/src/color.rs:330
↓ 36 callers
Method
into
(self)
conrod_core/src/widget/graph/mod.rs:466
↓ 36 callers
Method
middle_of
Place `self` directly in the middle of the `other` **Rect**.
conrod_core/src/position/rect.rs:432
↓ 36 callers
Method
w
The width of the Rect.
conrod_core/src/position/rect.rs:98
↓ 36 callers
Method
widget_input
Returns a `input::Widget` for the given widget
conrod_core/src/ui.rs:216
↓ 33 callers
Method
extend
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 callers
Method
h
The height of the Rect.
conrod_core/src/position/rect.rs:103
↓ 32 callers
Method
border_color
Specify the color for the node's border.
conrod_core/src/widget/graph/node.rs:171
↓ 32 callers
Method
push_event
Add the new event to the stack.
conrod_core/src/input/global.rs:60
↓ 31 callers
Method
dim
The total dimensions of the Rect.
conrod_core/src/position/rect.rs:108
↓ 31 callers
Method
handle_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 callers
Method
to_rgb
Extract the components of a color in the RGB format.
conrod_core/src/color.rs:155
↓ 29 callers
Method
set_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 callers
Function
map_range
Map a value from a given range to a new given range.
conrod_core/src/utils.rs:72
↓ 26 callers
Method
insert
Adds the given `rusttype::Font` to the `Map` and returns a unique `Id` for it.
conrod_core/src/text.rs:167
↓ 26 callers
Method
next
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 callers
Method
insert_from_file
Insert a single `Font` into the map by loading it from the given file path.
conrod_core/src/text.rs:176
↓ 25 callers
Method
mouse
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 callers
Method
plain_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 callers
Method
right
The state of the right mouse button.
conrod_core/src/input/state.rs:226
↓ 22 callers
Method
wh
Set the dimensions for the widget.
conrod_core/src/position/mod.rs:731
↓ 21 callers
Method
as_ref
(&self)
conrod_core/src/widget/primitive/shape/triangles.rs:446
↓ 21 callers
Method
has_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 callers
Method
x_place
Place the widget at some position on the Widget along the *x* axis.
conrod_core/src/position/mod.rs:559
↓ 21 callers
Method
x_place_on
Place the widget at some position on the `other` Widget along the *x* axis.
conrod_core/src/position/mod.rs:406
↓ 21 callers
Method
y_place
Place the widget at some position on the Widget along the *y* axis.
conrod_core/src/position/mod.rs:564
↓ 21 callers
Method
y_place_on
Place the widget at some position on the `other` Widget along the *y* axis.
conrod_core/src/position/mod.rs:411
↓ 20 callers
Method
bottom
The Rect's lowest y value.
conrod_core/src/position/rect.rs:134
↓ 20 callers
Method
fill
Fill the inner vertex and command buffers by translating the given `primitives`.
backends/conrod_glium/src/lib.rs:503
↓ 20 callers
Method
into
(self)
backends/conrod_rendy/src/lib.rs:174
↓ 20 callers
Method
middle
The state of the middle mouse button.
conrod_core/src/input/state.rs:221
↓ 20 callers
Method
pad
Set the padding for all edges.
conrod_core/src/widget/tabs.rs:95
↓ 20 callers
Method
top
The Rect's highest y value.
conrod_core/src/position/rect.rs:139
↓ 19 callers
Method
abs
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 callers
Method
ids
Produces an iterator yielding the `Id` for each `Font` within the `Map`.
conrod_core/src/text.rs:185
↓ 19 callers
Method
next
Produce an iterator yielding all available events.
backends/conrod_glium/examples/tutorial/chapter3_hello_world.rs:117
↓ 18 callers
Function
clamp
Clamp a value between some range.
conrod_core/src/utils.rs:30
↓ 18 callers
Method
down
Build with the **Position** as some distance below another widget.
conrod_core/src/position/mod.rs:272
↓ 18 callers
Method
label
(mut self, text: &'a str)
backends/conrod_glium/examples/custom_widget.rs:232
↓ 18 callers
Function
run_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 callers
Method
widget
If there is a Widget for the given index, return a reference to it.
conrod_core/src/graph/mod.rs:361
↓ 17 callers
Method
label_color
Specify the color of the `CollapsibleArea`'s label.
conrod_core/src/widget/collapsible_area.rs:92
↓ 17 callers
Method
label_font_size
Specify the font size for the `CollapsibleArea`'s label.
conrod_core/src/widget/collapsible_area.rs:98
↓ 16 callers
Method
clear
Removes all **Node**s and **Edge**s from the **Graph**.
conrod_core/src/graph/mod.rs:220
↓ 16 callers
Method
highlighted
Return a highlighted version of the current Color.
conrod_core/src/color.rs:213
↓ 16 callers
Method
rect_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 callers
Method
align_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 callers
Method
label_color
(mut self, color: conrod_core::Color)
backends/conrod_glium/examples/custom_widget.rs:236
↓ 15 callers
Function
new_primitive
Simplify the constructor for a `Primitive`.
conrod_core/src/render.rs:893
↓ 15 callers
Function
vec2_sub
Subtract `b` from `a`.
conrod_core/src/utils.rs:163
↓ 14 callers
Method
is_down
Is the `ButtonPosition` down.
conrod_core/src/input/state.rs:163
↓ 14 callers
Method
l_r_b_t
The edges of the **Rect** in a tuple (top, bottom, left, right).
conrod_core/src/position/rect.rs:174
↓ 14 callers
Method
next
Yield the next `Primitive` for rendering.
conrod_core/src/render.rs:295
↓ 14 callers
Function
rgb
(r: f32, g: f32, b: f32)
conrod_core/src/color.rs:38
↓ 13 callers
Method
clicked
Return a clicked version of the current Color.
conrod_core/src/color.rs:234
↓ 13 callers
Method
events
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 callers
Method
set
Set the given widget for the node at `node_id()`.
conrod_core/src/widget/graph/mod.rs:668
↓ 13 callers
Function
vec2_add
Add `a` and `b`.
conrod_core/src/utils.rs:155
↓ 12 callers
Method
button
Produces an `Iterator` that yields only events associated with the given mouse button.
conrod_core/src/input/widget.rs:300
↓ 12 callers
Method
round
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 callers
Method
to_fsa
Extract the components of a color in the RGB format within a fixed-size array.
conrod_core/src/color.rs:166
↓ 12 callers
Function
triangles
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 callers
Method
align_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 callers
Function
push_event
Pushes an event onto the given global input with a default drag threshold.
conrod_core/src/tests/global_input.rs:8
↓ 11 callers
Method
widget_graph
Borrow the **Ui**'s `widget_graph`.
conrod_core/src/ui.rs:278
↓ 10 callers
Method
align_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 callers
Method
alpha
Return the same color but with the alpha multiplied by the given alpha.
conrod_core/src/color.rs:197
↓ 10 callers
Method
clear
Call this routine to clear the render target.
backends/conrod_gfx/src/lib.rs:678
↓ 10 callers
Method
color
Specify the color for the node's inner rectangle.
conrod_core/src/widget/graph/node.rs:156
↓ 10 callers
Method
get
Borrow the `rusttype::Font` associated with the given `font::Id`.
conrod_core/src/text.rs:162
↓ 10 callers
Method
get_x
Return the X value.
conrod_core/src/widget/envelope_editor.rs:112
↓ 10 callers
Method
is_over
(&self)
conrod_core/src/widget/plot_path.rs:89
↓ 10 callers
Method
thickness
Specify a unique thickness for these lines.
conrod_core/src/widget/grid.rs:101
↓ 10 callers
Method
xy_dim
Convert the Rect to a `Point` and `Dimensions`.
conrod_core/src/position/rect.rs:118
↓ 9 callers
Method
auto_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 callers
Method
global_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 callers
Method
layout
(&self)
backends/conrod_rendy/src/lib.rs:226
↓ 9 callers
Method
max
The Rect that encompass the two given sets of Rect.
conrod_core/src/position/rect.rs:70
↓ 9 callers
Method
mid_left_of
Place `self` in the middle of the left edge of the `other` **Rect**.
conrod_core/src/position/rect.rs:422
↓ 9 callers
Method
parents
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 callers
Function
rgba
(r: f32, g: f32, b: f32, a: f32)
conrod_core/src/color.rs:32
↓ 9 callers
Function
test_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