Enum Pane

Source
pub enum Pane {
Show 16 variants Preview, Timeline, Library, Inspector, Effects, Transitions, Curves, Subtitles, Planner, AutoCut, Tools, Nodes, Mixer, Markers, Presets, Tracking,
}

Variants§

§

Preview

§

Timeline

§

Library

§

Inspector

§

Effects

§

Transitions

§

Curves

§

Subtitles

§

Planner

§

AutoCut

§

Tools

§

Nodes

§

Mixer

§

Markers

§

Presets

Machine-local reusable things (effect chains, node graphs, adjustment layers, templates).

§

Tracking

Point / area tracking of a clip into a reusable project path.

Implementations§

Source§

impl Pane

Source

pub const ALL: [Pane; 16]

Source

pub const ROUND3: [Pane; 4]

Panes added in round 3 — a stored layout without them is from an older version (see from_json).

Source

pub fn glyph(self) -> Glyph

Default icon for this pane (View menu, icon picker). Overridable in Settings → Appearance.

Source

pub fn title(self) -> &'static str

Trait Implementations§

Source§

impl Behavior<Pane> for Behaviour<'_>

Source§

fn paint_drag_preview( &self, visuals: &Visuals, painter: &Painter, parent_rect: Option<Rect>, preview_rect: Rect, )

Nine drop squares over the hovered tile instead of egui_tiles’ thin outline: the centre one tabs the pane in, the eight around it split in that direction. egui_tiles still owns the hit test, so a corner resolves to whichever of its two edges is nearer — the translucent fill is where it lands.

Source§

fn pane_ui( &mut self, ui: &mut Ui, _tile_id: TileId, pane: &mut Pane, ) -> UiResponse

Show a pane tile in the given [egui::Ui]. Read more
Source§

fn tab_title_for_pane(&mut self, pane: &Pane) -> WidgetText

The title of a pane tab.
Source§

fn top_bar_right_ui( &mut self, tiles: &Tiles<Pane>, ui: &mut Ui, _tile_id: TileId, tabs: &Tabs, _scroll_offset: &mut f32, )

Adds some UI to the top right of each tab bar. Read more
Source§

fn simplification_options(&self) -> SimplificationOptions

What are the rules for simplifying the tree?
Source§

fn on_edit(&mut self, edit_action: EditAction)

Called if the user edits the tree somehow, e.g. changes the size of some container, clicks a tab, or drags a tile.
§

fn tab_hover_cursor_icon(&self) -> CursorIcon

The cursor icon when hovering over a tab.
§

fn is_tab_closable(&self, _tiles: &Tiles<Pane>, _tile_id: TileId) -> bool

Should the tab have a close-button?
§

fn on_tab_close(&mut self, _tiles: &mut Tiles<Pane>, _tile_id: TileId) -> bool

Called when the close-button on a tab is pressed. Read more
§

fn close_button_outer_size(&self) -> f32

The size of the close button in the tab.
§

fn close_button_inner_margin(&self) -> f32

How much smaller the visual part of the close-button will be compared to [Self::close_button_outer_size].
§

fn tab_title_for_tile( &mut self, tiles: &Tiles<Pane>, tile_id: TileId, ) -> WidgetText

The title of a general tab. Read more
§

fn tab_ui( &mut self, tiles: &mut Tiles<Pane>, ui: &mut Ui, id: Id, tile_id: TileId, state: &TabState, ) -> Response

Show the ui for the a tab of some tile. Read more
§

fn drag_ui(&mut self, tiles: &Tiles<Pane>, ui: &mut Ui, tile_id: TileId)

Show the ui for the tab being dragged.
§

fn on_tab_button( &mut self, _tiles: &Tiles<Pane>, _tile_id: TileId, button_response: Response, ) -> Response

Called by the default implementation of [Self::tab_ui] for each added button
§

fn retain_pane(&mut self, _pane: &Pane) -> bool

Return false if a given pane should be removed from its parent.
§

fn tab_bar_height(&self, _style: &Style) -> f32

The height of the bar holding tab titles.
§

fn gap_width(&self, _style: &Style) -> f32

Width of the gap between tiles in a horizontal or vertical layout, and between rows/columns in a grid layout.
§

fn min_size(&self) -> f32

No child should shrink below this width nor height.
§

fn preview_dragged_panes(&self) -> bool

Show we preview panes that are being dragged, i.e. show their ui in the region where they will end up?
§

fn dragged_overlay_color(&self, visuals: &Visuals) -> Color32

Cover the tile that is being dragged with this color.
§

fn paint_on_top_of_tile( &self, _painter: &Painter, _style: &Style, _tile_id: TileId, _rect: Rect, )

Add some custom painting on top of a tile (container or pane), e.g. draw an outline on top of it.
§

fn resize_stroke(&self, style: &Style, resize_state: ResizeState) -> Stroke

The stroke used for the lines in horizontal, vertical, and grid layouts.
§

fn tab_title_spacing(&self, _visuals: &Visuals) -> f32

Extra spacing to left and right of tab titles.
§

fn tab_bar_color(&self, visuals: &Visuals) -> Color32

The background color of the tab bar.
§

fn tab_bg_color( &self, visuals: &Visuals, _tiles: &Tiles<Pane>, _tile_id: TileId, state: &TabState, ) -> Color32

The background color of a tab.
§

fn tab_outline_stroke( &self, visuals: &Visuals, _tiles: &Tiles<Pane>, _tile_id: TileId, state: &TabState, ) -> Stroke

Stroke of the outline around a tab title.
§

fn tab_bar_hline_stroke(&self, visuals: &Visuals) -> Stroke

Stroke of the line separating the tab title bar and the content of the active tab.
§

fn tab_text_color( &self, visuals: &Visuals, _tiles: &Tiles<Pane>, _tile_id: TileId, state: &TabState, ) -> Color32

The color of the title text of the tab. Read more
§

fn drag_preview_stroke(&self, visuals: &Visuals) -> Stroke

When drag-and-dropping a tile, the candidate area is drawn with this stroke.
§

fn drag_preview_color(&self, visuals: &Visuals) -> Color32

When drag-and-dropping a tile, the candidate area is drawn with this background color.
§

fn grid_auto_column_count( &self, num_visible_children: usize, rect: Rect, gap: f32, ) -> usize

How many columns should we use for a [crate::Grid] put into [crate::GridLayout::Auto]? Read more
§

fn ideal_tile_aspect_ratio(&self) -> f32

When using [crate::GridLayout::Auto], what is the ideal aspect ratio of a tile?
Source§

impl Clone for Pane

Source§

fn clone(&self) -> Pane

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pane

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Pane

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for Pane

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Pane

Source§

fn eq(&self, other: &Pane) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Pane

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Pane

Source§

impl Eq for Pane

Source§

impl StructuralPartialEq for Pane

Auto Trait Implementations§

§

impl Freeze for Pane

§

impl RefUnwindSafe for Pane

§

impl Send for Pane

§

impl Sync for Pane

§

impl Unpin for Pane

§

impl UnwindSafe for Pane

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

§

impl<T> MaybeSend for T

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + Serialize + for<'a> Deserialize<'a> + Send + Sync,