Skip to content
Robert Carneiro edited this page Jun 26, 2023 · 3 revisions

Graphics++

Welcome to the gfxplusplus wiki!

Graphics++ (gfxpp) is a C++ GUI library. gfxpp is designed to work in a multi-threaded environment using the ShmeaDB/GNet framework. gfxpp contains the ability to print and type text. gfxpp also has fast real time graphing and is able to output various types of Graphs.

Whats Working

GItems

GItem is the base layer abstraction that all over are GUI related objects inherit from. GItem is made up of "Mini Components". Mini Components are described in a later section below.

Examples that use GItem:

  • RUComponent
  • GLayout
  • GPanel

Set Background to Image Component using Image class

shmea::GPointer<shmea::Image> newImage(new shmea::Image());
newImage->LoadPNG("resources/ru.png");

// Load button
// RUImageComponent* imgTest = new RUImageComponent("resources/ru.png");
RUImageComponent* imgTest = new RUImageComponent();
imgTest->setWidth(400);
imgTest->setHeight(400);
imgTest->setBGImage(newImage);
graphsLayout->addSubItem(imgTest);

Panels

Every GUI panel must inherit from GPanel.

  • Basic class example with a form

-GuiCommanders Explanation and Example

Layouts

GLinearLayout

You can add GItems to this layout to stack them vertically or horizontally.

Code Example Here

GRelativeLayout

Currently needs to be developed.

Mini Components

  • RUBackgroundComponent
  • RUBorderComponent
  • RUKeyDown
  • RUKeyUp
  • RULoseFocus
  • RUMouseDown
  • RUMouseMotion
  • RUMouseUp
  • RUMouseWheel

RUText

RUGraph

Clone this wiki locally