Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
ui_slider_s Struct Reference

The slider widget struct. More...

#include <slider.h>

Data Fields

ui_component_t component
 The inherited component struct.
void(*) on_set_position (ui_slider_t *self, unsigned short position)
 Set position callback.
unsigned short(*) on_set_maximum (ui_slider_t *self, unsigned short maximum)
 Set maximum callback.
void(*) on_value_to_point (ui_slider_t *self, unsigned short value, short out_point[2])
 Callback to convert slider position value to thumb sprite coordinate.
double pixels_per_step
 Cached fraction value of (sub)pixels per slider step.
lcd_surface_t * thumb_bg
 Cached thumb background image.
unsigned short * position
 Current position number (borrowed reference).
short last_thumb_center_x
 Thumb position.
unsigned short touch_begin_x
 X coordinate of the start point of a thumb drag.
int unk_0x54
 Unknown. Set to 0.
unsigned short maximum
 Maximum position number of the slider.
unsigned short minimum
 Minimum position number of the slider.
unsigned short step
 Number of positions to advance on key presses.
unsigned short thumb_pressed
 Thumb pressing state.
unsigned short slider_flags
 Style flags.
unsigned short unk_0x62 [3]
 Unknown. Set to 0.

Detailed Description

The slider widget struct.

Field Documentation

◆ component

ui_component_t ui_slider_s::component

The inherited component struct.

◆ on_set_maximum

unsigned short(*) ui_slider_s::on_set_maximum(ui_slider_t *self, unsigned short maximum)

Set maximum callback.

See also
PSLIDER_SetRange

◆ on_set_position

void(*) ui_slider_s::on_set_position(ui_slider_t *self, unsigned short position)

Set position callback.

See also
PSLIDER_SetPos

◆ slider_flags

unsigned short ui_slider_s::slider_flags

Style flags.

See also
ui_slider_flag_e

The documentation for this struct was generated from the following file: