pub trait SelectionMethods<D: DomTypes> {
Show 22 methods // Required methods fn GetAnchorNode(&self) -> Option<DomRoot<D::Node>>; fn AnchorOffset(&self) -> u32; fn GetFocusNode(&self) -> Option<DomRoot<D::Node>>; fn FocusOffset(&self) -> u32; fn IsCollapsed(&self) -> bool; fn RangeCount(&self) -> u32; fn Type(&self) -> DOMString; fn GetRangeAt(&self, index: u32) -> Fallible<DomRoot<D::Range>>; fn AddRange(&self, range: &D::Range); fn RemoveRange(&self, range: &D::Range) -> Fallible<()>; fn RemoveAllRanges(&self); fn Empty(&self); fn Collapse( &self, node: Option<&D::Node>, offset: u32, _can_gc: CanGc, ) -> Fallible<()>; fn SetPosition( &self, node: Option<&D::Node>, offset: u32, _can_gc: CanGc, ) -> Fallible<()>; fn CollapseToStart(&self, _can_gc: CanGc) -> Fallible<()>; fn CollapseToEnd(&self, _can_gc: CanGc) -> Fallible<()>; fn Extend( &self, node: &D::Node, offset: u32, _can_gc: CanGc, ) -> Fallible<()>; fn SetBaseAndExtent( &self, anchorNode: &D::Node, anchorOffset: u32, focusNode: &D::Node, focusOffset: u32, _can_gc: CanGc, ) -> Fallible<()>; fn SelectAllChildren(&self, node: &D::Node, _can_gc: CanGc) -> Fallible<()>; fn DeleteFromDocument(&self) -> Fallible<()>; fn ContainsNode( &self, node: &D::Node, allowPartialContainment: bool, ) -> bool; fn Stringifier(&self) -> DOMString;
}

Required Methods§

Source

fn GetAnchorNode(&self) -> Option<DomRoot<D::Node>>

Source

fn AnchorOffset(&self) -> u32

Source

fn GetFocusNode(&self) -> Option<DomRoot<D::Node>>

Source

fn FocusOffset(&self) -> u32

Source

fn IsCollapsed(&self) -> bool

Source

fn RangeCount(&self) -> u32

Source

fn Type(&self) -> DOMString

Source

fn GetRangeAt(&self, index: u32) -> Fallible<DomRoot<D::Range>>

Source

fn AddRange(&self, range: &D::Range)

Source

fn RemoveRange(&self, range: &D::Range) -> Fallible<()>

Source

fn RemoveAllRanges(&self)

Source

fn Empty(&self)

Source

fn Collapse( &self, node: Option<&D::Node>, offset: u32, _can_gc: CanGc, ) -> Fallible<()>

Source

fn SetPosition( &self, node: Option<&D::Node>, offset: u32, _can_gc: CanGc, ) -> Fallible<()>

Source

fn CollapseToStart(&self, _can_gc: CanGc) -> Fallible<()>

Source

fn CollapseToEnd(&self, _can_gc: CanGc) -> Fallible<()>

Source

fn Extend(&self, node: &D::Node, offset: u32, _can_gc: CanGc) -> Fallible<()>

Source

fn SetBaseAndExtent( &self, anchorNode: &D::Node, anchorOffset: u32, focusNode: &D::Node, focusOffset: u32, _can_gc: CanGc, ) -> Fallible<()>

Source

fn SelectAllChildren(&self, node: &D::Node, _can_gc: CanGc) -> Fallible<()>

Source

fn DeleteFromDocument(&self) -> Fallible<()>

Source

fn ContainsNode(&self, node: &D::Node, allowPartialContainment: bool) -> bool

Source

fn Stringifier(&self) -> DOMString

Implementors§