cdk_marquee(3)

NAME
activateCDKMarquee, destroyCDKMarquee, drawCDKMarquee, eraseCDKMarquee, moveCDKMarquee, newCDKMarquee, positionCDKMarquee, setCDKMarqueeBackgroundColor, setCDKMarqueeBoxAttribute, setCDKMarqueeHorizontalChar, setCDKMarqueeLLChar, setCDKMarqueeLRChar, setCDKMarqueeULChar, setCDKMarqueeURChar, setCDKMarqueeVerticalChar - curses marquee widget

SYNOPSIS

cc [ flag ... ] file ... -lcdk [ library ... ]

#include <cdk/cdk.h>

int activateCDKMarquee (
    CDKMARQUEE *marquee,
    char *message,
    int delay,
    int repeat,
    boolean box);

void destroyCDKMarquee (
    CDKMARQUEE *marquee);

void drawCDKMarquee (
    CDKMARQUEE *marquee,
    boolean box);

void eraseCDKMarquee (
    CDKMARQUEE *marquee);

void moveCDKMarquee (
    CDKMARQUEE *marquee,
    int box,
    int box,
    boolean relative,
    boolean refresh);

CDKMARQUEE *newCDKMarquee (
    CDKSCREEN *cdkscreen,
    int xpos,
    int ypos,
    int fieldWidth,
    boolean shadow);

void positionCDKMarquee (
    CDKMARQUEE *marquee);

void setCDKMarqueeBackgroundColor (
    CDKMARQUEE *marquee,
    char * color);

void setCDKMarqueeBoxAttribute (
    CDKMARQUEE *marquee,
    chtype character);

void setCDKMarqueeHorizontalChar (
    CDKMARQUEE *marquee,
    chtype character);

void setCDKMarqueeLLChar (
    CDKMARQUEE *marquee,
    chtype character);

void setCDKMarqueeLRChar (
    CDKMARQUEE *marquee,
    chtype character);

void setCDKMarqueeULChar (
    CDKMARQUEE *marquee,
    chtype character);

void setCDKMarqueeURChar (
    CDKMARQUEE *marquee,
    chtype character);

void setCDKMarqueeVerticalChar (
    CDKMARQUEE *marquee,
    chtype character);

DESCRIPTION
The Cdk marquee widget creates a pop-up marquee window. The following functions create or manipulate the Cdk marquee widget.

AVAILABLE FUNCTIONS

activateCDKMarquee
    activates the marquee widget. The marquee parameter is a pointer to a defined marquee widget. The delay parameter states how long to wait between movements. This value is highly dependent on each machine the program runs on. The repeat value tells the marquee widget how many times to display the given message. The box option draws the widget with or without a box. This function returns -1 if the message passed is NULL, 0 otherwise.

destroyCDKMarquee
    removes the widget from the screen and frees memory the object used.

drawCDKMarquee
    draws the marquee widget on the screen. If the box parameter is true, the widget is drawn with a box.

eraseCDKMarquee
    removes the widget from the screen. This does NOT destroy the widget.

moveCDKMarquee
    moves the given widget to the given position. The parameters xpos and ypos are the new position of the widget. The parameter xpos may be an integer or one of the pre-defined values TOP, BOTTOM, and CENTER. The parameter ypos may be an integer or one of the pre-defined values LEFT, RIGHT, and CENTER. The parameter relative states whether the xpos/ypos pair is a relative move or an absolute move. For example, if xpos = 1 and ypos = 2 and relative = TRUE, then the widget would move one row down and two columns right. If the value of relative was FALSE then the widget would move to the position (1,2). Do not use the values TOP, BOTTOM, LEFT, RIGHT, or CENTER when relative = TRUE. (weird things may happen). The final parameter refresh is a boolean value which states whether the widget will get refreshed after the move.

newCDKMarquee
    function a marquee widget and returns a pointer to it. The screen parameter is the screen you wish this widget to be placed in. The xpos parameter controls the placement of the object along the horizontal axis. It may be an integer or one of the pre-defined values LEFT, RIGHT, and CENTER. The parameter ypos controls the placement of the object along the vertical axis. This parameter may be an integer value or one of the pre-defined values TOP, BOTTOM, and CENTER. The width parameter state how wide the field is to be. If you provide a value of zero for the width, the widget will assume the full width of the screen. If a negative value is provided, then the widget will assume the full width of the screen minus the value provided. The shadow parameter accepts a boolean value to turn the shadow on or off around this widget. If the widget could not be created then a NULL pointer is returned.

positionCDKMarquee
    allows the user to move the widget around the screen via the cursor/keypad keys. See cdk_position (3) for key bindings.

setCDKMarqueeBackgroundColor
    sets the background color of the widget. The parameter color is in the format of the Cdk format strings. For more information see cdk_display (3).

setCDKMarqueeBoxAttribute
    sets the attribute of the box.

setCDKMarqueeHorizontalChar
    sets the horizontal drawing character for the box to the given character.

setCDKMarqueeLLChar
    sets the lower left hand corner of the widget's box to the given character.

setCDKMarqueeLRChar
    sets the lower right hand corner of the widget's box to the given character.

setCDKMarqueeULChar
    sets the upper left hand corner of the widget's box to the given character.

setCDKMarqueeURChar
    sets the upper right hand corner of the widget's box to the given character.

setCDKMarqueeVerticalChar
    sets the vertical drawing character for the box to the given character.

SEE ALSO
cdk(3), cdk_binding(3), cdk_display(3), cdk_position(3), cdk_screen(3)