class documentation

A simple scrollbar class for a GUI.

Method __del__ Clean up resources.
Method __init__ Initialize the scrollbar with position, size, and colors.
Method clear Clear the scrollbar.
Method draw Draw the scrollbar.
Method set_all Set the properties of the scrollbar.
Instance Variable display Undocumented
Instance Variable fill_color Undocumented
Instance Variable is_horizontal Undocumented
Instance Variable outline_color Undocumented
Instance Variable position Undocumented
Instance Variable size Undocumented
def __del__(self):

Clean up resources.

def __init__(self, draw, position, size, outline_color: int = 0, fill_color: int = 16777215, is_horizontal: bool = False):

Initialize the scrollbar with position, size, and colors.

Parameters
draw:DrawThe drawing context to render the scrollbar.
position:VectorThe position of the scrollbar.
size:VectorThe size of the scrollbar.
outline_color:intThe outline color. Defaults to 0x0000.
fill_color:intThe fill color. Defaults to 0xFFFFFF.
is_horizontal:boolWhether the scrollbar is horizontal. Defaults to False.
def clear(self):

Clear the scrollbar.

def draw(self):

Draw the scrollbar.

def set_all(self, position, size, outline_color: int, fill_color: int, is_horizontal: bool = False, should_draw: bool = True, should_clear: bool = True):

Set the properties of the scrollbar.

Parameters
position:VectorThe new position of the scrollbar.
size:VectorThe new size of the scrollbar.
outline_color:intThe new outline color.
fill_color:intThe new fill color.
is_horizontal:boolWhether the scrollbar is horizontal. Defaults to False.
should_draw:boolWhether to redraw after setting. Defaults to True.
should_clear:boolWhether to clear before setting. Defaults to True.
display =

Undocumented

fill_color =

Undocumented

is_horizontal =

Undocumented

outline_color =

Undocumented

position =

Undocumented

size =

Undocumented