Foenix A2650 OS/f Library
 
Loading...
Searching...
No Matches
control_template.h File Reference
#include "control.h"
#include <stdbool.h>
#include <mcp/syscalls.h>
#include "a2560k.h"

Go to the source code of this file.

Data Structures

struct  ControlTemplate
 A structure that can be used to instantiate a ControlTemplate object instance in a window The ControlTemplate contains just those fields that are not specific to a particular window, and the control's placement within that window A typical use case would be for creating controls that will be displayed more than once on the same window, and vary only in location. More...
 

Functions

ControlTemplateControlTemplate_New (void)
 Creates a new ControlTemplate object, allocating space from the heap. More...
 
bool ControlTemplate_Destroy (ControlTemplate **the_template)
 Frees all allocated memory associated with the passed object, and the object itself. More...
 

Function Documentation

◆ ControlTemplate_Destroy()

bool ControlTemplate_Destroy ( ControlTemplate **  the_template)

Frees all allocated memory associated with the passed object, and the object itself.

Parameters
the_template– pointer to the pointer for the ControlTemplate object to be destroyed
Returns
Returns false if the pointer to the passed ControlTemplate was NULL

◆ ControlTemplate_New()

ControlTemplate * ControlTemplate_New ( void  )

Creates a new ControlTemplate object, allocating space from the heap.

Returns
Returns a new ControlTemplate object. Returns NULL on any error condition.