pub fn selection(&self) -> Range<u32> {
        use winapi::um::winuser::EM_GETSEL;

        if self.handle.blank() { panic!("{}", NOT_BOUND); }
        let handle = self.handle.hwnd().expect(BAD_HANDLE);

        let (mut out1, mut out2) = (0u32, 0u32);
        let (ptr1, ptr2) = (&mut out1 as *mut u32, &mut out2 as *mut u32);
        wh::send_message(handle, EM_GETSEL as u32, ptr1 as WPARAM, ptr2 as LPARAM);

        Range { start: out1 as u32, end: out2 as u32 }
    }
/// Return the selected range of characters by the user in the text input
Return the selected range of characters by the user in the text input
Return the selected range of characters by the user in the text input
pub fn selection(&self) -> Range<u32> {
        use winapi::um::winuser::EM_GETSEL;
        if self.handle.blank() { panic!("{}", NOT_BOUND); }
        let handle = self.handle.hwnd().expect(BAD_HANDLE);
        let (mut out1, mut out2) = (0u32, 0u32);
        let (ptr1, ptr2) = (&mut out1 as *mut u32, &mut out2 as *mut u32);
        wh::send_message(handle, EM_GETSEL as u32, ptr1 as WPARAM, ptr2 as LPARAM);
        Range { start: out1 as u32, end: out2 as u32 }
    }
pub fn selection ( & self ) -> Range < u32 > { use winapi :: um :: winuser :: EM_GETSEL ; if self . handle . blank ( ) { panic ! ( " " NOT_BOUND ) ; } let handle = self . handle . hwnd ( ) . expect ( BAD_HANDLE ) ; let ( mut out1 , mut out2 ) = ( 0u32 , 0u32 ) ; let ( ptr1 , ptr2 ) = ( & mut out1 as * mut u32 , & mut out2 as * mut u32 ) ; wh :: send_message ( handle , EM_GETSEL as u32 , ptr1 as WPARAM , ptr2 as LPARAM ) ; Range { start : out1 as u32 , end : out2 as u32 } }
Return the selected range of characters by the user in the text input
Return the selected range of characters by the user in the text input
&self