DOKK / manpages / debian 12 / libcdk5-dev / destroyCDKMarquee.3.en
cdk_marquee(3) Library Functions Manual cdk_marquee(3)

cdk_marquee - curses marquee widget

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

#include <cdk.h>

CDKMARQUEE *marquee,
const char *message,
int delay,
int repeat,
boolean box);
CDKMARQUEE *marquee);
CDKMARQUEE *marquee);
CDKMARQUEE *marquee,
boolean box);
CDKMARQUEE *marquee);
CDKMENTRY *mentry);
CDKMARQUEE *marquee,
int xpos,
int ypos,
boolean relative,
boolean refresh);
CDKSCREEN *cdkscreen,
int xpos,
int ypos,
int fieldWidth,
boolean box,
boolean shadow);
CDKMARQUEE *marquee);
CDKMARQUEE *marquee,
chtype attribute);
CDKMARQUEE *marquee,
const char * color);
CDKMENTRY *mentry,
boolean boxWidget);
CDKMARQUEE *marquee,
chtype character);
CDKMARQUEE *marquee,
chtype character);
CDKMARQUEE *marquee,
chtype character);
CDKMARQUEE *marquee,
chtype character);
CDKMARQUEE *marquee,
chtype character);
CDKMARQUEE *marquee,
chtype character);
CDKMARQUEE *marquee,
chtype character);

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

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.
deactivates the marquee widget.
removes the widget from the screen and frees memory the object used.
draws the marquee widget on the screen. If the box parameter is true, the widget is drawn with a box.
removes the widget from the screen. This does NOT destroy the widget.
returns true if the widget will be drawn with a box around it.
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.
creates a marquee widget and returns a pointer to it. Parameters:
is the screen you wish this widget to be placed in.
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.
controls the placement of the object along the vertical axis. It may be an integer or one of the pre-defined values TOP, BOTTOM, and CENTER.
controls the width of the field. If you provide a value of zero for the width, the widget uses the width of the screen. If a negative value is provided, then the widget uses the width of the screen less the value provided.
turns the shadow on or off around this widget.
If the widget could not be created then a NULL pointer is returned.
allows the user to move the widget around the screen via the cursor/keypad keys. See cdk_position (3) for key bindings.
sets the background attribute of the widget. The parameter attribute is a curses attribute, e.g., A_BOLD.
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).
sets whether the widget will be drawn with a box around it.
sets the attribute of the box.
sets the horizontal drawing character for the box to the given character.
sets the lower left hand corner of the widget's box to the given character.
sets the lower right hand corner of the widget's box to the given character.
sets the upper left hand corner of the widget's box to the given character.
sets the upper right hand corner of the widget's box to the given character.
sets the vertical drawing character for the box to the given character.

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