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