c128lib Framework
A Commodore 128 software framework for enabling high-level development of C128 programs.
Loading...
Searching...
No Matches
vdc-gui-global.asm File Reference

Functions

macro c128lib_Window (position, size, windowTitle, windowParameters)
 
macro c128lib_WindowWithColor (position, size, windowTitle, windowParameters, color)
 
macro c128lib_Label (position, label)
 
macro c128lib_Color (position, color, length)
 
macro c128lib_LabelWithColor (position, label, color)
 
macro c128lib_ProgressBar (position, progressBarParameters)
 
macro c128lib_Button (position, label)
 
macro c128lib_SlimButton (position, label)
 

Function Documentation

◆ c128lib_Window()

macro c128lib_Window ( position ,
size ,
windowTitle ,
windowParameters  )

Draws a window in Vdc screen

Parameters
[in]positionPoint struct for window starting position
[in]sizeSize struct for window size
[in]windowTitleLabelText struct for window title definition
[in]windowParametersWindowParameters for detailed window parameters definition
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
See also
Point, Size, LabelText, WindowParameters
Point(10, 3),
Size(20, 10),
LabelText(Title, 15), // Set title
WindowBorders(), // Use default borders
true)) // Make window opaque
Definition vdc-gui.asm:70
Definition vdc-gui.asm:111
Definition vdc-gui.asm:122
Definition vdc-gui.asm:47
Definition vdc-gui.asm:36
macro c128lib_Window(position, size, windowTitle, windowParameters)
Definition vdc-gui-global.asm:66
Point(10, 3),
Size(20, 10),
LabelText(null, 0), // Don't set title
WindowBorders(85, 66, 74, 67, 75, 66, 73, 67), // Use custom chars for borders
false)) // Make window transparent
Attention
Don't overlap window with color and window without color. Strange color behavior occour.
Since
0.2.0

◆ c128lib_WindowWithColor()

macro c128lib_WindowWithColor ( position ,
size ,
windowTitle ,
windowParameters ,
color  )

Draws a window in Vdc screen with specific color

Parameters
[in]positionPoint struct for window starting position
[in]sizeSize struct for window size
[in]windowTitleLabelText struct for window title definition
[in]windowParametersWindowParameters for detailed window parameters definition
[in]colorDefines which color to use
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
See also
Point, Size, LabelText, WindowParameters
Note
Use colors defined in chipset/Vdc
Point(10, 3),
Size(20, 10),
LabelText(Title, 15), // Set title
WindowBorders(), // Use default borders
true), // Make window opaque
c128lib.Vdc.VDC_LIGHT_YELLOW) // Set color
macro c128lib_WindowWithColor(position, size, windowTitle, windowParameters, color)
Definition vdc-gui-global.asm:111
Point(10, 3),
Size(20, 10),
10, 3, 20, 10, // Set window size
LabelText(null, 0), // Don't set title
WindowBorders(85, 66, 74, 67, 75, 66, 73, 67), // Use custom chars for borders
false), // Make window transparent
c128lib.Vdc.VDC_LIGHT_YELLOW) // Set color
Attention
Don't overlap window with color and window without color. Strange color behavior occour.
Since
0.2.0

◆ c128lib_Label()

macro c128lib_Label ( position ,
label  )

Print a label at coordinates;

Parameters
[in]positionPoint struct for label position;
[in]labelLabelText struct for label definition;
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
See also
Point, LabelText
Since
0.2.0

◆ c128lib_Color()

macro c128lib_Color ( position ,
color ,
length  )

Set color in attribute memory for specified coordinates

Parameters
[in]positionPoint struct for coloring starting position
[in]colorVdc color code and attribute
[in]lengthColoring length
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
See also
Point
Note
Use colors defined in chipset/Vdc
Since
0.2.0

◆ c128lib_LabelWithColor()

macro c128lib_LabelWithColor ( position ,
label ,
color  )

Print a label at coordinates with specified color;

Parameters
[in]positionPoint struct for label position;
[in]labelLabelText struct for label definition;
[in]colorVdc color code and attribute
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
Note
Use colors defined in chipset/Vdc
See also
Point, LabelText
Since
0.2.0

◆ c128lib_ProgressBar()

macro c128lib_ProgressBar ( position ,
progressBarParameters  )

Prints a progress bar at coordinates

Parameters
[in]positionPoint struct for progress bar starting position
[in]progressBarParametersProgressBarParameters struct for progress bar parameters
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
See also
Point, ProgressBarParameters
Point(0, 0),
12, // Set progress bar width
5, 2, // Set step count and current position
ProgressBarStyle(58, 59, 87, 88)) // Set custom style
);
Definition vdc-gui.asm:81
Definition vdc-gui.asm:96
macro c128lib_ProgressBar(position, progressBarParameters)
Definition vdc-gui-global.asm:196
Point(0, 3),
12, // Set progress bar position and width
5, 4, // Set step count and current position
ProgressBarStyle()) // Set default style
);
Since
0.2.0

◆ c128lib_Button()

macro c128lib_Button ( position ,
label  )

Print a button at coordinates

Parameters
[in]positionPoint struct for button position
[in]labelLabelText for label definition;
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
See also
Point, LabelText
Point(45, 9),
ButtonParameters(
LabelText(Title, 2)
));
macro c128lib_Button(position, label)
Definition vdc-gui-global.asm:219
Since
0.2.0

◆ c128lib_SlimButton()

macro c128lib_SlimButton ( position ,
label  )

Print a slim button at coordinates. It's a single line button instead of three.

Parameters
[in]positionPoint struct for slim button position
[in]labelLabelText for label definition;
Remarks
Register .A, .X and .Y will be modified. Flags N, Z and C will be affected.
See also
Point, LabelText
Point(45, 9),
ButtonParameters(
LabelText(Si, 2)
));
macro c128lib_SlimButton(position, label)
Definition vdc-gui-global.asm:242
Since
0.2.0