2025-03-18 12:31:36 +01:00
|
|
|
/* ************************************************************************** */
|
|
|
|
|
/* */
|
|
|
|
|
/* ::: :::::::: */
|
|
|
|
|
/* treedrawing.h :+: :+: :+: */
|
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
|
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
|
/* Created: 2025/03/18 12:24:25 by khais #+# #+# */
|
2025-03-19 12:08:53 +01:00
|
|
|
/* Updated: 2025/03/19 13:50:37 by khais ### ########.fr */
|
2025-03-18 12:31:36 +01:00
|
|
|
/* */
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
|
|
#ifndef TREEDRAWING_H
|
|
|
|
|
# define TREEDRAWING_H
|
|
|
|
|
|
2025-03-18 15:11:23 +01:00
|
|
|
# include <stdbool.h>
|
|
|
|
|
# include "buffer/buffer.h"
|
|
|
|
|
|
2025-03-18 15:46:15 +01:00
|
|
|
# define CROSS " ├─ "
|
|
|
|
|
# define CORNER " ╰─ "
|
|
|
|
|
# define VERTICAL " │ "
|
|
|
|
|
# define SPACE " "
|
2025-03-18 15:11:23 +01:00
|
|
|
|
2025-03-19 12:08:53 +01:00
|
|
|
/* # define CROSS " |- " */
|
|
|
|
|
/* # define CORNER " \\- " */
|
|
|
|
|
/* # define VERTICAL " | " */
|
|
|
|
|
/* # define SPACE " " */
|
|
|
|
|
|
2025-03-19 12:12:51 +01:00
|
|
|
void indent(t_buffer *indent, bool is_last);
|
|
|
|
|
void dedent(t_buffer *indent, bool is_last);
|
2025-03-18 12:31:36 +01:00
|
|
|
|
|
|
|
|
#endif // TREEDRAWING_H
|