winio 0.11.0

Single-threaded async GUI runtime based on compio.
Documentation
use inherit_methods_macro::inherit_methods;
use winio_handle::AsContainer;
use winio_primitive::{Orient, Point, Size, TickPosition};

use crate::stub::{Result, Widget, not_impl};

#[derive(Debug)]
pub struct Slider {
    handle: Widget,
}

#[inherit_methods(from = "self.handle")]
impl Slider {
    pub fn new(_parent: impl AsContainer) -> Result<Self> {
        not_impl()
    }

    pub fn is_visible(&self) -> Result<bool>;

    pub fn set_visible(&mut self, v: bool) -> Result<()>;

    pub fn is_enabled(&self) -> Result<bool>;

    pub fn set_enabled(&mut self, v: bool) -> Result<()>;

    pub fn preferred_size(&self) -> Result<Size>;

    pub fn loc(&self) -> Result<Point>;

    pub fn set_loc(&mut self, p: Point) -> Result<()>;

    pub fn size(&self) -> Result<Size>;

    pub fn set_size(&mut self, v: Size) -> Result<()>;

    pub fn tooltip(&self) -> Result<String>;

    pub fn set_tooltip(&mut self, s: impl AsRef<str>) -> Result<()>;

    pub fn tick_pos(&self) -> Result<TickPosition> {
        not_impl()
    }

    pub fn set_tick_pos(&mut self, _v: TickPosition) -> Result<()> {
        not_impl()
    }

    pub fn orient(&self) -> Result<Orient> {
        not_impl()
    }

    pub fn set_orient(&mut self, _v: Orient) -> Result<()> {
        not_impl()
    }

    pub fn minimum(&self) -> Result<usize> {
        not_impl()
    }

    pub fn set_minimum(&mut self, _v: usize) -> Result<()> {
        not_impl()
    }

    pub fn maximum(&self) -> Result<usize> {
        not_impl()
    }

    pub fn set_maximum(&mut self, _v: usize) -> Result<()> {
        not_impl()
    }

    pub fn freq(&self) -> Result<usize> {
        not_impl()
    }

    pub fn set_freq(&mut self, _v: usize) -> Result<()> {
        not_impl()
    }

    pub fn pos(&self) -> Result<usize> {
        not_impl()
    }

    pub fn set_pos(&mut self, _pos: usize) -> Result<()> {
        not_impl()
    }

    pub async fn wait_change(&self) {
        not_impl()
    }
}

winio_handle::impl_as_widget!(Slider, handle);