本文整理汇总了C++中Local::ToInteger方法的典型用法代码示例。如果您正苦于以下问题:C++ Local::ToInteger方法的具体用法?C++ Local::ToInteger怎么用?C++ Local::ToInteger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Local
的用法示例。
在下文中一共展示了Local::ToInteger方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ColumnSpacingSetter
void Table::ColumnSpacingSetter(Local<String> name, Local<Value> value, const AccessorInfo& info)
{
HandleScope scope;
if (value->IsNumber()) {
ClutterActor *instance = ObjectWrap::Unwrap<Table>(info.This())->_actor;
mx_table_set_column_spacing(MX_TABLE(instance), value->ToInteger()->Value());
}
}
示例2: SpacingSetter
void BoxLayout::SpacingSetter(Local<String> name, Local<Value> value, const AccessorInfo& info)
{
HandleScope scope;
if (value->IsNumber()) {
ClutterActor *instance = ObjectWrap::Unwrap<BoxLayout>(info.This())->_actor;
mx_box_layout_set_spacing(MX_BOX_LAYOUT(instance), value->ToInteger()->Value());
}
}
示例3: ScaleModeSetter
void Image::ScaleModeSetter(Local<String> name, Local<Value> value, const AccessorInfo& info)
{
HandleScope scope;
if (value->IsNumber()) {
ClutterActor *instance = ObjectWrap::Unwrap<Image>(info.This())->_actor;
mx_image_set_scale_mode(MX_IMAGE(instance), (MxImageScaleMode)value->ToInteger()->Value());
}
}
示例4: FilterQualitySetter
void Texture::FilterQualitySetter(Local<String> name, Local<Value> value, const AccessorInfo& info)
{
HandleScope scope;
if (value->IsNumber()) {
ClutterActor *instance = ObjectWrap::Unwrap<Actor>(info.This())->_actor;
clutter_texture_set_filter_quality(CLUTTER_TEXTURE(instance), (ClutterTextureQuality)value->ToInteger()->Value());
}
}