blobs.bi

The FreeBasic include for the Blobs User Interface

Author

Marcel Sondaar

License

Public Domain

Summary
blobs.biThe FreeBasic include for the Blobs User Interface
BLOBSCALLSThis enumeration lists all the defined calls to a BLOBS compatible host
Constants
BLOBS_CREATEWINDOWthis attempts to create a viewport
Todo’s
Documentation
BLOBSWINDOWCALLSThis enumeration lists all the defined calls to a BLOBS compatible viewport.
Constants
BLOBS_SETPIXELsee: GFXPRIMITIVES.GFX_SETPIXEL
BLOBS_SETCHARsee: GFXPRIMITIVES.GFX_SETCHAR
BLOBS_PRINTCHARCall index for character streams

BLOBSCALLS

This enumeration lists all the defined calls to a BLOBS compatible host

the host manages a screen, and divides it into viewports, where each viewport can be accessed independently

Derived from: none

Derivatives: none

See also: BLOBSWINDOWCALLS

Summary
Constants
BLOBS_CREATEWINDOWthis attempts to create a viewport
Todo’s
Documentation

Constants

BLOBS_CREATEWINDOW

this attempts to create a viewport

The location of the viewport is indeterminate, as well as actual visibility.  If the viewport can not be made visible in its entirety, the interface should provide a means to the user to bring it to the foreground.

The implementation defines the limitations of when a viewport can be created, which may mean that creation can be refused if viewports are already present.  The implementation should at minimum support one viewport the size of the screen or less.

The implementation may interpret the input size in any linear system instead of pixels, such as characters.  Consequently the actual size in pixels may be not be specified exactly but only as a multiple of a certain value.  You should call <BLOBS_WINDOWDIMENSIONS> to retrieve the scaling involved

in

Parameter 1call gate information
Parameter 2width (in implemention specified units)
Parameter 3height (in implemention specified units)
Parameter 4undefined

out

Parameter 1gate allocated, or -1 on failure

destroyed

all other inputs

Todo’s

Documentation

BLOBSWINDOWCALLS

This enumeration lists all the defined calls to a BLOBS compatible viewport.

These can be roughly divided into two categories: graphics primitives, and helper functions.

Derived from: GFXPRIMITIVES

Derivatives: none

See also: BLOBSCALLS

Constants

BLOBS_SETPIXEL

BLOBS_SETCHAR

BLOBS_PRINTCHAR

Call index for character streams

This call emulates the effect of a console.  Characters are emitted in order, wrapping around the ends of the screen.  Special characters like newline or linefeed \n and \r work as they would on an printer, meaning that you have to emit both characters to continue at the start of the next line.

in

Parameter 1call gate information
Parameter 2character
Parameter 3undefined
Parameter 4undefined

out

none

destroyed

all other inputs

Call index for setting a pixel
Call index for drawing a character
This enumeration lists all the defined calls to a BLOBS compatible viewport.
This enumeration lists all the basic primitives a graphics card might support
This enumeration lists all the defined calls to a BLOBS compatible host