view src/selectn.h @ 33:a68786b9c74b

Oops, used indent with tabs enabled. Remove tabs.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 24 Sep 2011 15:59:33 +0300
parents 8eaf72e2041b
children
line wrap: on
line source

/*
 *        selectn.h
 *        Selection stuff
 *        AYM 1998-10-23
 */


#ifndef YH_SELECTN                /* DO NOT INSERT ANYTHING BEFORE THIS LINE */
#define YH_SELECTN


class bitvec_c;


// The selection list is used when more than one object is selected.
typedef struct SelectionList *SelPtr;
struct SelectionList
{
    SelPtr next;                // Next in list
    int objnum;                        // Object number
};

bool IsSelected(SelPtr, int);
void DumpSelection(SelPtr list);
void SelectObject(SelPtr *, int);
void select_unselect_obj(SelPtr * list, int objnum);
void UnSelectObject(SelPtr *, int);
void ForgetSelection(SelPtr *);
bitvec_c *list_to_bitvec(SelPtr list, size_t bitvec_size);
SelPtr bitvec_to_list(const bitvec_c & b);


#endif /* DO NOT ADD ANYTHING AFTER THIS LINE */