This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
MyGameFramework/lib/gwen/controls/gwen_treecontrol.h
Gered c5cdddbeaa initial commit
current versions of all of my basic framework sources, build configurations/scripts, and supporting assets
2013-01-31 12:53:05 -05:00

50 lines
966 B
C++

/*
GWEN
Copyright (c) 2010 Facepunch Studios
See license in Gwen.h
*/
#pragma once
#ifndef GWEN_CONTROLS_TREECONTROL_H
#define GWEN_CONTROLS_TREECONTROL_H
#include "gwen_base.h"
#include "gwen_treenode.h"
namespace Gwen
{
namespace Controls
{
class GWEN_EXPORT TreeControl : public TreeNode
{
public:
GWEN_CONTROL( TreeControl, TreeNode );
virtual void Render( Skin::Base* skin );
virtual void OnChildBoundsChanged( Gwen::Rect oldChildBounds, Base* pChild );
ScrollControl* Scroller() { return m_ScrollControl; }
virtual void Clear();
virtual void Layout( Skin::Base* skin );
virtual void PostLayout( Skin::Base* skin );
virtual void AllowMultiSelect( bool b ){ m_bAllowMultipleSelection = b; }
virtual void OnNodeAdded( TreeNode* pNode );
private:
void OnNodeSelection( Controls::Base* control );
ScrollControl* m_ScrollControl;
bool m_bAllowMultipleSelection;
};
}
}
#endif