Oyranos  git-devel
Oyranos is a full featured Color Management System
Public Types | Public Member Functions | Data Fields
oyCMMui_s Struct Reference

The CMM API UI part. More...

#include <oyCMMui_s.h>

Inheritance diagram for oyCMMui_s:
Inheritance graph
Collaboration diagram for oyCMMui_s:
Collaboration graph

Public Types

typedef int(* oyCMMuiGet_f) (oyCMMapiFilter_s *module, oyOptions_s *options, int flags, char **ui_text, oyAlloc_f allocateFunc)
 obtain a XFORMS ui description More...
 

Public Member Functions

OYAPI oyCMMui_s *OYEXPORT oyCMMui_New (oyObject_s object)
 allocate a new CMMui object More...
 
OYAPI oyCMMui_s *OYEXPORT oyCMMui_Copy (oyCMMui_s *cmmui, oyObject_s object)
 Copy or Reference a CMMui object. More...
 
OYAPI int OYEXPORT oyCMMui_Release (oyCMMui_s **cmmui)
 release and possibly deallocate a oyCMMui_s object More...
 
OYAPI oyCMMui_s *OYEXPORT oyCMMui_Create (const char *category, oyCMMGetText_f getText, const char **texts, oyObject_s object)
 Create a oyCMMui_s object. More...
 
OYAPI void OYEXPORT oyCMMui_SetUiOptions (oyCMMui_s *ui, const char *options, oyCMMuiGet_f oyCMMuiGet)
 Set UI for possible options. More...
 
oyCMMGetText_f oyCMMui_GetTextF (oyCMMui_s *ui)
 Get the GetText function. More...
 
const char ** oyCMMui_GetTexts (oyCMMui_s *ui)
 Get texts for GetTextF. More...
 
oyCMMapiFilter_soyCMMui_GetParent (oyCMMui_s *ui)
 Get the parent structure. More...
 
void oyCMMui_Release__Members (oyCMMui_s_ *cmmui)
 Custom CMMui destructor. More...
 
int oyCMMui_Init__Members (oyCMMui_s_ *cmmui)
 Custom CMMui constructor. More...
 
int oyCMMui_Copy__Members (oyCMMui_s_ *dst, oyCMMui_s_ *src)
 Custom CMMui copy constructor. More...
 
- Public Member Functions inherited from oyStruct_s
const char * oyStruct_GetTextFromModule (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags)
 get object infos from a module More...
 
const char * oyStruct_GetText (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags)
 Get a text dump. More...
 
int oyStruct_RegisterStaticMessageFunc (int type, oyStruct_RegisterStaticMessageFunc_f msg, oyStruct_RegisterStaticFreeFunc_f free_func)
 register a function for verbosity More...
 
const char * oyStruct_GetInfo (oyPointer context_object, oyNAME_e type, int flags)
 get a additional string from a object More...
 
const char * oyStructTypeToText (oyOBJECT_e type)
 Objects type to small string. More...
 

Data Fields

const oyOBJECT_e type_
 Type of object. More...
 
oyStruct_Copy_f copy
 Copy function. More...
 
oyStruct_Release_f release
 Release function. More...
 
oyObject_s oy_
 Oyranos internal object. More...
 
- Data Fields inherited from oyStruct_s
const oyOBJECT_e type_
 Type of object. More...
 
oyStruct_Copy_f copy
 Copy function. More...
 
oyStruct_Release_f release
 Release function. More...
 
oyObject_s oy_
 Oyranos internal object. More...
 

Detailed Description

The CMM API UI part.

Examples:
oyranos_cmm_oJPG.c.

Member Function Documentation

◆ oyCMMui_Copy()

OYAPI oyCMMui_s *OYEXPORT oyCMMui_Copy ( oyCMMui_s cmmui,
oyObject_s  object 
)

Copy or Reference a CMMui object.

Function oyCMMui_Copy

The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.

Parameters
[in]cmmuiCMMui struct object
objectNULL - means reference, the optional object triggers a real copy

◆ oyCMMui_Copy__Members()

int oyCMMui_Copy__Members ( oyCMMui_s_ *  dst,
oyCMMui_s_ *  src 
)

Custom CMMui copy constructor.

Function oyCMMui_Copy__Members

◆ oyCMMui_Create()

OYAPI oyCMMui_s *OYEXPORT oyCMMui_Create ( const char *  category,
oyCMMGetText_f  getText,
const char **  texts,
oyObject_s  object 
)

Create a oyCMMui_s object.

Function oyCMMui_Create

Parameters
categorymenu structure
getTexttranslated UI texts
textszero terminated list of string classes for getText, e.g. {"name","category","help",0}
  • The "name" texts shall include information about the module.
    The oyNAME_NICK for the several oyCMMui_s::getText() texts is typical not translated. For "name" the oyNAME_NICK should be the module name.
  • The "category" gives in oyNAME_NAME a translated version of oyCMMui_s::category.
  • The "help" texts should provide general infromations about the module.
    For other texts like "help" and "category" oyNAME_NICK makes no sense.
objectoptional object
Returns
the struct
See also
oyCMMui_GetTextF() oyCMMui_GetTexts()
Version
Oyranos: 0.9.5
Date
2013/06/11
Since
2013/06/11 (Oyranos: 0.9.5)
Examples:
oyranos_cmm_oJPG.c.

◆ oyCMMui_GetParent()

oyCMMapiFilter_s * oyCMMui_GetParent ( oyCMMui_s ui)

Get the parent structure.

Parameters
[in]uiui object
Returns
the parent object
Version
Oyranos: 0.9.5
Date
2014/01/07
Since
2014/01/07 (Oyranos: 0.9.5)

◆ oyCMMui_GetTextF()

oyCMMGetText_f oyCMMui_GetTextF ( oyCMMui_s ui)

Get the GetText function.

Function oyCMMui_GetTextF

Parameters
[in]uiui object
Returns
the oyCMMGetText_f function
Version
Oyranos: 0.5.0
Date
2012/09/15
Since
2012/09/15 (Oyranos: 0.5.0)

◆ oyCMMui_GetTexts()

const char ** oyCMMui_GetTexts ( oyCMMui_s ui)

Get texts for GetTextF.

Function oyCMMui_GetTexts

Parameters
[in]uiui object
Returns
the zero terminated string list

zero terminated categories for getText, e.g. {"name","category","help",0}

The "name" texts shall include information about the module. The "category" gives in oyNAME_NAME a translated version of oyCMMui_s::category. The "help" texts should provide general infromations about the module.

The oyNAME_NICK for the several oyCMMui_s::getText() texts is typical not translated. For "name" the oyNAME_NICK should be the module name. For other texts like "help" and "category" oyNAME_NICK makes no sense.

Version
Oyranos: 0.5.0
Date
2012/09/15
Since
2012/09/15 (Oyranos: 0.5.0)

◆ oyCMMui_Init__Members()

int oyCMMui_Init__Members ( oyCMMui_s_ *  cmmui)

Custom CMMui constructor.

Function oyCMMui_Init__Members

◆ oyCMMui_New()

OYAPI oyCMMui_s *OYEXPORT oyCMMui_New ( oyObject_s  object)

allocate a new CMMui object

Function oyCMMui_New

◆ oyCMMui_Release()

OYAPI int OYEXPORT oyCMMui_Release ( oyCMMui_s **  cmmui)

release and possibly deallocate a oyCMMui_s object

Function oyCMMui_Release

Parameters
[in,out]cmmuiCMMui struct object

◆ oyCMMui_Release__Members()

void oyCMMui_Release__Members ( oyCMMui_s_ *  cmmui)

Custom CMMui destructor.

Function oyCMMui_Release__Members

◆ oyCMMui_SetUiOptions()

OYAPI void OYEXPORT oyCMMui_SetUiOptions ( oyCMMui_s ui,
const char *  options,
oyCMMuiGet_f  oyCMMuiGet 
)

Set UI for possible options.

Function oyCMMui_SetUiOptions

Parameters
[in]uiui object
optionsthe default options as oFORMS model compatible XML
oyCMMuiGetthe oFORMS UI for filter options
Version
Oyranos: 0.9.5
Date
2013/06/13
Since
2013/06/13 (Oyranos: 0.9.5)
Examples:
oyranos_cmm_oJPG.c.

Field Documentation

◆ copy

oyStruct_Copy_f oyCMMui_s::copy

Copy function.

◆ oy_

oyObject_s oyCMMui_s::oy_

Oyranos internal object.

Features name and hash. Do not change during object life time.

◆ release

oyStruct_Release_f oyCMMui_s::release

Release function.

◆ type_

const oyOBJECT_e oyCMMui_s::type_

Type of object.

The struct type tells Oyranos how to interprete hidden fields.