コード例 #1
0
ファイル: gtk_TreePath.cpp プロジェクト: Klaim/falcon
/*#
    @method is_descendant GtkTreePath
    @brief Returns TRUE if path is a descendant of ancestor.
    @param ancestor another GtkTreePath
    @return TRUE if ancestor contains path somewhere below it
 */
FALCON_FUNC TreePath::is_descendant( VMARG )
{
    Item* i_anc = vm->param( 0 );
#ifndef NO_PARAMETER_CHECK
    if ( !i_anc || !i_anc->isObject() || !IS_DERIVED( i_anc, GtkTreePath ) )
        throw_inv_params( "GtkTreePath" );
#endif
    GtkTreePath* anc = GET_TREEPATH( *i_anc );
    MYSELF;
    vm->retval( (bool) gtk_tree_path_is_descendant( self->getTreePath(), anc ) );
}
コード例 #2
0
ファイル: rbgtktreepath.c プロジェクト: Mazwak/ruby-gnome2
static VALUE
rg_descendant_p(VALUE self, VALUE ancestor)
{
    return CBOOL2RVAL(gtk_tree_path_is_descendant(_SELF(self), _SELF(ancestor)));
}