cdk_marquee(3)

πŸ“¦
version 5.0.20260119 Β· 4 versions
, in debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– cdk_marquee πŸ’–

okay bestie, gather round, because this is the manual page for cdk_marquee(3) β€” a Library call and honestly one of the cutest widgets in the whole Cdk lineup. it's a marquee. it scrolls. it pops up. it's giving ✨main character energy✨ and it lives in section 3 of the manual, iykyk.


✨ NAME ✨

cdk_marquee β€” the Cdk marquee widget πŸŽ€


🌸 SYNOPSIS 🌸

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

#include <cdk.h>

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

void deactivateCDKMarquee (
               CDKMARQUEE *marquee);

void destroyCDKMarquee (
               CDKMARQUEE *marquee);

void drawCDKMarquee (
               CDKMARQUEE *marquee,
               boolean box);

void eraseCDKMarquee (
               CDKMARQUEE *marquee);

boolean getCDKMarqueeBox (
               CDKMENTRY *mentry);

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

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

void positionCDKMarquee (
               CDKMARQUEE *marquee);

void setCDKMarqueeBackgroundAttrib (
               CDKMARQUEE *marquee,
               chtype attribute);

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

void setCDKMarqueeBox (
               CDKMENTRY *mentry,
               boolean boxWidget);

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 πŸ¦‹

so the Cdk marquee widget literally just creates a pop-up marquee window. that's it, that's the vibe. 🌈

and then the functions below? they create it, they manipulate it, they make it do its little scrolling thing. the whole glow-up is in the next section bestie, keep reading.


πŸ‘‘ AVAILABLE FUNCTIONS πŸ‘‘

activateCDKMarquee

activates the marquee widget. wake it up, it's time to shine πŸ’…

  • the marquee parameter is a pointer to a defined marquee widget.
  • the delay parameter states how long to wait between movements. heads up though β€” this value is highly dependent on each machine the program runs on, so don't come for me if it moves different on your laptop fr fr.
  • 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.

deactivateCDKMarquee

deactivates the marquee widget. nap time 😴

destroyCDKMarquee

removes the widget from the screen and frees memory the object used. gone, but not forgotten 🫢

drawCDKMarquee

draws the marquee widget on the screen. if the box parameter is true, the widget is drawn with a box. no box, no problem.

eraseCDKMarquee

removes the widget from the screen. this does NOT destroy the widget. it's just hiding, not deleting. know the difference bestie, it matters πŸ’€

getCDKMarqueeBox

returns true if the widget will be drawn with a box around it. simple. iconic.

moveCDKMarquee

moves the given widget to the given position. okay so here's the tea:

  • 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). i'm not joking, weird things. genuinely weird. πŸ™ˆ
  • the final parameter refresh is a boolean value which states whether the widget will get refreshed after the move.

newCDKMarquee

creates a marquee widget and returns a pointer to it. parameters, let's go:

screen

is the screen you wish this widget to be placed in.

xpos

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.

ypos

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.

width

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. math girlies rise 🧚

shadow

turns the shadow on or off around this widget.

if the widget could not be created then a NULL pointer is returned. so like... check for that. please. 😭

positionCDKMarquee

allows the user to move the widget around the screen via the cursor/keypad keys. see cdk_position(3) for key bindings. yes, that's a cross-reference, we love a linked page πŸ”₯

setCDKMarqueeBackgroundAttrib

sets the background attribute of the widget. the parameter attribute is a curses attribute, e.g., A_BOLD. bold and beautiful.

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). go peek, it's worth it ✨

setCDKMarqueeBox

sets whether the widget will be drawn with a box around it. box or no box, your call, you're the main character πŸ‘‘

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)

go read those too, they're all bangers, no cap πŸ“š


okay that's the whole page bestie, you ate that πŸ’… this was cdk_marquee(3) from the Library calls corner of the manual, dated 2025-01-14 β€” and that's the source, the version, the date, all of it, wrapped up in a little bow for you πŸŽ€βœ¨ mwah, go write some scrolling text πŸ’–