mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CComponentsForm: add members to get count of items
Origin commit data
------------------
Commit: 2191fded38
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-08 (Wed, 08 Jan 2014)
This commit is contained in:
@@ -62,8 +62,14 @@ class CComponentsForm : public CComponentsItem
|
|||||||
virtual int getCCItemId(CComponentsItem* cc_Item);
|
virtual int getCCItemId(CComponentsItem* cc_Item);
|
||||||
virtual CComponentsItem* getCCItem(const uint& cc_item_id);
|
virtual CComponentsItem* getCCItem(const uint& cc_item_id);
|
||||||
virtual void paintCCItems();
|
virtual void paintCCItems();
|
||||||
|
|
||||||
///clean up and deallocate existant items from v_cc_items at once
|
///clean up and deallocate existant items from v_cc_items at once
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
|
///return true, if no items available
|
||||||
|
virtual bool empty(){return v_cc_items.empty();};
|
||||||
|
///return size (count) of available items
|
||||||
|
virtual size_t size(){return v_cc_items.size();};
|
||||||
|
|
||||||
virtual void setAppendOffset(const int &h_offset, const int& v_offset){append_h_offset = h_offset; append_v_offset = v_offset;};
|
virtual void setAppendOffset(const int &h_offset, const int& v_offset){append_h_offset = h_offset; append_v_offset = v_offset;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user