ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
Loading...
Searching...
No Matches
Warning.h File Reference

Warnings are accumulated on Views so that they may be reported by the DebugViewController. More...

#include <Objectively/String.h>
#include <ObjectivelyMVC/Types.h>

Go to the source code of this file.

Data Structures

struct  Warning
 The Warning type. More...
 

Enumerations

enum  WarningType { WarningTypeStyle = 1 , WarningTypeLayout }
 Warning types. More...
 

Functions

OBJECTIVELYMVC_EXPORT Class * _Warning (void)
 

Detailed Description

Warnings are accumulated on Views so that they may be reported by the DebugViewController.

Definition in file Warning.h.

Enumeration Type Documentation

◆ WarningType

Warning types.

Enumerator
WarningTypeStyle 
WarningTypeLayout 

Definition at line 33 of file Warning.h.

33 {
WarningType
Warning types.
Definition Warning.h:33
@ WarningTypeStyle
Definition Warning.h:34
@ WarningTypeLayout
Definition Warning.h:35

Function Documentation

◆ _Warning()

OBJECTIVELYMVC_EXPORT Class * _Warning ( void  )

Definition at line 97 of file Warning.c.

97 {
98 static Class *clazz;
99 static Once once;
100
101 do_once(&once, {
102 clazz = _initialize(&(const ClassDef) {
103 .name = "Warning",
104 .superclass = _Object(),
105 .instanceSize = sizeof(Warning),
106 .interfaceOffset = offsetof(Warning, interface),
107 .interfaceSize = sizeof(WarningInterface),
109 });
110 });
111
112 return clazz;
113}
static void initialize(Class *clazz)
Definition Warning.c:85
The Warning type.
Definition Warning.h:50