pub struct CodeEditor { /* private fields */ }

Implementations§

source§

impl CodeEditor

source

pub fn draw(&mut self, cx: &mut Cx2d<'_>, session: &mut Session)

source

pub fn reset_font_size(&mut self)

source

pub fn decrease_font_size(&mut self)

source

pub fn increase_font_size(&mut self)

source

pub fn handle_event( &mut self, cx: &mut Cx, event: &Event, session: &mut Session ) -> Vec<CodeEditorAction>

source

pub fn reset_cursor_blinker(&mut self, cx: &mut Cx)

source

pub fn handle_event_with( &mut self, cx: &mut Cx, event: &Event, session: &mut Session, dispatch_action: &mut dyn FnMut(&mut Cx, CodeEditorAction) )

Trait Implementations§

source§

impl AnimatorImpl for CodeEditor

source§

fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2])

source§

fn animator_in_state(&self, cx: &Cx, check_state_pair: &[LiveId; 2]) -> bool

source§

fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2])

source§

fn animator_after_apply( &mut self, cx: &mut Cx, apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] )

source§

fn animator_apply_state(&mut self, cx: &mut Cx)

source§

fn animator_handle_event( &mut self, cx: &mut Cx, event: &Event ) -> AnimatorAction

§

fn animator_toggle( &mut self, cx: &mut Cx, is_state_1: bool, animate: Animate, state1: &[LiveId; 2], state2: &[LiveId; 2] )

source§

impl LiveApply for CodeEditor

source§

fn apply( &mut self, cx: &mut Cx, apply_from: ApplyFrom, start_index: usize, nodes: &[LiveNode] ) -> usize

§

fn apply_over(&mut self, cx: &mut Cx, nodes: &[LiveNode])

source§

impl LiveApplyValue for CodeEditor

source§

fn apply_value( &mut self, cx: &mut Cx, apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize

source§

impl LiveHook for CodeEditor

source§

fn before_live_design(cx: &mut Cx)

§

fn apply_value_unknown( &mut self, cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize

§

fn apply_value_instance( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize

§

fn skip_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] ) -> Option<usize>

§

fn before_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] )

§

fn after_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] )

§

fn after_apply_from(&mut self, cx: &mut Cx, apply_from: ApplyFrom)

§

fn after_new_from_doc(&mut self, _cx: &mut Cx)

§

fn after_new_before_apply(&mut self, _cx: &mut Cx)

source§

impl LiveHookDeref for CodeEditor

source§

fn deref_before_apply( &mut self, cx: &mut Cx, apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] )

source§

fn deref_after_apply( &mut self, cx: &mut Cx, apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] )

source§

impl LiveNew for CodeEditor

source§

fn live_type_info(cx: &mut Cx) -> LiveTypeInfo

source§

fn live_design_with(cx: &mut Cx)

source§

fn new(cx: &mut Cx) -> Self

§

fn new_apply( cx: &mut Cx, from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> Selfwhere Self: Sized,

§

fn new_apply_mut_index( cx: &mut Cx, from: ApplyFrom, index: &mut usize, nodes: &[LiveNode] ) -> Selfwhere Self: Sized,

§

fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Selfwhere Self: Sized,

§

fn new_main(cx: &mut Cx) -> Selfwhere Self: Sized,

§

fn update_main(&mut self, cx: &mut Cx)

§

fn new_local(cx: &mut Cx) -> Selfwhere Self: Sized,

§

fn new_from_module( cx: &mut Cx, module_id: LiveModuleId, id: LiveId ) -> Option<Self>where Self: Sized,

§

fn update_from_module( &mut self, cx: &mut Cx, module_id: LiveModuleId, id: LiveId )

source§

impl Widget for CodeEditor

source§

fn redraw(&mut self, cx: &mut Cx)

source§

fn handle_widget_event_with( &mut self, _cx: &mut Cx, _event: &Event, _dispatch_action: &mut dyn FnMut(&mut Cx, WidgetActionItem) )

source§

fn walk(&mut self, _cx: &mut Cx) -> Walk

source§

fn draw_walk_widget(&mut self, cx: &mut Cx2d<'_>, walk: Walk) -> WidgetDraw

source§

fn handle_widget_event( &mut self, cx: &mut Cx, event: &Event ) -> Vec<WidgetActionItem, Global>

source§

fn find_widgets( &mut self, _path: &[LiveId], _cached: WidgetCache, _results: &mut WidgetSet )

source§

fn widget(&mut self, path: &[LiveId]) -> WidgetRef

source§

fn widgets(&mut self, paths: &[&[LiveId]]) -> WidgetSet

source§

fn widget_uid(&self) -> WidgetUid

source§

fn widget_to_data( &self, _cx: &mut Cx, _actions: &Vec<WidgetActionItem, Global>, _nodes: &mut Vec<LiveNode, Global>, _path: &[LiveId] ) -> bool

source§

fn data_to_widget( &mut self, _cx: &mut Cx, _nodes: &[LiveNode], _path: &[LiveId] )

source§

fn is_visible(&self) -> bool

source§

fn draw_widget(&mut self, cx: &mut Cx2d<'_>) -> Result<(), WidgetRef>

source§

fn draw_widget_all(&mut self, cx: &mut Cx2d<'_>)

source§

fn text(&self) -> String

source§

fn set_text(&mut self, _v: &str)

source§

fn set_text_and_redraw(&mut self, cx: &mut Cx, v: &str)

source§

fn type_id(&self) -> TypeIdwhere Self: 'static,

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> ButtonSetWidgetExt for Twhere T: Widget,

source§

fn button_set(&mut self, paths: &[&[LiveId]]) -> ButtonSet

source§

impl<T> ButtonWidgetExt for Twhere T: Widget,

source§

fn button(&mut self, path: &[LiveId]) -> ButtonRef

source§

impl<T> CheckBoxWidgetExt for Twhere T: Widget,

source§

fn check_box(&mut self, path: &[LiveId]) -> CheckBoxRef

source§

impl<T> CodeEditorWidgetExt for Twhere T: Widget,

source§

fn code_editor(&mut self, path: &[LiveId]) -> CodeEditorRef

source§

impl<T> DockSetWidgetExt for Twhere T: Widget,

source§

fn dock_set(&mut self, paths: &[&[LiveId]]) -> DockSet

source§

impl<T> DockWidgetExt for Twhere T: Widget,

source§

fn dock(&mut self, path: &[LiveId]) -> DockRef

source§

impl<T> DropDownWidgetExt for Twhere T: Widget,

source§

fn drop_down(&mut self, path: &[LiveId]) -> DropDownRef

source§

impl<T> FileTreeSetWidgetExt for Twhere T: Widget,

source§

fn file_tree_set(&mut self, paths: &[&[LiveId]]) -> FileTreeSet

source§

impl<T> FileTreeWidgetExt for Twhere T: Widget,

source§

fn file_tree(&mut self, path: &[LiveId]) -> FileTreeRef

source§

impl<T> FlatListSetWidgetExt for Twhere T: Widget,

source§

fn flat_list_set(&mut self, paths: &[&[LiveId]]) -> FlatListSet

source§

impl<T> FlatListWidgetExt for Twhere T: Widget,

source§

fn flat_list(&mut self, path: &[LiveId]) -> FlatListRef

source§

impl<T> FoldButtonWidgetExt for Twhere T: Widget,

source§

fn fold_button(&mut self, path: &[LiveId]) -> FoldButtonRef

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> ImageSetWidgetExt for Twhere T: Widget,

source§

fn image_set(&mut self, paths: &[&[LiveId]]) -> ImageSet

source§

impl<T> ImageWidgetExt for Twhere T: Widget,

source§

fn image(&mut self, path: &[LiveId]) -> ImageRef

source§

impl<T, U> Into<U> for Twhere 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> LabelWidgetExt for Twhere T: Widget,

source§

fn label(&mut self, path: &[LiveId]) -> LabelRef

source§

impl<T> LinkLabelWidgetExt for Twhere T: Widget,

source§

impl<T> MultiWindowWidgetExt for Twhere T: Widget,

source§

fn multi_window(&mut self, path: &[LiveId]) -> MultiWindowRef

source§

impl<T> PageFlipSetWidgetExt for Twhere T: Widget,

source§

fn page_flip_set(&mut self, paths: &[&[LiveId]]) -> PageFlipSet

source§

impl<T> PageFlipWidgetExt for Twhere T: Widget,

source§

fn page_flip(&mut self, path: &[LiveId]) -> PageFlipRef

source§

impl<T> PortalListSetWidgetExt for Twhere T: Widget,

source§

fn portal_list_set(&mut self, paths: &[&[LiveId]]) -> PortalListSet

source§

impl<T> PortalListWidgetExt for Twhere T: Widget,

source§

fn portal_list(&mut self, path: &[LiveId]) -> PortalListRef

source§

impl<T> RadioButtonSetWidgetExt for Twhere T: Widget,

source§

fn radio_button_set(&mut self, paths: &[&[LiveId]]) -> RadioButtonSet

source§

impl<T> RadioButtonWidgetExt for Twhere T: Widget,

source§

fn radio_button(&mut self, path: &[LiveId]) -> RadioButtonRef

source§

impl<T> SlidePanelSetWidgetExt for Twhere T: Widget,

source§

fn slide_panel_set(&mut self, paths: &[&[LiveId]]) -> SlidePanelSet

source§

impl<T> SlidePanelWidgetExt for Twhere T: Widget,

source§

fn slide_panel(&mut self, path: &[LiveId]) -> SlidePanelRef

source§

impl<T> SliderWidgetExt for Twhere T: Widget,

source§

fn slider(&mut self, path: &[LiveId]) -> SliderRef

source§

impl<T> SlidesViewSetWidgetExt for Twhere T: Widget,

source§

fn slides_view_set(&mut self, paths: &[&[LiveId]]) -> SlidesViewSet

source§

impl<T> SlidesViewWidgetExt for Twhere T: Widget,

source§

fn slides_view(&mut self, path: &[LiveId]) -> SlidesViewRef

source§

impl<T> TextInputWidgetExt for Twhere T: Widget,

source§

fn text_input(&mut self, path: &[LiveId]) -> TextInputRef

source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
source§

impl<T> VideoSetWidgetExt for Twhere T: Widget,

source§

fn video_set(&mut self, paths: &[&[LiveId]]) -> VideoSet

source§

impl<T> VideoWidgetExt for Twhere T: Widget,

source§

fn video(&mut self, path: &[LiveId]) -> VideoRef

source§

impl<T> ViewSetWidgetExt for Twhere T: Widget,

source§

fn view_set(&mut self, paths: &[&[LiveId]]) -> ViewSet

source§

impl<T> ViewWidgetExt for Twhere T: Widget,

source§

fn view(&mut self, path: &[LiveId]) -> ViewRef