TouchCPLib  1.0.0
A touch-enabled GUI interface based on SDL and libTS. It provides a simple desktop-free UI for your embedded Raspberry projects.
Window Class Reference

The main window object. More...

#include <Window.h>

Public Member Functions

 Window (int width, int height, SDL_Color color)
 Create a window object. More...
 
 ~Window ()
 
SDL_Window * getWindowObject () const
 Get the native SDL window object. More...
 
SDL_Surface * getSurface () const
 Get the native SDL surface. More...
 
SDL_Renderer * getRenderer () const
 Get the native SDL renderer. More...
 
void update ()
 

Detailed Description

The main window object.

Constructor & Destructor Documentation

◆ Window()

Window::Window ( int  width,
int  height,
SDL_Color  color 
)

Create a window object.

Parameters
widthThe window width
heightThe window height
colorThe window color

◆ ~Window()

Window::~Window ( )

Member Function Documentation

◆ getRenderer()

SDL_Renderer * Window::getRenderer ( ) const

Get the native SDL renderer.

Returns
The SDL renderer

◆ getSurface()

SDL_Surface * Window::getSurface ( ) const

Get the native SDL surface.

Returns
The native SDL surface

◆ getWindowObject()

SDL_Window * Window::getWindowObject ( ) const

Get the native SDL window object.

Returns
The native SDL window

◆ update()

void Window::update ( )

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