ShishGL  1.0
A simple modular cross-platform graphics library
Sh::GradeCanvas Class Reference

#include <GradeCanvas.hpp>

Inheritance diagram for Sh::GradeCanvas:
Collaboration diagram for Sh::GradeCanvas:

Public Member Functions

 GradeCanvas (const Frame &frame)
 
- Public Member Functions inherited from Sh::UICanvas
 UICanvas (const Frame &frame, const Color &color=Color::NONE)
 
void onRender () override
 
 ~UICanvas () override
 
- Public Member Functions inherited from Sh::UIWindow
template<int SomeState, typename... Args>
UIWindowapplyStyle (Args &&... args)
 
template<typename SomeShape , typename... Args>
UIWindowapplyShape (Args &&... args)
 
template<typename SomeBehavior , typename... Args>
UIWindowsetBehavior (Args &&... args)
 
int getState () const
 
void setState (int new_state)
 
bool contains (const Vector2< double > &point) const override
 
void translate (const Vector2< double > &delta) override
 
void setPos (const Vector2< double > &pos) override
 
void setParent (Window *new_parent) override
 
BehaviorgetBehavior () const
 
 ~UIWindow () override
 
- Public Member Functions inherited from Sh::Window
 Window ()=delete
 
 ~Window () override=default
 
 Window (const Window &other)=delete
 
Windowoperator= (const Window &other)=delete
 
const WindowgetParent () const
 
template<typename SomeWindow , typename... Args>
SomeWindow * attach (Args &&... args)
 
template<typename SomeWindow >
SomeWindow * attach (SomeWindow *child)
 
Windowdetach (Window *child)
 
const FramegetFrame () const
 
const Vector2< double > & getSize () const
 
const Vector2< double > & getPos () const
 
const std::list< Window * > & getChildren ()
 
- Public Member Functions inherited from Sh::Listener
virtual ~Listener ()
 

Additional Inherited Members

- Public Types inherited from Sh::UIWindow
enum  States {
  NORMAL, HOVER, CLICK, HOLD,
  SELECTED
}
 
- Protected Types inherited from Sh::UIWindow
using StyleMap = std::unordered_map< int, StylePack >
 
- Protected Member Functions inherited from Sh::UIWindow
 UIWindow (const Frame &viewport)
 
void onRender () override
 
StyleMapstyles ()
 
const Shape2Dshape () const
 
void notifyBehavior ()
 
- Protected Member Functions inherited from Sh::Window
 Window (const Frame &frame)
 
- Protected Attributes inherited from Sh::UICanvas
Image canvas
 

Constructor & Destructor Documentation

◆ GradeCanvas()

Sh::GradeCanvas::GradeCanvas ( const Frame frame)
inlineexplicit

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