XenevaOS
Loading...
Searching...
No Matches
Functions
slider.cpp File Reference
#include "slider.h"
Include dependency graph for slider.cpp:

Functions

void ChDefaultSliderPainter (ChWidget *wid, ChWindow *win)
 
void ChSliderDestroy (ChWidget *widget, ChWindow *win)
 
void ChSliderMouseEvent (ChWidget *widget, ChWindow *win, int x, int y, int button)
 
ChSlider * ChCreateSlider (uint8_t sliderType, int x, int y, int length)
 
void ChSliderSetStepSize (ChSlider *slider, float stepSz)
 
float ChSliderGetStepSize (ChSlider *slider)
 
float ChSliderGetCurrentValue (ChSlider *slider)
 
void ChSliderSetValue (ChSlider *slider, float value)
 
void ChSliderSetMax (ChSlider *slider, float max)
 
float ChSliderGetMax (ChSlider *slider)
 
void ChSliderSetMin (ChSlider *slider, float min)
 
float ChSliderGetMin (ChSlider *slider)
 

Function Documentation

◆ ChCreateSlider()

ChSlider * ChCreateSlider ( uint8_t  sliderType,
int  x,
int  y,
int  length 
)

◆ ChDefaultSliderPainter()

void ChDefaultSliderPainter ( ChWidget *  wid,
ChWindow *  win 
)
extern

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ ChSliderDestroy()

void ChSliderDestroy ( ChWidget *  widget,
ChWindow *  win 
)

◆ ChSliderGetCurrentValue()

float ChSliderGetCurrentValue ( ChSlider *  slider)

◆ ChSliderGetMax()

float ChSliderGetMax ( ChSlider *  slider)

◆ ChSliderGetMin()

float ChSliderGetMin ( ChSlider *  slider)

◆ ChSliderGetStepSize()

float ChSliderGetStepSize ( ChSlider *  slider)

◆ ChSliderMouseEvent()

void ChSliderMouseEvent ( ChWidget *  widget,
ChWindow *  win,
int  x,
int  y,
int  button 
)

update the current values

◆ ChSliderSetMax()

void ChSliderSetMax ( ChSlider *  slider,
float  max 
)

◆ ChSliderSetMin()

void ChSliderSetMin ( ChSlider *  slider,
float  min 
)

◆ ChSliderSetStepSize()

void ChSliderSetStepSize ( ChSlider *  slider,
float  stepSz 
)

◆ ChSliderSetValue()

void ChSliderSetValue ( ChSlider *  slider,
float  value 
)