MCPcopy Create free account
hub / github.com/Entware/Entware / draw_shadow

Function draw_shadow

scripts/config/lxdialog/util.c:498–514  ·  view source on GitHub ↗

* Draw shadows along the right and bottom edge to give a more 3D look * to the boxes */

Source from the content-addressed store, hash-verified

496 * to the boxes
497 */
498void draw_shadow(WINDOW * win, int y, int x, int height, int width)
499{
500 int i;
501
502 if (has_colors()) { /* Whether terminal supports color? */
503 wattrset(win, dlg.shadow.atr);
504 wmove(win, y + height, x + 2);
505 for (i = 0; i < width; i++)
506 waddch(win, winch(win) & A_CHARTEXT);
507 for (i = y + 1; i < y + height + 1; i++) {
508 wmove(win, i, x + width);
509 waddch(win, winch(win) & A_CHARTEXT);
510 waddch(win, winch(win) & A_CHARTEXT);
511 }
512 wnoutrefresh(win);
513 }
514}
515
516/*
517 * Return the position of the first alphabetic character in a string.

Callers 5

dialog_yesnoFunction · 0.85
dialog_textboxFunction · 0.85
dialog_checklistFunction · 0.85
dialog_menuFunction · 0.85
dialog_inputboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected