Skip to content

AKArien0/PW-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

PW-lib

Pure Widgets

A library made to simply bring c++ OOP with any display.

Inspired by GTK, this library proposes a fundamental concept of Widget, from which are derived other classes. It is a Work in Progress, made originally for arduino projects. It provides a skeletton structure that can be used on any display.

##Widgets

  • If a widget's role is not to actually display something, their implementation is complete. They usually handle other widgets or theoratical concepts.
  • Displayers are incomplete : they lack an implementation for their .display() and .hide() method. These implementations are to be added by you for the Displayer widgets you want to use, in order to be used with any specific library of your choice. To define a .display() and .hide(), define the method as you normally would, for example :
namespace PW{
  void Image::display(){
    // call your displaying function
  }

  void PW::display(){
    //call your hiding function
  }

}

void PW::TextBox::display(){
  // of course, this also works
}

Further documentation in the github wiki.

About

Pure Widgets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages