summaryrefslogtreecommitdiff
path: root/modules/console/includes/scilines.h
blob: 807b8a42c2d2474075d74b891fccc414a9040124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2007 - INRIA - Allan CORNET
 *
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at
 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
 *
 */
/*--------------------------------------------------------------------------*/
#ifndef __SCILINES_H__
#define __SCILINES_H__

#include "machine.h" /* C2F */
#include "BOOL.h"
#include "dynlib_console.h"

/**
* set number of lines and columns to display data
* @param[in] number of lines
* @param[in] number of columns
* @return 0
*/
CONSOLE_IMPEXP int scilines(int nl, int nc);

/**
* set default number of lines and columns to display data
* @return 0
*/
CONSOLE_IMPEXP int scilinesdefault(void);

/**
* set number of lines and columns to display data (C2F version)
* @param[in] number of lines
* @param[in] number of columns
* @return 0
*/
CONSOLE_IMPEXP int C2F(scilines)(int *nl, int *nc);

/**
* set default number of lines and columns to display data (C2F version)
* @return 0
*/
CONSOLE_IMPEXP int C2F(scilinesdefault)(void);

/**
* set number of columns to display data
* @param new size of columns
* @return TRUE or FALSE
*/
CONSOLE_IMPEXP BOOL setColumnsSize(int colums);

/**
* set number of lines to display data
* @param new size of lines
* @return TRUE or FALSE
*/
CONSOLE_IMPEXP BOOL setLinesSize(int lines_);

/**
* get number of columns to display data
* @return numbers of columns
*/
CONSOLE_IMPEXP int getColumnsSize(void);

/**
* get number of lines to display data
* @return numbers of lines
*/
CONSOLE_IMPEXP int getLinesSize(void);

#endif /* __SCILINES_H__ */
/*--------------------------------------------------------------------------*/