CComponentsForm: add functions to get first and last item

Origin commit data
------------------
Branch: ni/coolstream
Commit: c2bc275d5d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-24 (Tue, 24 Jun 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2014-06-24 22:41:43 +02:00
parent f5182499b3
commit 55b76b69ba

View File

@@ -78,6 +78,10 @@ class CComponentsForm : public CComponentsItem
virtual bool empty(){return v_cc_items.empty();}; virtual bool empty(){return v_cc_items.empty();};
///return size (count) of available items ///return size (count) of available items
virtual size_t size(){return v_cc_items.size();}; virtual size_t size(){return v_cc_items.size();};
///return reference to first item
virtual CComponentsItem* front(){return v_cc_items.front();};
///return reference to last item
virtual CComponentsItem* back(){return v_cc_items.back();};
virtual void setAppendOffset(const int &x_offset, const int& y_offset){append_x_offset = x_offset; append_y_offset = y_offset;}; virtual void setAppendOffset(const int &x_offset, const int& y_offset){append_x_offset = x_offset; append_y_offset = y_offset;};
}; };