PumpkinBrush
Main Page
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
g
i
l
n
p
r
s
u
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Enumerations
Enumerator
Files
File List
File Members
All
c
d
i
l
m
n
p
r
s
u
w
Functions
d
i
m
n
p
r
u
Variables
Typedefs
Enumerations
n
s
Enumerator
l
m
n
s
Macros
n
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
include
Gui.hpp
Go to the documentation of this file.
1
7
#ifndef GUI_HPP
8
#define GUI_HPP
9
10
#include <SFML/Graphics.hpp>
11
#include <SFML/Network.hpp>
12
#include "
App.hpp
"
13
14
class
App
;
15
16
class
Gui
{
17
private
:
18
int
m_brushColor;
19
int
m_brushSize;
20
int
m_brushType;
21
int
m_backColor;
22
23
sf::RenderWindow* m_guiWindow;
24
25
void
changeBrushColor(
App
& app);
26
void
changeBrushSize(
App
& app);
27
void
changeBrushType(
App
& app);
28
void
undoRedoOption(
App
& app);
29
void
clearCanvas(
App
&app);
30
void
changeBackColor(
App
& app);
31
void
networkBackground(sf::Uint32 color,
App
& app);
32
sf::Packet packetInGui;
33
34
public
:
35
enum
colorEnum
{
RED
,
BLACK
,
GREEN
,
BLUE
,
WHITE
,
YELLOW
,
MAGENTA
,
CYAN
};
36
enum
brushSizeEnum
{
SMALL
,
MEDIUM
,
LARGE
};
37
enum
brushTypeEnum
{
BRUSH
,
PEN
};
38
39
Gui
();
40
~Gui
();
41
void
initGui
();
42
43
sf::RenderWindow&
getWindow
();
44
int
getBrushColor
();
45
int
getBrushSize
();
46
int
getBrushType
();
47
int
getBackColor
();
48
49
void
drawGUI
(
App
&);
50
struct
nk_context
*
ctx
;
51
void
nk_input_begin_wrapper
();
52
void
nk_input_end_wrapper
();
53
void
nk_shutdown_wrapper
();
54
void
nk_handle_event_wrapper
(sf::Event event);
55
void
nk_sfml_render_wrapper
();
56
};
57
58
#endif
Gui::brushTypeEnum
brushTypeEnum
Definition:
Gui.hpp:37
Gui::BLUE
@ BLUE
Definition:
Gui.hpp:35
Gui::nk_handle_event_wrapper
void nk_handle_event_wrapper(sf::Event event)
Wrapper function for nk_sfml_handle_event.
Definition:
Gui.cpp:369
Gui::BRUSH
@ BRUSH
Definition:
Gui.hpp:37
Gui::getBrushSize
int getBrushSize()
Get the brush size.
Definition:
Gui.cpp:349
Gui
Definition:
Gui.hpp:16
Gui::drawGUI
void drawGUI(App &)
Draw the gui window.
Definition:
Gui.cpp:92
Gui::YELLOW
@ YELLOW
Definition:
Gui.hpp:35
Gui::getBrushType
int getBrushType()
Get the brush type.
Definition:
Gui.cpp:355
Gui::ctx
struct nk_context * ctx
Definition:
Gui.hpp:50
Gui::MEDIUM
@ MEDIUM
Definition:
Gui.hpp:36
Gui::colorEnum
colorEnum
Definition:
Gui.hpp:35
Gui::getBackColor
int getBackColor()
Get the background color.
Definition:
Gui.cpp:362
Gui::LARGE
@ LARGE
Definition:
Gui.hpp:36
Gui::getBrushColor
int getBrushColor()
Get the brush color.
Definition:
Gui.cpp:342
Gui::~Gui
~Gui()
Destructor of Gui.
Definition:
Gui.cpp:36
Gui::BLACK
@ BLACK
Definition:
Gui.hpp:35
Gui::WHITE
@ WHITE
Definition:
Gui.hpp:35
Gui::PEN
@ PEN
Definition:
Gui.hpp:37
nk_context
Definition:
nuklear.h:5569
App.hpp
App class interface.
Gui::nk_shutdown_wrapper
void nk_shutdown_wrapper()
Wrapper function for nk_sfml_shutdown.
Definition:
Gui.cpp:391
Gui::GREEN
@ GREEN
Definition:
Gui.hpp:35
Gui::nk_input_begin_wrapper
void nk_input_begin_wrapper()
Wrapper function for nk_input_begin.
Definition:
Gui.cpp:384
Gui::nk_input_end_wrapper
void nk_input_end_wrapper()
Wrapper function for nk_input_end.
Definition:
Gui.cpp:377
Gui::getWindow
sf::RenderWindow & getWindow()
Get the gui window.
Definition:
Gui.cpp:335
Gui::MAGENTA
@ MAGENTA
Definition:
Gui.hpp:35
Gui::Gui
Gui()
Constructor of Gui.
Definition:
Gui.cpp:29
Gui::RED
@ RED
Definition:
Gui.hpp:35
App
Definition:
App.hpp:37
Gui::initGui
void initGui()
Initialise the gui window.
Definition:
Gui.cpp:43
Gui::nk_sfml_render_wrapper
void nk_sfml_render_wrapper()
Wrapper function for nk_sfml_render.
Definition:
Gui.cpp:398
Gui::SMALL
@ SMALL
Definition:
Gui.hpp:36
Gui::brushSizeEnum
brushSizeEnum
Definition:
Gui.hpp:36
Gui::CYAN
@ CYAN
Definition:
Gui.hpp:35
Generated by
1.8.17