blob: 1ded9f9eebad2a16f8902f2553f757e9b6e8d02e (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
#ifndef __CALLFONTCHOOSER_H__
#define __CALLFONTCHOOSER_H__
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008 - INRIA - Vincent COUVERT
*
* 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
*
*/
#include "BOOL.h"
/**
* Create a new Font Chooser
*
* @param void
* @return this ID of the Java Font Chooser
*/
int createFontChooser(void);
/**
* Set the default font name of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @param fontName the name of the default font
*/
void setFontChooserFontName(int fontChooserID, char *fontName);
/**
* Set the default font size of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @param fontSize the size of the default font
*/
void setFontChooserFontSize(int fontChooserID, int fontSize);
/**
* Set the default bold attribute of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @param bold the bold attribute of the default font
*/
void setFontChooserBold(int fontChooserID, BOOL bold);
/**
* Set the default italic attribute of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @param italic the italic attribute of the default font
*/
void setFontChooserItalic(int fontChooserID, BOOL italic);
/**
* Display the FontChooser and wait for a user input
*
* @param fontChooserID the ID of the Java FontChooser
*/
void fontChooserDisplayAndWait(int fontChooserID);
/**
* Get the selected font name of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @return the name of the font
*/
char *getFontChooserFontName(int fontChooserID);
/**
* Get the selected font size of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @return the size of the font
*/
int getFontChooserFontSize(int fontChooserID);
/**
* Get the selected font bold attribute of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @return the bold attribute of the font
*/
BOOL getFontChooserBold(int fontChooserID);
/**
* Get the selected font italic attribute of a Font Chooser
*
* @param fontChooserID the ID of the Java FontChooser
* @return the italic attribute of the font
*/
BOOL getFontChooserItalic(int fontChooserID);
#endif
|