Blender V4.3
ScrollBar.h File Reference

Go to the source code of this file.

Typedefs

typedef struct _ScrollBar ScrollBar
 

Functions

ScrollBarscrollbar_new (int inset, int minthumb)
 
int scrollbar_is_scrolling (ScrollBar *sb)
 
int scrollbar_contains_pt (ScrollBar *sb, int pt[2])
 
void scrollbar_start_scrolling (ScrollBar *sb, int yco)
 
void scrollbar_keep_scrolling (ScrollBar *sb, int yco)
 
void scrollbar_stop_scrolling (ScrollBar *sb)
 
void scrollbar_set_thumbpct (ScrollBar *sb, float pct)
 
void scrollbar_set_thumbpos (ScrollBar *sb, float pos)
 
void scrollbar_set_rect (ScrollBar *sb, int rect[2][2])
 
float scrollbar_get_thumbpct (ScrollBar *sb)
 
float scrollbar_get_thumbpos (ScrollBar *sb)
 
void scrollbar_get_rect (ScrollBar *sb, int rect_r[2][2])
 
void scrollbar_get_thumb (ScrollBar *sb, int thumb_r[2][2])
 
void scrollbar_free (ScrollBar *sb)
 

Typedef Documentation

◆ ScrollBar

typedef struct _ScrollBar ScrollBar

Definition at line 5 of file ScrollBar.h.

Function Documentation

◆ scrollbar_contains_pt()

int scrollbar_contains_pt ( ScrollBar * sb,
int pt[2] )

Definition at line 76 of file ScrollBar.c.

References _ScrollBar::rect, and rect_contains_pt().

Referenced by loggerwindow_do_button().

◆ scrollbar_free()

void scrollbar_free ( ScrollBar * sb)

Definition at line 133 of file ScrollBar.c.

References MEM_freeN().

◆ scrollbar_get_rect()

void scrollbar_get_rect ( ScrollBar * sb,
int rect_r[2][2] )

Definition at line 128 of file ScrollBar.c.

References _ScrollBar::rect, and rect_copy().

Referenced by loggerwindow_do_draw().

◆ scrollbar_get_thumb()

void scrollbar_get_thumb ( ScrollBar * sb,
int thumb_r[2][2] )

◆ scrollbar_get_thumbpct()

float scrollbar_get_thumbpct ( ScrollBar * sb)

Definition at line 120 of file ScrollBar.c.

References _ScrollBar::thumbpct.

◆ scrollbar_get_thumbpos()

float scrollbar_get_thumbpos ( ScrollBar * sb)

Definition at line 124 of file ScrollBar.c.

References _ScrollBar::thumbpos.

Referenced by loggerwindow_do_draw().

◆ scrollbar_is_scrolling()

int scrollbar_is_scrolling ( ScrollBar * sb)

Definition at line 72 of file ScrollBar.c.

References _ScrollBar::scrolling.

Referenced by loggerwindow_do_button(), loggerwindow_do_draw(), and loggerwindow_do_move().

◆ scrollbar_keep_scrolling()

void scrollbar_keep_scrolling ( ScrollBar * sb,
int yco )

◆ scrollbar_new()

ScrollBar * scrollbar_new ( int inset,
int minthumb )

Definition at line 51 of file ScrollBar.c.

References _ScrollBar::inset, MEM_callocN, and _ScrollBar::minthumb.

Referenced by loggerwindow_new().

◆ scrollbar_set_rect()

void scrollbar_set_rect ( ScrollBar * sb,
int rect[2][2] )

Definition at line 115 of file ScrollBar.c.

References _ScrollBar::rect, and rect_copy().

Referenced by loggerwindow_recalc_regions().

◆ scrollbar_set_thumbpct()

void scrollbar_set_thumbpct ( ScrollBar * sb,
float pct )

Definition at line 107 of file ScrollBar.c.

References _ScrollBar::thumbpct.

Referenced by loggerwindow_log(), and loggerwindow_recalc_regions().

◆ scrollbar_set_thumbpos()

void scrollbar_set_thumbpos ( ScrollBar * sb,
float pos )

Definition at line 111 of file ScrollBar.c.

References clamp_f(), pos, and _ScrollBar::thumbpos.

◆ scrollbar_start_scrolling()

◆ scrollbar_stop_scrolling()

void scrollbar_stop_scrolling ( ScrollBar * sb)

Definition at line 101 of file ScrollBar.c.

References _ScrollBar::scrolling, and _ScrollBar::scrolloffs.

Referenced by loggerwindow_do_button().