38 #include "resstruct.h"
66 bool save(std::ostream &file);
156 ResData *
component_data(
char *new_body,
int offset,
int size)
const {
return _impl->component_data(new_body, offset, size);}
ResData * component_data(char *new_body, int offset, int size) const
Extract a copy of a components data from this object.
Definition: resobject.h:156
int * OsSpriteAreaPtr
Type for pointer to underlying RISC OS Sprite area.
Definition: sprite.h:214
int class_id() const
Return class id of object.
Definition: resobject.h:89
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
Base class for objects, gadgets and menu items from ressources.
Definition: resbase.h:253
Base class for a resource object that can be edited.
Definition: resobject.h:53
void erase_component(int offset, int size)
Erase a component of the given size.
Definition: resobject.cc:424
unsigned int object_flags() const
object flags - use methods below for named access to the bits of the flags
Definition: resobject.h:100
The main application class.
Definition: application.h:79
ResImpl * _impl
Internal Resource implementation.
Definition: resbase.h:255
bool ancestor() const
Get ancestor flags.
Definition: resobject.h:129
virtual ~ResObject()
Destructor.
Definition: resobject.cc:102
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
bool create_on_load() const
Get create on load flag.
Definition: resobject.h:108
bool shared() const
Get shared flag.
Definition: resobject.h:122
static OsSpriteAreaPtr client_sprite_pointer()
Get pointer to client sprite area.
Definition: resobject.cc:125
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
void insert_component(int offset, const ResImpl *comp_impl)
Insert a component in an object.
Definition: resobject.cc:397
static ResObject * load(std::istream &file)
Load a resource object from a stream.
Definition: resobject.cc:146
void make_writeable()
Make object writeable, call before any change.
Definition: resobject.cc:273
bool save(std::ostream &file)
Save a resource object to a stream.
Definition: resobject.cc:216
void replace_component(int offset, int old_size, const ResImpl *comp_impl)
Replace a component.
Definition: resobject.cc:411
ResObject & operator=(const ResObject &other)
Assignment.
Definition: resobject.cc:109
bool show_on_create() const
Get show on create flags.
Definition: resobject.h:115
const ResObjectHeader * object_header() const
Return a pointer to the header information for this object.
Definition: resobject.h:74
int object_version() const
Return version number * 100.
Definition: resobject.h:93
Load and give read only access to a resource file.
Definition: resfile.h:43
ResObjectHeader * object_header()
Return a pointer to the header information for this object.
Definition: resobject.h:142