Re-exports§
pub extern crate imgui_sys as sys;
pub use self::color::ImColor32;
pub use self::drag_drop::DragDropFlags;
pub use self::drag_drop::DragDropSource;
pub use self::drag_drop::DragDropTarget;
pub use self::draw_list::ChannelsSplit;
pub use self::draw_list::DrawListMut;
pub use self::text_filter::*;
Modules§
- color
- drag_
drop - Structs to create a Drag and Drop sequence. Almost all structs are re-exported and can be accessed from the crate root; some additional utilities can be found in here.
- draw_
list - The draw list lets you create custom graphics within a window.
- internal
- Internal raw utilities (don’t use unless you know what you’re doing!)
- text_
filter
Macros§
- create_
token - This is a macro used internally by imgui-rs to create StackTokens representing various global state in DearImGui.
Structs§
- Angle
Slider - Builder for an angle slider widget.
- Backend
Flags - Backend capabilities
- Button
Flags - Flags for invisible buttons
- Child
Window - Builder for a child window
- Child
Window Token - Tracks a child window that can be ended by calling
.end()
or by dropping - Collapsing
Header - Builder for a collapsing header widget
- Color
Button - Builder for a color button widget.
- Color
Edit3 - Builder for a color editor widget.
- Color
Edit4 - Builder for a color editor widget.
- Color
Edit Flags - Color edit flags
- Color
Picker3 - Builder for a color picker widget.
- Color
Picker4 - Examples
- Color
Stack Token - Tracks a color pushed to the color stack that can be popped by calling
.end()
or by dropping. - Combo
Box - Builder for a combo box widget
- Combo
BoxFlags - Flags for combo boxes
- Combo
BoxToken - Tracks a combo box that can be ended by calling
.end()
or by dropping. - Config
Flags - Configuration flags
- Context
- An imgui-rs context.
- Disabled
Token - Starts a scope where interaction is disabled. Ends be calling
.end()
or when the token is dropped. - Drag
- Builder for a drag slider widget.
- Drag
Range - Builder for a drag slider widget.
- Draw
CmdIterator - Draw
CmdParams - Draw
Data - All draw data to render a Dear ImGui frame.
- Draw
List - Draw command list
- Draw
List Iterator - Iterator over draw lists
- Draw
Vert - A single vertex
- Dummy
Clipboard Context - Non-functioning placeholder
- Font
- Runtime data for a single font within a font atlas
- Font
Atlas - A font atlas that builds a single texture
- Font
Atlas Flags - Font atlas configuration flags
- Font
Atlas Texture - Handle to a font atlas texture
- Font
Config - Configuration settings for a font
- Font
Glyph - A single font glyph
- Font
Glyph Ranges - A set of Unicode codepoints
- FontId
- A font identifier
- Font
Stack Token - Tracks a font pushed to the font stack that can be popped by calling
.end()
or by dropping. - Group
Token - Tracks a layout group that can be ended with
end
or by dropping. - Id
- Unique ID used by widgets.
- IdStack
Token - Tracks an ID pushed to the ID stack that can be popped by calling
.pop()
or by dropping. Seecrate::Ui::push_id
for more details. - ImStr
- A UTF-8 encoded, implicitly nul-terminated string slice.
- ImString
- A UTF-8 encoded, growable, implicitly nul-terminated string.
- Image
- Builder for an image widget
- Image
Button - Builder for an image button widget
- Image
Button Deprecated - Input
Float - Input
Float2 - Input
Float3 - Input
Float4 - Input
Int - Input
Int2 - Input
Int3 - Input
Int4 - Input
Scalar - Builder for an input scalar widget.
- Input
ScalarN - Builder for an input scalar widget.
- Input
Text - Input
Text Callback - Callback flags for an
InputText
widget. These correspond to the general textflags. - Input
Text Flags - Flags for text inputs
- Input
Text Multiline - Input
Text Multiline Callback - Callback flags for an
InputTextMultiline
widget. These correspond to the general textflags. - Invalid
Style Color Value - Io
- Settings and inputs/outputs for imgui-rs
- Item
Flags Stack Token - Tracks a change pushed to the item flags stack.
- Item
Hovered Flags - Item hover check option flags
- Item
Width Stack Token - ListBox
- Builder for a list box widget
- List
BoxToken - Tracks a list box that can be ended by calling
.end()
or by dropping - List
Clipper - Used to render only the visible items when displaying a long list of items in a scrollable area.
- Main
Menu BarToken - Tracks a main menu bar that can be ended by calling
.end()
or by dropping - Menu
BarToken - Tracks a menu bar that can be ended by calling
.end()
or by dropping - Menu
Item - Builder for a menu item.
- Menu
Token - Tracks a menu that can be ended by calling
.end()
or by dropping - Owned
Draw Data - A container for a heap-allocated deep copy of a
DrawData
struct. - Passthrough
Callback - This is a Zst which implements TextCallbackHandler as a passthrough.
- Platform
Io - Holds the information needed to enable multiple viewports.
- Platform
Monitor - Describes a monitor that can be used by ImGui.
- Plot
Histogram - Plot
Lines - Popup
Modal - Create a modal pop-up.
- Popup
Token - Tracks a popup token that can be ended with
end
or by dropping. - Progress
Bar - Builder for a progress bar widget.
- Push
Allow Keyboard Focus Token - Push
Button Repeat Token - Selectable
- Builder for a selectable widget.
- Selectable
Flags - Flags for selectables
- Shared
Font Atlas - A font atlas that can be shared between contexts
- Slider
- Builder for a slider widget.
- Slider
Flags - Flags for sliders
- Specs
- A wrapper around a slice of TableColumnSortSpecs.
- Style
- User interface style/colors
- Style
Stack Token - Tracks a style pushed to the style stack that can be popped by calling
.end()
or by dropping. - Suspended
Context - A suspended imgui-rs context.
- TabBar
- Builder for a tab bar.
- TabBar
Flags - TabBar
Token - Tracks a window that can be ended by calling
.end()
or by dropping - TabItem
- TabItem
Flags - TabItem
Token - Tracks a tab bar item that can be ended by calling
.end()
or by dropping - Table
BgTarget - Enum for [table_set_bg_color]. Background colors are rendering in 3 layers:
- Table
Column Flags - Flags for TableColumnSetup and [table_setup_column_with].
- Table
Column Setup - A struct containing all the data needed to setup a table column header via begin_table_header or table_setup_column.
- Table
Column Sort Specs - Table
Flags - Flags passed to
begin_table
methods. - Table
RowFlags - Flags for [table_next_row_with_flags].
- Table
Sort Specs Mut - A wrapper around table sort specs.
- Table
Token - Tracks a table which can be rendered onto, ending with
.end()
or by dropping. - Text
Callback Data - This struct provides methods to edit the underlying text buffer that Dear ImGui manipulates. Primarily, it gives remove_chars, insert_chars, and mutable access to what text is selected.
- Text
Wrap PosStack Token - Texture
Id - An opaque texture identifier
- Textures
- Generic texture mapping for use by renderers.
- Tooltip
Token - Tracks a layout tooltip that can be ended by calling
.end()
or by dropping. - Tree
Node - Builder for a tree node widget
- Tree
Node Flags - Flags for tree nodes
- Tree
Node Token - Tracks a tree node that can be popped by calling
.pop()
,end()
, or by dropping. - Ui
- A reference for building the user interface for one frame
- UiBuffer
- this is the unsafe cell upon which we build our abstraction.
- Vertical
Slider - Builder for a vertical slider widget.
- Viewport
- Describes an ImGui Viewport.
- Viewport
Flags - Window
- Builder for a window
- Window
Flags - Configuration flags for windows
- Window
Focused Flags - Window focus check option flags
- Window
Hovered Flags - Window hover check option flags
- Window
Token - Tracks a window that can be ended by calling
.end()
or by dropping.
Enums§
- Color
Edit Display Mode - Color editor display mode.
- Color
Edit Input Mode - Color editor input mode.
- Color
Format - Color component formatting
- Color
Picker Mode - Color picker hue/saturation/value editor mode
- Color
Preview - Color editor preview style
- Combo
BoxHeight - Combo box height mode.
- Combo
BoxPreview Mode - Combo box preview mode.
- Condition
- Condition for applying a setting
- Direction
- A cardinal direction
- DrawCmd
- A draw command
- Focused
Widget - Target widget selection for keyboard focus
- Font
Source - A source for binary font data
- History
Direction - The arrow key a user pressed to trigger the
on_history
callback. - Item
Flag - A temporary change in item flags
- Key
- A key identifier
- Mouse
Button - Represents one of the supported mouse buttons
- Mouse
Cursor - Mouse cursor type identifier
- NavInput
- An input identifier for navigation
- Style
Color - A color identifier for styling.
- Style
Var - A temporary change in user interface style
- Table
Sort Direction - Tree
Node Id - Unique ID used by tree nodes
Traits§
- Clipboard
Backend - Trait for clipboard backends
- Input
Text Callback Handler - This trait provides an interface which ImGui will call on
InputText
andInputTextMultiline
callbacks. - Platform
Viewport Backend - Trait holding functions needed when the platform integration supports viewports.
- Renderer
Viewport Backend - Trait that holds optional functions for a rendering backend to support multiple viewports.
Functions§
- dear_
imgui_ version - Returns the underlying Dear ImGui library version
Type Aliases§
- DrawIdx
- A vertex index