Struct fltk::dialog::HelpDialog[][src]

pub struct HelpDialog { /* fields omitted */ }

Creates a help dialog

Implementations

impl HelpDialog[src]

pub fn default() -> HelpDialog[src]

Creates a default (size and location) help dialog

pub fn new(x: i32, y: i32, w: i32, h: i32) -> HelpDialog[src]

Creates a new Help dialog with position(x, y) and size(w, h)

pub fn hide(&mut self)[src]

Hides the help dialog

pub fn load<P: AsRef<Path>>(&mut self, file: P) -> Result<(), FltkError>[src]

Loads a file for the help dialog

pub fn position(&mut self, x: i32, y: i32)[src]

Sets the position of the help dialog

pub fn resize(&mut self, x: i32, y: i32, w: i32, h: i32)[src]

Resizes the help dialog

pub fn show(&mut self)[src]

Shows the help dialog

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

Sets the text size

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

Returns the text size

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

Sets the value of the help dialog

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

Returns the value of the help dialog

pub fn visible(&mut self) -> bool[src]

Returs whether the help dialog is visible

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

Returns the width of the help dialog

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

Returns the height of the help dialog

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

Returns the x position of the help dialog

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

Returns the y position of the help dialog

Trait Implementations

impl Debug for HelpDialog[src]

impl Drop for HelpDialog[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, 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.