mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 10:16:50 +02:00
Port from git
This commit is contained in:
35
Source/Graphics/ComponentItemBinding.cpp
Normal file
35
Source/Graphics/ComponentItemBinding.cpp
Normal file
@@ -0,0 +1,35 @@
|
||||
/* This file is subject to the terms and conditions defined in
|
||||
* file 'LICENSE.txt', which is part of this source code package.
|
||||
*/
|
||||
#include "ComponentItemBinding.h"
|
||||
|
||||
ComponentItemBinding::ComponentItemBinding( Component *c, Item *item)
|
||||
: CollectionComponent(c)
|
||||
, CollectionItem(item)
|
||||
{
|
||||
}
|
||||
|
||||
ComponentItemBinding::ComponentItemBinding(Item *item)
|
||||
: CollectionComponent(NULL)
|
||||
, CollectionItem(item)
|
||||
{
|
||||
}
|
||||
|
||||
ComponentItemBinding::~ComponentItemBinding()
|
||||
{
|
||||
}
|
||||
|
||||
Item* ComponentItemBinding::GetCollectionItem() const
|
||||
{
|
||||
return CollectionItem;
|
||||
}
|
||||
|
||||
void ComponentItemBinding::SetComponent(Component *c)
|
||||
{
|
||||
CollectionComponent = c;
|
||||
}
|
||||
|
||||
Component* ComponentItemBinding::GetComponent() const
|
||||
{
|
||||
return CollectionComponent;
|
||||
}
|
||||
Reference in New Issue
Block a user