Struct makepad_code_editor::code_editor::CodeEditorRef
source · pub struct CodeEditorRef(/* private fields */);
Implementations§
source§impl CodeEditorRef
impl CodeEditorRef
pub fn has_widget(&self, widget: &WidgetRef) -> CodeEditorRef
pub fn borrow(&self) -> Option<Ref<'_, CodeEditor>>
pub fn borrow_mut(&self) -> Option<RefMut<'_, CodeEditor>>
Methods from Deref<Target = WidgetRef>§
pub fn is_empty(&self) -> bool
pub fn handle_widget_event_with( &self, cx: &mut Cx, event: &Event, dispatch_action: &mut dyn FnMut(&mut Cx, WidgetActionItem) )
pub fn handle_widget_event( &self, cx: &mut Cx, event: &Event ) -> Vec<WidgetActionItem, Global>
pub fn widget_uid(&self) -> WidgetUid
pub fn widget_to_data( &self, cx: &mut Cx, actions: &Vec<WidgetActionItem, Global>, nodes: &mut Vec<LiveNode, Global>, path: &[LiveId] ) -> bool
pub fn data_to_widget(&self, cx: &mut Cx, nodes: &[LiveNode], path: &[LiveId])
pub fn find_widgets( &mut self, path: &[LiveId], cached: WidgetCache, results: &mut WidgetSet )
pub fn widget(&self, path: &[LiveId]) -> WidgetRef
pub fn widgets(&self, paths: &[&[LiveId]]) -> WidgetSet
pub fn draw_walk_widget( &self, cx: &mut Cx2d<'_>, walk: Walk ) -> Result<(), WidgetRef>
pub fn walk(&self, cx: &mut Cx) -> Walk
pub fn redraw(&self, cx: &mut Cx)
pub fn is_visible(&self) -> bool
pub fn draw_widget_all(&self, cx: &mut Cx2d<'_>)
pub fn draw_widget(&self, cx: &mut Cx2d<'_>) -> Result<(), WidgetRef>
pub fn text(&self) -> String
pub fn set_text(&self, v: &str)
pub fn set_text_and_redraw(&self, cx: &mut Cx, v: &str)
pub fn borrow_mut<T>(&self) -> Option<RefMut<'_, T>>where T: 'static + Widget,
pub fn borrow<T>(&self) -> Option<Ref<'_, T>>where T: 'static + Widget,
pub fn apply_over(&self, cx: &mut Cx, nodes: &[LiveNode])
pub fn apply_over_and_redraw(&self, cx: &mut Cx, nodes: &[LiveNode])
Trait Implementations§
source§impl Clone for CodeEditorRef
impl Clone for CodeEditorRef
source§fn clone(&self) -> CodeEditorRef
fn clone(&self) -> CodeEditorRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Deref for CodeEditorRef
impl Deref for CodeEditorRef
source§impl DerefMut for CodeEditorRef
impl DerefMut for CodeEditorRef
source§impl PartialEq<CodeEditorRef> for CodeEditorRef
impl PartialEq<CodeEditorRef> for CodeEditorRef
source§fn eq(&self, other: &CodeEditorRef) -> bool
fn eq(&self, other: &CodeEditorRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CodeEditorRef
Auto Trait Implementations§
impl !RefUnwindSafe for CodeEditorRef
impl !Send for CodeEditorRef
impl !Sync for CodeEditorRef
impl Unpin for CodeEditorRef
impl !UnwindSafe for CodeEditorRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more