Skip to content

Basic components system with included widgets made in Java with NanoVG

License

Notifications You must be signed in to change notification settings

LynithDev/nanovg-components-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NanoVG Components Library

This is a collection of components and a fully fledged component system to be used with the LWJGL 3 NanoVG library.

Components

  • Button
  • Label
  • Checkbox
  • Radio Button
  • Slider
  • Progress Bar
  • Text Field
  • Text Area
  • List
  • Color Picker

Layouts

  • Absolute
  • Stack
  • Relative

Usage

Creating a component

public class ComponentName extends Component {
    
    @Override
    public void init() {
        super.init();
        
        // Initialization code
    }
    
    @Override
    public void render(PointBounds mouseBounds) {
        super.render(mouseBounds);
        
        // Drawing code
    }
    
}

Initializing the library

public class Main {
    
    public void init() {
        // Your initialization code

        NVGManager.createContext(windowHandle);
        NVGManager.setupInput();
        NVGManager.displayScreen(new MainScreen());
    }

    public void render() {
        // Your rendering code

        NVGManager.render();
    }
    
}

Examples

See Demo Application

License

See LICENSE

About

Basic components system with included widgets made in Java with NanoVG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages