25 #ifndef TBX_RES_MENU_H
26 #define TBX_RES_MENU_H
28 #include "resobject.h"
29 #include "resiteratorbase.h"
30 #include "../handles.h"
40 const int MENU_DATA_SIZE = 32;
41 const int MENU_ITEM_SIZE = 40;
50 ResMenuItem(
void *item_header,
int size, ResData *data);
54 char *header()
const {
return _impl->header();}
89 ResImpl *new_impl =
new ResImpl(*
_impl);
353 enum { CLASS_ID = 0x828c0};
574 friend class const_iterator;
606 friend class iterator;
608 const_iterator
begin()
const;
609 const_iterator
end()
const;
610 const_iterator
cbegin()
const;
611 const_iterator
cend()
const;
625 iterator
erase(iterator pos);
Base class for Resource component iterators.
Definition: resiteratorbase.h:8
const ResMenu * _object
Reference to object being iterated.
Definition: resiteratorbase.h:11
Base class for objects, gadgets and menu items from ressources.
Definition: resbase.h:252
void message_with_length(int offset, const char *value, int length=-1)
Assign a message where the length is at offset+4.
Definition: resbase.cc:1639
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
int _offset
Offset of current item being iterated.
Definition: resiteratorbase.h:12
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
unsigned int uint_value(int offset) const
Get an unsigned integer value.
Definition: resbase.h:324
ResObject & operator=(const ResObject &other)
Assignment.
Definition: resobject.cc:109
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
Base class for a resource object that can be edited.
Definition: resobject.h:52
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
ResImpl * _impl
Internal Resource implementation.
Definition: resbase.h:255
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736