函数
GObjectparam_spec_char
声明 [src]
GParamSpec*
g_param_spec_char (
const gchar* name,
const gchar* nick,
const gchar* blurb,
gint8 minimum,
gint8 maximum,
gint8 default_value,
GParamFlags flags
)
参数
name-
类型:
const gchar*指定的属性的规范名称。
数据由函数调用者所有。 该值是 NUL 终止的 UTF-8 字符串。 nick-
类型:
const gchar*指定的属性的别名。
参数可以是 NULL。数据由函数调用者所有。 该值是 NUL 终止的 UTF-8 字符串。 blurb-
类型:
const gchar*指定属性的描述。
参数可以是 NULL。数据由函数调用者所有。 该值是 NUL 终止的 UTF-8 字符串。 minimum-
类型:
gint8指定属性的最小值。
maximum-
类型:
gint8指定属性的最大值。
default_value-
类型:
gint8指定属性的默认值。
flags-
类型:
GParamFlags指定属性的标志。
返回值
类型: GParamSpec
一个新创建的参数规范。
| 函数调用者具有数据的所权,并负责释放它。 |