25 #ifndef TBX_LOCKEXTENTPOSITION_H
26 #define TBX_LOCKEXTENTPOSITION_H
48 typedef std::pair<tbx::Gadget, unsigned int> Item;
72 bottom_to_bottom = 32,
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
virtual ~LockExtentPosition()
Destructor free resources and remove window listener used.
Definition: lockextentposition.cc:47
The Window object represents a toolbox window.
Definition: window.h:70
void extent_changed()
Method to check if window extent has changed and move the gadgets if necessary.
Definition: lockextentposition.cc:202
LockFlags
Lock states, shifted for each edge.
Definition: lockextentposition.h:66
Class to represent a two dimensional bounding box.
Definition: bbox.h:38
void remove_gadgets(tbx::ComponentId from, tbx::ComponentId to)
Remove a range of gadgets.
Definition: lockextentposition.cc:181
void add_gadgets(tbx::ComponentId from, tbx::ComponentId to, unsigned int lock_flags)
Add range of gadgets with the same lock flags.
Definition: lockextentposition.cc:114
tbx::Window & window()
Return window gadgets are locked to.
Definition: lockextentposition.h:59
void clear()
Clear list of gadget locked in place.
Definition: lockextentposition.cc:191
This is the base class for all Gadgets.
Definition: gadget.h:49
void add_gadget(tbx::Gadget gadget, unsigned int lock_flags)
Add a gadget to the list to be locked.
Definition: lockextentposition.cc:78
Class to lock the position of gadgets relative to the work area of the window they are in.
Definition: lockextentposition.h:44
void remove_gadget(tbx::Gadget gadget)
Remove gadget from list.
Definition: lockextentposition.cc:140