函数
GObjectparam_spec_int
声明 [src]
GParamSpec*
g_param_spec_int (
const gchar* name,
const gchar* nick,
const gchar* blurb,
gint minimum,
gint maximum,
gint 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-
类型:
gint指定属性的最小值。
maximum-
类型:
gint指定属性的最大值。
default_value-
类型:
gint指定属性的默认值。
flags-
类型:
GParamFlags指定属性的标志。
返回值
类型: GParamSpec
一个新创建的参数规范。
| 函数调用方负责该数据,并负责释放它。 |