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

Controls are Views which capture and respond to events. More...

#include <Objectively/Array.h>
#include <ObjectivelyMVC/Text.h>

Go to the source code of this file.

Data Structures

struct  Control
 Controls are Views which capture and respond to events. More...
 

Enumerations

enum  ControlBevel { ControlBevelNone , ControlBevelInset , ControlBevelOutset }
 Control bevel styles, for drawing depressed or raised bevels. More...
 
enum  ControlSelection { ControlSelectionNone , ControlSelectionSingle , ControlSelectionMultiple }
 Control selection styles, for Controls that support user selection. More...
 
enum  ControlState {
  ControlStateDefault = 0x0 , ControlStateHighlighted = 0x1 , ControlStateSelected = 0x2 , ControlStateFocused = 0x4 ,
  ControlStateDisabled = 0x10
}
 Control states, which are bit-masked. More...
 

Functions

OBJECTIVELYMVC_EXPORT Class * _Control (void)
 

Variables

OBJECTIVELYMVC_EXPORT const EnumName ControlBevelNames []
 
OBJECTIVELYMVC_EXPORT const EnumName ControlSelectionNames []
 
OBJECTIVELYMVC_EXPORT const EnumName ControlStateNames []
 

Detailed Description

Controls are Views which capture and respond to events.

Definition in file Control.h.

Enumeration Type Documentation

◆ ControlBevel

Control bevel styles, for drawing depressed or raised bevels.

Enumerator
ControlBevelNone 
ControlBevelInset 
ControlBevelOutset 

Definition at line 43 of file Control.h.

43 {
ControlBevel
Control bevel styles, for drawing depressed or raised bevels.
Definition Control.h:43
@ ControlBevelNone
Definition Control.h:44
@ ControlBevelInset
Definition Control.h:45
@ ControlBevelOutset
Definition Control.h:46

◆ ControlSelection

Control selection styles, for Controls that support user selection.

Enumerator
ControlSelectionNone 
ControlSelectionSingle 
ControlSelectionMultiple 

Definition at line 54 of file Control.h.

54 {
ControlSelection
Control selection styles, for Controls that support user selection.
Definition Control.h:54
@ ControlSelectionMultiple
Definition Control.h:57
@ ControlSelectionSingle
Definition Control.h:56
@ ControlSelectionNone
Definition Control.h:55

◆ ControlState

Control states, which are bit-masked.

Enumerator
ControlStateDefault 
ControlStateHighlighted 
ControlStateSelected 
ControlStateFocused 
ControlStateDisabled 

Definition at line 65 of file Control.h.

65 {
ControlState
Control states, which are bit-masked.
Definition Control.h:65
@ ControlStateDefault
Definition Control.h:66
@ ControlStateFocused
Definition Control.h:69
@ ControlStateHighlighted
Definition Control.h:67
@ ControlStateDisabled
Definition Control.h:70
@ ControlStateSelected
Definition Control.h:68

Function Documentation

◆ _Control()

OBJECTIVELYMVC_EXPORT Class * _Control ( void  )

Definition at line 391 of file Control.c.

391 {
392 static Class *clazz;
393 static Once once;
394
395 do_once(&once, {
396 clazz = _initialize(&(const ClassDef) {
397 .name = "Control",
398 .superclass = _View(),
399 .instanceSize = sizeof(Control),
400 .interfaceOffset = offsetof(Control, interface),
401 .interfaceSize = sizeof(ControlInterface),
403 });
404 });
405
406 return clazz;
407}
static void initialize(Class *clazz)
Definition Control.c:363
Class * _View(void)
Definition View.c:2067
Controls are Views which capture and respond to events.
Definition Control.h:83

Variable Documentation

◆ ControlBevelNames

OBJECTIVELYMVC_EXPORT const EnumName ControlBevelNames[]

Definition at line 49 of file Control.h.

◆ ControlSelectionNames

OBJECTIVELYMVC_EXPORT const EnumName ControlSelectionNames[]

Definition at line 60 of file Control.h.

◆ ControlStateNames

OBJECTIVELYMVC_EXPORT const EnumName ControlStateNames[]

Definition at line 73 of file Control.h.