You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: progress_bar.rs
    path of file: ./repos/orbtk/orbtk_widgets/src
    
    the code of the file until where you have to start completion: use crate::{api::prelude::*, prelude::*, proc_macros::*};

static RANGE_MIN: f64 = 0.0;
static RANGE_MAX: f64 = 1.0;

// --- KEYS --

pub static STYLE_PROGRESS_BAR: &str = "progress_bar";
static ID_INDICATOR: &str = "PGBAR_INDICATOR";

// --- KEYS
    
fn calculate_width(current_progress: f64, max_width: f64) -> f64 {
    if (current_progress - RANGE_MIN).abs() <= f64::EPSILON {
        return 0.;
    } else if (current_progress - RANGE_MAX).abs() < f64::EPSILON {
        return max_width * 1.;
    } else if current_progress > RANGE_MIN && current_progress < RANGE_MAX {
        return max_width * current_progress;
    }
    max_width * 1.
}