MLX42 1.0
MLX42
Loading...
Searching...
No Matches
Window Class Reference

#include <WindowFixture.hpp>

Inheritance diagram for Window:
Inheritance graph
Collaboration diagram for Window:
Collaboration graph

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

mlx_tmlx = nullptr
 

Static Protected Attributes

static constexpr const charname = "MLX42"
 
static const int32_t height = 400
 
static const int32_t width = 400
 

Detailed Description

Definition at line 11 of file WindowFixture.hpp.

Member Function Documentation

◆ SetUp()

void Window::SetUp ( )
inlineoverrideprotected

Definition at line 20 of file WindowFixture.hpp.

21 {
22 // reset error code as it is shared between tests
26 mlx = mlx_init(width, height, name, false);
27 ASSERT_NE(mlx, nullptr);
29 }
mlx_t * mlx_init(int32_t width, int32_t height, const char *title, bool resize)
Definition mlx_init.c:164
@ MLX_HEADLESS
Definition MLX42.h:403
void mlx_set_setting(mlx_settings_t setting, int32_t value)
Definition mlx_init.c:213
mlx_errno
Definition MLX42.h:371
@ MLX_SUCCESS
Definition MLX42.h:372
GLint GLsizei GLsizei height
Definition glad.h:1965
GLint GLsizei width
Definition glad.h:1965
GLuint const GLchar * name
Definition glad.h:3345
GLuint GLsizei GLsizei * length
Definition glad.h:3372
Definition MLX42.h:361
Here is the call graph for this function:

◆ TearDown()

void Window::TearDown ( )
inlineoverrideprotected

Definition at line 31 of file WindowFixture.hpp.

32 {
33 ASSERT_NE(mlx, nullptr);
36 }
void mlx_terminate(mlx_t *mlx)
Definition mlx_exit.c:36
Here is the call graph for this function:

Field Documentation

◆ height

const int32_t Window::height = 400
staticprotected

Definition at line 17 of file WindowFixture.hpp.

◆ mlx

mlx_t* Window::mlx = nullptr
protected

Definition at line 14 of file WindowFixture.hpp.

◆ name

constexpr const char* Window::name = "MLX42"
staticconstexprprotected

Definition at line 16 of file WindowFixture.hpp.

◆ width

const int32_t Window::width = 400
staticprotected

Definition at line 18 of file WindowFixture.hpp.


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