Struct fltk::window::AndroidWindow[][src]

pub struct AndroidWindow { /* fields omitted */ }
Expand description

An Android window

Implementations

impl AndroidWindow[src]

pub fn default() -> Self[src]

Creates a default initialized Android Window

Methods from Deref<Target = Window>

pub fn show_with_env_args(&mut self)[src]

Use FLTK specific arguments for the application: More info here. The options are:

  • -bg2 color
  • -bg color
  • -di[splay] host:n.n
  • -dn[d]
  • -fg color
  • -g[eometry] WxH+X+Y
  • -i[conic]
  • -k[bd]
  • -na[me] classname
  • -nod[nd]
  • -nok[bd]
  • -not[ooltips]
  • -s[cheme] scheme
  • -ti[tle] windowtitle
  • -to[oltips]

pub fn show_with_args(&mut self, args: &[&str])[src]

Use FLTK specific arguments for the application: More info here. The options are:

  • -bg2 color
  • -bg color
  • -di[splay] host:n.n
  • -dn[d]
  • -fg color
  • -g[eometry] WxH+X+Y
  • -i[conic]
  • -k[bd]
  • -na[me] classname
  • -nod[nd]
  • -nok[bd]
  • -not[ooltips]
  • -s[cheme] scheme
  • -ti[tle] windowtitle
  • -to[oltips]

pub fn flush(&mut self)[src]

Forces the window to be drawn, this window is also made current and calls draw()

pub fn pixels_per_unit(&self) -> f32[src]

Returns the pixels per unit. Assumes a factor of 2.0 (Retina) (Retina) on MacOS since [NSWindow backingScaleFactor] requires an info.plist with NSHighResolutionCapable set to true. If this is not desired, you need to bundle your app and set to false.

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

Gets the window’s width in pixels

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

Gets the window’s height in pixels

Trait Implementations

impl Deref for AndroidWindow[src]

type Target = Window

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl DerefMut for AndroidWindow[src]

fn deref_mut(&mut self) -> &mut Self::Target[src]

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.