Struct fltk::misc::HelpView[][src]

pub struct HelpView { /* fields omitted */ }

Creates a HelpView widget

Implementations

impl HelpView[src]

pub fn directory(&self) -> PathBuf[src]

Return the directory

pub fn filename(&self) -> PathBuf[src]

Return the filename

pub fn find(&self, s: &str, start_from: usize) -> Option<usize>[src]

Find a string, returns the index

pub fn value(&self) -> Option<String>[src]

Get the value of the widget

pub fn set_value(&mut self, val: &str)[src]

Set value of the widget

pub fn clear_selection(&mut self)[src]

Clear selection

pub fn select_all(&mut self)[src]

Select all

pub fn set_topline(&mut self, n: &str)[src]

Set the topline string

pub fn set_topline2(&mut self, arg1: i32)[src]

Set the leftline position

pub fn topline(&self) -> i32[src]

Get the topline position

pub fn set_leftline(&mut self, arg1: i32)[src]

Set the leftline position

pub fn leftline(&self) -> i32[src]

Gets the current leftline in pixels

pub fn text_font(&self) -> Font[src]

Gets the text font

pub fn set_text_font(&mut self, f: Font)[src]

Sets the text font

pub fn text_size(&self) -> u32[src]

Gets the text size

pub fn set_text_size(&mut self, s: u32)[src]

Sets the text size

pub fn text_color(&self) -> Color[src]

Gets the text's color

pub fn set_text_color(&mut self, color: Color)[src]

Sets the text's color

pub fn scrollbar_size(&self) -> u32[src]

Gets the scrollbar size

pub fn set_scrollbar_size(&mut self, new_size: u32)[src]

Sets the scrollbar size

pub fn load(&mut self, f: &str) -> Result<(), FltkError>[src]

Load a view from a file or URI

Trait Implementations

impl Clone for HelpView[src]

impl Debug for HelpView[src]

impl Default for HelpView[src]

impl Send for HelpView[src]

impl Sync for HelpView[src]

impl WidgetBase for HelpView[src]

impl WidgetExt for HelpView[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.