Blender  V2.93
BKE_freestyle.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2013 Blender Foundation
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct FreestyleConfig;
31 struct FreestyleLineSet;
33 struct Main;
34 
35 /* RNA aliases */
38 
39 /* FreestyleConfig */
40 void BKE_freestyle_config_init(struct FreestyleConfig *config);
41 void BKE_freestyle_config_free(struct FreestyleConfig *config, const bool do_id_user);
43  const struct FreestyleConfig *config,
44  const int flag);
45 
46 /* FreestyleConfig.modules */
49  struct FreestyleModuleConfig *module_conf);
50 bool BKE_freestyle_module_move(struct FreestyleConfig *config,
51  struct FreestyleModuleConfig *module_conf,
52  int direction);
53 
54 /* FreestyleConfig.linesets */
55 struct FreestyleLineSet *BKE_freestyle_lineset_add(struct Main *bmain,
56  struct FreestyleConfig *config,
57  const char *name);
59  struct FreestyleLineSet *lineset);
62 void BKE_freestyle_lineset_set_active_index(struct FreestyleConfig *config, short index);
64  struct FreestyleLineSet *lineset);
65 
66 #ifdef __cplusplus
67 }
68 #endif
struct FreestyleModuleSettings FreestyleModuleSettings
Definition: BKE_freestyle.h:36
void BKE_freestyle_config_copy(struct FreestyleConfig *new_config, const struct FreestyleConfig *config, const int flag)
struct FreestyleSettings FreestyleSettings
Definition: BKE_freestyle.h:37
short BKE_freestyle_lineset_get_active_index(struct FreestyleConfig *config)
Definition: freestyle.c:245
struct FreestyleModuleConfig * BKE_freestyle_module_add(struct FreestyleConfig *config)
Definition: freestyle.c:131
struct FreestyleLineSet * BKE_freestyle_lineset_add(struct Main *bmain, struct FreestyleConfig *config, const char *name)
Definition: freestyle.c:182
void BKE_freestyle_config_free(struct FreestyleConfig *config, const bool do_id_user)
Definition: freestyle.c:56
bool BKE_freestyle_lineset_delete(struct FreestyleConfig *config, struct FreestyleLineSet *lineset)
Definition: freestyle.c:216
void BKE_freestyle_lineset_unique_name(struct FreestyleConfig *config, struct FreestyleLineSet *lineset)
Definition: freestyle.c:167
void BKE_freestyle_lineset_set_active_index(struct FreestyleConfig *config, short index)
Definition: freestyle.c:259
struct FreestyleLineSet * BKE_freestyle_lineset_get_active(struct FreestyleConfig *config)
Definition: freestyle.c:233
bool BKE_freestyle_module_move(struct FreestyleConfig *config, struct FreestyleModuleConfig *module_conf, int direction)
Definition: freestyle.c:159
void BKE_freestyle_config_init(struct FreestyleConfig *config)
Definition: freestyle.c:43
bool BKE_freestyle_module_delete(struct FreestyleConfig *config, struct FreestyleModuleConfig *module_conf)
Definition: freestyle.c:146
Definition: BKE_main.h:116