10#ifndef CONTROL_TEMPLATE_H_
11#define CONTROL_TEMPLATE_H_
45#include <mcp/syscalls.h>
control_type
Definition: control.h:83
ControlTemplate * ControlTemplate_New(void)
Creates a new ControlTemplate object, allocating space from the heap.
Definition: control_template.c:98
bool ControlTemplate_Destroy(ControlTemplate **the_template)
Frees all allocated memory associated with the passed object, and the object itself.
Definition: control_template.c:123
A structure that can be used to instantiate a ControlTemplate object instance in a window The Control...
Definition: control_template.h:69
int16_t min_
height of the control
Definition: control_template.h:77
int16_t avail_text_width_
optional string to draw centered horizontally and vertically on the control. Typical use case is for ...
Definition: control_template.h:81
int16_t max_
minimum allowed value
Definition: control_template.h:78
Bitmap * image_[2][2]
maximum allowed value
Definition: control_template.h:79
int16_t width_
vertical coordinate relative to the parent window's top or bottom edge. If v_align_ is V_ALIGN_CENTER...
Definition: control_template.h:75
char * caption_
4 image state bitmaps: [active yes/no][pushed down yes/no]
Definition: control_template.h:80
int16_t y_offset_
horizontal coordinate relative to the parent window's left or right edge. If h_align_ is H_ALIGN_CENT...
Definition: control_template.h:74
v_align_type v_align_
whether the control should be positioned relative to the left side, right side, or centered
Definition: control_template.h:72
int16_t height_
width of the control
Definition: control_template.h:76
h_align_type h_align_
button vs checkbox vs radio button, etc.
Definition: control_template.h:71
int16_t x_offset_
whether the control should be positioned relative to the top edge, bottom edge, or centered
Definition: control_template.h:73