Chatterino
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
chatterino::LayoutCreator< T > Class Template Reference

#include <LayoutCreator.hpp>

Public Member Functions

 LayoutCreator (T *_item)
 
T * operator-> ()
 
T & operator* ()
 
T * getElement ()
 
template<typename T2 >
LayoutCreator< T2 > append (T2 *_item)
 
template<typename T2 , typename... Args>
LayoutCreator< T2 > emplace (Args &&...args)
 
template<typename Q = T, typename std::enable_if< std::is_base_of< QScrollArea, Q >::value, int >::type = 0>
LayoutCreator< QWidget > emplaceScrollAreaWidget ()
 
template<typename T2 , typename Q = T, typename std::enable_if< std::is_base_of< QWidget, Q >::value, int >::type = 0, typename std::enable_if< std::is_base_of< QLayout, T2 >::value, int >::type = 0>
LayoutCreator< T2 > setLayoutType ()
 
LayoutCreator< T > assign (T **ptr)
 
template<typename Q = T, typename std::enable_if< std::is_base_of< QLayout, Q >::value, int >::type = 0>
LayoutCreator< T > withoutMargin ()
 
LayoutCreator< T > withoutSpacing ()
 
template<typename Q = T, typename std::enable_if< std::is_base_of< QWidget, Q >::value, int >::type = 0>
LayoutCreator< T > hidden ()
 
template<typename Q = T, typename T2 , typename std::enable_if< std::is_same< QTabWidget, Q >::value, int >::type = 0>
LayoutCreator< T2 > appendTab (T2 *item, const QString &title)
 
template<typename Slot , typename Func >
LayoutCreator< T > connect (Slot slot, QObject *receiver, Func func)
 
template<typename Func >
LayoutCreator< T > onClick (QObject *receiver, Func func)
 

Constructor & Destructor Documentation

◆ LayoutCreator()

template<class T>
chatterino::LayoutCreator< T >::LayoutCreator ( T *  _item)
inline

Member Function Documentation

◆ append()

template<class T>
template<typename T2 >
LayoutCreator<T2> chatterino::LayoutCreator< T >::append ( T2 *  _item)
inline
Here is the caller graph for this function:

◆ appendTab()

template<class T>
template<typename Q = T, typename T2 , typename std::enable_if< std::is_same< QTabWidget, Q >::value, int >::type = 0>
LayoutCreator<T2> chatterino::LayoutCreator< T >::appendTab ( T2 *  item,
const QString &  title 
)
inline
Here is the caller graph for this function:

◆ assign()

template<class T>
LayoutCreator<T> chatterino::LayoutCreator< T >::assign ( T **  ptr)
inline

◆ connect()

template<class T>
template<typename Slot , typename Func >
LayoutCreator<T> chatterino::LayoutCreator< T >::connect ( Slot  slot,
QObject *  receiver,
Func  func 
)
inline
Here is the call graph for this function:

◆ emplace()

template<class T>
template<typename T2 , typename... Args>
LayoutCreator<T2> chatterino::LayoutCreator< T >::emplace ( Args &&...  args)
inline
Here is the caller graph for this function:

◆ emplaceScrollAreaWidget()

template<class T>
template<typename Q = T, typename std::enable_if< std::is_base_of< QScrollArea, Q >::value, int >::type = 0>
LayoutCreator<QWidget> chatterino::LayoutCreator< T >::emplaceScrollAreaWidget ( )
inline

◆ getElement()

template<class T>
T* chatterino::LayoutCreator< T >::getElement ( )
inline
Here is the caller graph for this function:

◆ hidden()

template<class T>
template<typename Q = T, typename std::enable_if< std::is_base_of< QWidget, Q >::value, int >::type = 0>
LayoutCreator<T> chatterino::LayoutCreator< T >::hidden ( )
inline

◆ onClick()

template<class T>
template<typename Func >
LayoutCreator<T> chatterino::LayoutCreator< T >::onClick ( QObject *  receiver,
Func  func 
)
inline
Here is the call graph for this function:

◆ operator*()

template<class T>
T& chatterino::LayoutCreator< T >::operator* ( )
inline

◆ operator->()

template<class T>
T* chatterino::LayoutCreator< T >::operator-> ( )
inline

◆ setLayoutType()

template<class T>
template<typename T2 , typename Q = T, typename std::enable_if< std::is_base_of< QWidget, Q >::value, int >::type = 0, typename std::enable_if< std::is_base_of< QLayout, T2 >::value, int >::type = 0>
LayoutCreator<T2> chatterino::LayoutCreator< T >::setLayoutType ( )
inline
Here is the caller graph for this function:

◆ withoutMargin()

template<class T>
template<typename Q = T, typename std::enable_if< std::is_base_of< QLayout, Q >::value, int >::type = 0>
LayoutCreator<T> chatterino::LayoutCreator< T >::withoutMargin ( )
inline
Here is the caller graph for this function:

◆ withoutSpacing()

template<class T>
LayoutCreator<T> chatterino::LayoutCreator< T >::withoutSpacing ( )
inline

The documentation for this class was generated from the following file: