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};
364 about_to_be_shown_event(-1);
365 has_been_hidden_event(-1);
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Base class for Resource component iterators.
Definition: resiteratorbase.h:8
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
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
unsigned int uint_value(int offset) const
Get an unsigned integer value.
Definition: resbase.h:324
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
Classes to use/edit toolbox resources in memory.
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
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
ResImpl * _impl
Internal Resource implementation.
Definition: resbase.h:255
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736