Files
EzUI/demo/Adminstor/ThirdParty/EzUI2/include/EzUI/UISelector.h
2026-01-28 15:00:12 +08:00

28 lines
887 B
C++

#pragma once
#include "UILoader.h"
namespace ezui {
//控件选择器(多功能选择器暂时未完善)
class UI_EXPORT UISelector
{
private:
Control* m_ctl = NULL;
Control* m_notCtl = NULL;
std::vector<Control*> m_ctls;
UISelector& NextName(const UIString& key) { return *this; };
UISelector& NextId(const UIString& key) { return *this; };
public:
UISelector(const std::vector<Control*>& controls);
UISelector(const std::list<Control*>& controls);
UISelector(Control* control);
UISelector(Control* control, const UIString& mathStr);
virtual ~UISelector();
UISelector& Css(const UIString& styleStr);
UISelector& CssHover(const UIString& styleStr);
UISelector& CssActive(const UIString& styleStr);
UISelector& Attr(const UIString& key, const UIString& value);
UISelector& Refresh();
UISelector& Not(Control* fiterCtl);
};
#define $ UISelector
};