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

Data Structures

struct  WindowParameters
 
struct  WindowBorders
 
struct  LabelText
 
struct  ProgressBarParameters
 
struct  ProgressBarStyle
 
struct  Point
 
struct  Size
 

Namespaces

namespace  Gui
 

Macros

#define VDC_POKE
 

Functions

macro Window (position, size, windowTitle, windowParameters)
 
macro WindowWithColor (position, size, windowTitle, windowParameters, color)
 
macro BorderColor (position, size, color)
 
macro Label (position, label)
 
macro Color (position, color, length)
 
macro LabelWithColor (position, label, color)
 
macro ProgressBar (position, progressBarParameters)
 
macro Button (position, label)
 
macro SlimButton (position, label)
 
function VDC_RowColToAddress (x, y)
 
function VDC_RowColToAttributeAddress (x, y)
 

Macro Definition Documentation

◆ VDC_POKE

#define VDC_POKE

Function Documentation

◆ Window()

macro 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
Note
Use c128lib_CreateWindow in vdc-gui-global.asm
Since
0.2.0

◆ WindowWithColor()

macro 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
Use c128lib_WindowWithColor in vdc-gui-global.asm
Since
0.2.0

◆ BorderColor()

macro BorderColor ( position ,
size ,
color  )

◆ Label()

macro 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
Note
Use c128lib_Label in vdc-gui-global.asm
Since
0.2.0

◆ Color()

macro 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
Use c128lib_Color in vdc-gui-global.asm
Since
0.2.0

◆ LabelWithColor()

macro 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.
See also
Point, LabelText
Note
Use colors defined in chipset/Vdc
Use c128lib_LabelWithColor in vdc-gui-global.asm
Since
0.2.0

◆ ProgressBar()

macro 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
Note
Use c128lib_ProgressBar in vdc-gui-global.asm
Since
0.2.0

◆ Button()

macro 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
Note
Use c128lib_Button in vdc-gui-global.asm
Since
0.2.0

◆ SlimButton()

macro 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
Note
Use c128lib_SlimButton in vdc-gui-global.asm
Since
0.2.0

◆ VDC_RowColToAddress()

function VDC_RowColToAddress ( x ,
y  )

◆ VDC_RowColToAttributeAddress()

function VDC_RowColToAttributeAddress ( x ,
y  )