famiq 0.3.1

Experimental GUI library, powered by Bevy engine.
Documentation
use bevy::prelude::*;

/// Marker component indentifying Famiq scroll widget.
#[derive(Component)]
pub struct IsFamiqScroll;

/// Marker component identifying scroll move panel.
#[derive(Component)]
pub struct IsFamiqScrollMovePanel;

#[derive(Component)]
pub struct ScrollMovePanelEntity(pub Entity);

#[derive(Component)]
pub struct ScrollList {
    pub position: f32,
    pub scroll_height: f32
}

impl ScrollList {
    pub fn new(scroll_height: f32) -> Self {
        Self {
            position: 0.0,
            scroll_height
        }
    }
}