33#define _UI_EXTERN __declspec(dllexport) extern
35#define _UI_EXTERN __attribute__((visibility("default"))) extern
39#define _UI_EXTERN extern
44#define _UI_ENUM(s) typedef unsigned int s; enum
48#define uiPi 3.14159265358979323846264338327950288419716939937510582097494459
122#define uiControl(this) ((uiControl *) (this))
292#define uiWindow(this) ((uiWindow *) (this))
357 void (*f)(
uiWindow *sender,
void *senderData),
void *data);
415 void (*f)(
uiWindow *sender,
void *senderData),
void *data);
433 int (*f)(
uiWindow *sender,
void *senderData),
void *data);
448 void (*f)(
uiWindow *sender,
void *senderData),
void *data);
549#define uiButton(this) ((uiButton *) (this))
586 void (*f)(
uiButton *sender,
void *senderData),
void *data);
611#define uiBox(this) ((uiBox *) (this))
697#define uiCheckbox(this) ((uiCheckbox *) (this))
735 void (*f)(
uiCheckbox *sender,
void *senderData),
void *data);
775#define uiEntry(this) ((uiEntry *) (this))
812 void (*f)(
uiEntry *sender,
void *senderData),
void *data);
870#define uiLabel(this) ((uiLabel *) (this))
917#define uiTab(this) ((uiTab *) (this))
953 void (*f)(
uiTab *sender,
void *senderData),
void *data);
1044#define uiGroup(this) ((uiGroup *) (this))
1125#define uiSpinbox(this) ((uiSpinbox *) (this))
1160 void (*f)(
uiSpinbox *sender,
void *senderData),
void *data);
1194#define uiSlider(this) ((uiSlider *) (this))
1246 void (*f)(
uiSlider *sender,
void *senderData),
void *data);
1261 void (*f)(
uiSlider *sender,
void *senderData),
void *data);
1302#define uiProgressBar(this) ((uiProgressBar *) (this))
1345#define uiSeparator(this) ((uiSeparator *) (this))
1373#define uiCombobox(this) ((uiCombobox *) (this))
1460 void (*f)(
uiCombobox *sender,
void *senderData),
void *data);
1484#define uiEditableCombobox(this) ((uiEditableCombobox *) (this))
1558#define uiRadioButtons(this) ((uiRadioButtons *) (this))
1603 void (*f)(
uiRadioButtons *sender,
void *senderData),
void *data);
1631#define uiDateTimePicker(this) ((uiDateTimePicker *) (this))
1704#define uiMultilineEntry(this) ((uiMultilineEntry *) (this))
1800#define uiMenuItem(this) ((uiMenuItem *) (this))
1887#define uiMenu(this) ((uiMenu *) (this))
2075#define uiArea(this) ((uiArea *) (this))
2134#define uiDrawDefaultMiterLimit 10.0
2753#define uiFontButton(this) ((uiFontButton *) (this))
2779 void (*f)(
uiFontButton *sender,
void *senderData),
void *data);
2905#define uiColorButton(this) ((uiColorButton *) (this))
2944 void (*f)(
uiColorButton *sender,
void *senderData),
void *data);
2971#define uiForm(this) ((uiForm *) (this))
3087#define uiGrid(this) ((uiGrid *) (this))
3573#define uiTableModelColumnNeverEditable (-1)
3575#define uiTableModelColumnAlwaysEditable (-2)
3641#define uiTable(this) ((uiTable *) (this))
3662 int textModelColumn,
3663 int textEditableModelColumn,
3682 int imageModelColumn);
3707 int imageModelColumn,
3708 int textModelColumn,
3709 int textEditableModelColumn,
3729 int checkboxModelColumn,
3730 int checkboxEditableModelColumn);
3757 int checkboxModelColumn,
3758 int checkboxEditableModelColumn,
3759 int textModelColumn,
3760 int textEditableModelColumn,
3780 int progressModelColumn);
3804 int buttonModelColumn,
3805 int buttonClickableModelColumn);
3849 void (*f)(
uiTable *t,
int row,
void *data),
3867 void (*f)(
uiTable *t,
int row,
void *data),
3910 void (*f)(
uiTable *sender,
int column,
void *senderData),
void *data);
char * uiOpenFolder(uiWindow *parent)
Folder chooser dialog window to select a single folder.
char * uiSaveFile(uiWindow *parent)
Save file dialog window.
char * uiOpenFile(uiWindow *parent)
File chooser dialog window to select a single file.
void uiMsgBoxError(uiWindow *parent, const char *title, const char *description)
Error message box dialog window.
void uiMsgBox(uiWindow *parent, const char *title, const char *description)
Message box dialog window.
uiTableSelectionMode
Table selection modes.
Definition: ui.h:3949
uiSortIndicator
Sort indicators.
Definition: ui.h:3418
double AreaWidth
Definition: ui.h:2096
double ClipWidth
Definition: ui.h:2101
double ClipHeight
Definition: ui.h:2102
double AreaHeight
Definition: ui.h:2097
double ClipY
Definition: ui.h:2100
uiDrawContext * Context
Definition: ui.h:2093
double ClipX
Definition: ui.h:2099
void(* DragBroken)(uiAreaHandler *, uiArea *)
Definition: ui.h:2055
int(* KeyEvent)(uiAreaHandler *, uiArea *, uiAreaKeyEvent *)
Definition: ui.h:2056
void(* Draw)(uiAreaHandler *, uiArea *, uiAreaDrawParams *)
Definition: ui.h:2049
void(* MouseCrossed)(uiAreaHandler *, uiArea *, int left)
Definition: ui.h:2054
void(* MouseEvent)(uiAreaHandler *, uiArea *, uiAreaMouseEvent *)
Definition: ui.h:2051
char Key
Definition: ui.h:2882
int Up
Definition: ui.h:2888
uiExtKey ExtKey
Definition: ui.h:2883
uiModifiers Modifier
Definition: ui.h:2884
uiModifiers Modifiers
Definition: ui.h:2886
int Count
Definition: ui.h:2832
double X
Definition: ui.h:2822
double AreaHeight
Definition: ui.h:2827
int Down
Definition: ui.h:2829
uint64_t Held1To64
Definition: ui.h:2836
int Up
Definition: ui.h:2830
uiModifiers Modifiers
Definition: ui.h:2834
double Y
Definition: ui.h:2823
double AreaWidth
Definition: ui.h:2826
A boxlike container that holds a group of controls.
void uiBoxDelete(uiBox *b, int index)
Removes the control at index from the box.
uiBox * uiNewHorizontalBox(void)
Creates a new horizontal box.
void uiBoxSetPadded(uiBox *b, int padded)
Sets whether or not controls within the box are padded.
int uiBoxNumChildren(uiBox *b)
Returns the number of controls contained within the box.
void uiBoxAppend(uiBox *b, uiControl *child, int stretchy)
Appends a control to the box.
uiBox * uiNewVerticalBox(void)
Creates a new vertical box.
int uiBoxPadded(uiBox *b)
Returns whether or not controls within the box are padded.
A control with a user checkable box accompanied by a text label.
void uiCheckboxSetChecked(uiCheckbox *c, int checked)
Sets whether or not the checkbox is checked.
uiCheckbox * uiNewCheckbox(const char *text)
Creates a new checkbox.
char * uiCheckboxText(uiCheckbox *c)
Returns the checkbox label text.
int uiCheckboxChecked(uiCheckbox *c)
Returns whether or the checkbox is checked.
void uiCheckboxOnToggled(uiCheckbox *c, void(*f)(uiCheckbox *sender, void *senderData), void *data)
Registers a callback for when the checkbox is toggled by the user.
void uiCheckboxSetText(uiCheckbox *c, const char *text)
Sets the checkbox label text.
A control to select one item from a predefined list of items via a drop down menu.
void uiComboboxInsertAt(uiCombobox *c, int index, const char *text)
Inserts an item at index to the combo box.
void uiComboboxDelete(uiCombobox *c, int index)
Deletes an item at index from the combo box.
void uiComboboxClear(uiCombobox *c)
Deletes all items from the combo box.
void uiComboboxOnSelected(uiCombobox *c, void(*f)(uiCombobox *sender, void *senderData), void *data)
Registers a callback for when a combo box item is selected.
void uiComboboxAppend(uiCombobox *c, const char *text)
Appends an item to the combo box.
uiCombobox * uiNewCombobox(void)
Creates a new combo box.
void uiComboboxSetSelected(uiCombobox *c, int index)
Sets the item selected.
int uiComboboxSelected(uiCombobox *c)
Returns the index of the item selected.
int uiComboboxNumItems(uiCombobox *c)
Returns the number of items contained within the combo box.
Base class for GUI controls providing common methods.
Definition: ui.h:105
int uiControlVisible(uiControl *c)
Returns whether or not the control is visible.
void uiControlHide(uiControl *c)
Hides the control.
int(* Visible)(uiControl *)
Definition: ui.h:114
uint32_t OSSignature
Definition: ui.h:107
int(* Toplevel)(uiControl *)
Definition: ui.h:113
void(* SetParent)(uiControl *, uiControl *)
Definition: ui.h:112
int uiControlEnabledToUser(uiControl *c)
Returns whether or not the control can be interacted with by the user.
void uiControlDisable(uiControl *c)
Disables the control.
void uiControlDestroy(uiControl *c)
Dispose and free all allocated resources.
void uiControlEnable(uiControl *c)
Enables the control.
void(* Disable)(uiControl *)
Definition: ui.h:119
void(* Show)(uiControl *)
Definition: ui.h:115
void(* Destroy)(uiControl *)
Definition: ui.h:109
int uiControlEnabled(uiControl *c)
Returns whether or not the control is enabled.
uintptr_t uiControlHandle(uiControl *c)
Returns the control's OS-level handle.
void uiControlShow(uiControl *c)
Shows the control.
void uiFreeControl(uiControl *c)
Frees the memory associated with the control reference.
void uiControlVerifySetParent(uiControl *c, uiControl *parent)
Makes sure the control's parent can be set to parent.
int uiControlToplevel(uiControl *c)
Returns whether or not the control is a top level control.
void(* Hide)(uiControl *)
Definition: ui.h:116
void uiControlSetParent(uiControl *c, uiControl *parent)
Sets the control's parent.
uint32_t TypeSignature
Definition: ui.h:108
int(* Enabled)(uiControl *)
Definition: ui.h:117
uiControl * uiAllocControl(size_t n, uint32_t OSsig, uint32_t typesig, const char *typenamestr)
Allocates a uiControl.
uint32_t Signature
Definition: ui.h:106
uiControl * uiControlParent(uiControl *c)
Returns the parent control.
uintptr_t(* Handle)(uiControl *)
Definition: ui.h:110
void(* Enable)(uiControl *)
Definition: ui.h:118
A control to enter a date and/or time.
Definition: ui.h:1613
uiDateTimePicker * uiNewDateTimePicker(void)
Creates a new date picker.
void uiDateTimePickerOnChanged(uiDateTimePicker *d, void(*f)(uiDateTimePicker *sender, void *senderData), void *data)
Registers a callback for when the date time picker value is changed by the user.
void uiDateTimePickerSetTime(uiDateTimePicker *d, const struct tm *time)
Sets date and time of the data time picker.
uiDateTimePicker * uiNewTimePicker(void)
Creates a new date and time picker.
uiDateTimePicker * uiNewDatePicker(void)
Creates a new time picker.
void uiDateTimePickerTime(uiDateTimePicker *d, struct tm *time)
Returns date and time stored in the data time picker.
double R
Definition: ui.h:2180
double G
Definition: ui.h:2181
double Pos
Definition: ui.h:2179
double B
Definition: ui.h:2182
double A
Definition: ui.h:2183
double Y1
Definition: ui.h:2163
double B
Definition: ui.h:2156
size_t NumStops
Definition: ui.h:2166
double R
Definition: ui.h:2154
double Y0
Definition: ui.h:2161
double A
Definition: ui.h:2157
uiDrawBrushGradientStop * Stops
Definition: ui.h:2165
double X1
Definition: ui.h:2162
double X0
Definition: ui.h:2160
double OuterRadius
Definition: ui.h:2164
double G
Definition: ui.h:2155
uiDrawBrushType Type
Definition: ui.h:2151
double M32
Definition: ui.h:2147
double M11
Definition: ui.h:2142
double M22
Definition: ui.h:2145
double M31
Definition: ui.h:2146
double M21
Definition: ui.h:2144
double M12
Definition: ui.h:2143
size_t NumDashes
Definition: ui.h:2195
double DashPhase
Definition: ui.h:2196
double * Dashes
Definition: ui.h:2192
double Thickness
Definition: ui.h:2190
double MiterLimit
Definition: ui.h:2191
uiDrawLineJoin Join
Definition: ui.h:2188
uiDrawLineCap Cap
Definition: ui.h:2187
uiAttributedString * String
Definition: ui.h:2701
double Width
Definition: ui.h:2703
uiFontDescriptor * DefaultFont
Definition: ui.h:2702
uiDrawTextAlign Align
Definition: ui.h:2704
A control to select one item from a predefined list of items or enter ones own.
uiEditableCombobox * uiNewEditableCombobox(void)
Creates a new editable combo box.
void uiEditableComboboxOnChanged(uiEditableCombobox *c, void(*f)(uiEditableCombobox *sender, void *senderData), void *data)
Registers a callback for when an editable combo box item is selected or user text changed.
void uiEditableComboboxSetText(uiEditableCombobox *c, const char *text)
Sets the editable combo box text.
char * uiEditableComboboxText(uiEditableCombobox *c)
Returns the text of the editable combo box.
void uiEditableComboboxAppend(uiEditableCombobox *c, const char *text)
Appends an item to the editable combo box.
A control with a single line text entry field.
uiEntry * uiNewEntry(void)
Creates a new entry.
void uiEntryOnChanged(uiEntry *e, void(*f)(uiEntry *sender, void *senderData), void *data)
Registers a callback for when the user changes the entry's text.
char * uiEntryText(uiEntry *e)
Returns the entry's text.
void uiEntrySetText(uiEntry *e, const char *text)
Sets the entry's text.
uiEntry * uiNewPasswordEntry(void)
Creates a new entry suitable for sensitive inputs like passwords.
void uiEntrySetReadOnly(uiEntry *e, int readonly)
Sets whether or not the entry's text is read only.
uiEntry * uiNewSearchEntry(void)
Creates a new entry suitable for search.
int uiEntryReadOnly(uiEntry *e)
Returns whether or not the entry's text can be changed.
uiTextItalic Italic
Definition: ui.h:2664
uiTextWeight Weight
Definition: ui.h:2663
char * Family
Definition: ui.h:2661
uiTextStretch Stretch
Definition: ui.h:2665
double Size
Definition: ui.h:2662
A control container to arrange containing controls in a grid.
void uiGridSetPadded(uiGrid *g, int padded)
Sets whether or not controls within the grid are padded.
int uiGridPadded(uiGrid *g)
Returns whether or not controls within the grid are padded.
void uiGridAppend(uiGrid *g, uiControl *c, int left, int top, int xspan, int yspan, int hexpand, uiAlign halign, int vexpand, uiAlign valign)
Appends a control to the grid.
uiGrid * uiNewGrid(void)
Creates a new grid.
void uiGridInsertAt(uiGrid *g, uiControl *c, uiControl *existing, uiAt at, int xspan, int yspan, int hexpand, uiAlign halign, int vexpand, uiAlign valign)
Inserts a control positioned in relation to another control within the grid.
A control container that adds a label to the contained child control.
void uiGroupSetTitle(uiGroup *g, const char *title)
Sets the group title.
uiGroup * uiNewGroup(const char *title)
Creates a new group.
void uiGroupSetChild(uiGroup *g, uiControl *c)
Sets the group's child.
char * uiGroupTitle(uiGroup *g)
Returns the group title.
void uiGroupSetMargined(uiGroup *g, int margined)
Sets whether or not the group has a margin.
int uiGroupMargined(uiGroup *g)
Returns whether or not the group has a margin.
A container for an image to be displayed on screen.
uiImage * uiNewImage(double width, double height)
Creates a new image container.
void uiImageAppend(uiImage *i, void *pixels, int pixelWidth, int pixelHeight, int byteStride)
Appends a new image representation.
void uiFreeImage(uiImage *i)
Frees the image container and all associated resources.
size_t Size
Definition: ui.h:61
A control that displays non interactive text.
char * uiLabelText(uiLabel *l)
Returns the label text.
uiLabel * uiNewLabel(const char *text)
Creates a new label.
void uiLabelSetText(uiLabel *l, const char *text)
Sets the label text.
A control with a multi line text entry field.
void uiMultilineEntryOnChanged(uiMultilineEntry *e, void(*f)(uiMultilineEntry *sender, void *senderData), void *data)
Registers a callback for when the user changes the multi line entry's text.
void uiMultilineEntryAppend(uiMultilineEntry *e, const char *text)
Appends text to the multi line entry's text.
void uiMultilineEntrySetReadOnly(uiMultilineEntry *e, int readonly)
Sets whether or not the multi line entry's text is read only.
uiMultilineEntry * uiNewMultilineEntry(void)
Creates a new multi line entry that visually wraps text when lines overflow.
void uiMultilineEntrySetText(uiMultilineEntry *e, const char *text)
Sets the multi line entry's text.
uiMultilineEntry * uiNewNonWrappingMultilineEntry(void)
Creates a new multi line entry that scrolls horizontally when lines overflow.
char * uiMultilineEntryText(uiMultilineEntry *e)
Returns the multi line entry's text.
int uiMultilineEntryReadOnly(uiMultilineEntry *e)
Returns whether or not the multi line entry's text can be changed.
A control that visualizes the progress of a task via the fill level of a horizontal bar.
uiProgressBar * uiNewProgressBar(void)
Creates a new progress bar.
void uiProgressBarSetValue(uiProgressBar *p, int n)
Sets the progress bar value.
int uiProgressBarValue(uiProgressBar *p)
Returns the progress bar value.
A control to visually separate controls, horizontally or vertically.
uiSeparator * uiNewHorizontalSeparator(void)
Creates a new horizontal separator to separate controls being stacked vertically.
uiSeparator * uiNewVerticalSeparator(void)
Creates a new vertical separator to separate controls being stacked horizontally.
A control to display and modify integer values via a user draggable slider.
void uiSliderOnReleased(uiSlider *s, void(*f)(uiSlider *sender, void *senderData), void *data)
Registers a callback for when the slider is released from dragging.
uiSlider * uiNewSlider(int min, int max)
Creates a new slider.
int uiSliderHasToolTip(uiSlider *s)
Returns whether or not the slider has a tool tip.
int uiSliderValue(uiSlider *s)
Returns the slider value.
void uiSliderSetValue(uiSlider *s, int value)
Sets the slider value.
void uiSliderOnChanged(uiSlider *s, void(*f)(uiSlider *sender, void *senderData), void *data)
Registers a callback for when the slider value is changed by the user.
void uiSliderSetHasToolTip(uiSlider *s, int hasToolTip)
Sets whether or not the slider has a tool tip.
void uiSliderSetRange(uiSlider *s, int min, int max)
Sets the slider range.
A control to display and modify integer values via a text field or +/- buttons.
void uiSpinboxOnChanged(uiSpinbox *s, void(*f)(uiSpinbox *sender, void *senderData), void *data)
Registers a callback for when the spinbox value is changed by the user.
void uiSpinboxSetValue(uiSpinbox *s, int value)
Sets the spinbox value.
uiSpinbox * uiNewSpinbox(int min, int max)
Creates a new spinbox.
int uiSpinboxValue(uiSpinbox *s)
Returns the spinbox value.
A multi page control interface that displays one page at a time.
void uiTabAppend(uiTab *t, const char *name, uiControl *c)
Appends a control in form of a page/tab with label.
void uiTabSetMargined(uiTab *t, int index, int margined)
Sets whether or not the page/tab at index has a margin.
void uiTabOnSelected(uiTab *t, void(*f)(uiTab *sender, void *senderData), void *data)
Registers a callback for when a tab is selected.
int uiTabNumPages(uiTab *t)
Returns the number of pages contained.
void uiTabSetSelected(uiTab *t, int index)
Sets the tab selected.
int uiTabMargined(uiTab *t, int index)
Returns whether or not the page/tab at index has a margin.
int uiTabSelected(uiTab *t)
Returns the index of the tab selected.
void uiTabInsertAt(uiTab *t, const char *name, int index, uiControl *c)
Inserts a control in form of a page/tab with label at index.
void uiTabDelete(uiTab *t, int index)
Removes the control at index.
uiTab * uiNewTab(void)
Creates a new tab container.
A control to display data in a tabular fashion.
void uiTableAppendButtonColumn(uiTable *t, const char *name, int buttonModelColumn, int buttonClickableModelColumn)
Appends a column to the table containing a button.
void uiTableOnRowDoubleClicked(uiTable *t, void(*f)(uiTable *t, int row, void *data), void *data)
Registers a callback for when the user double clicks a table row.
uiTableSelection * uiTableGetSelection(uiTable *t)
Returns the current table selection.
void uiTableOnRowClicked(uiTable *t, void(*f)(uiTable *t, int row, void *data), void *data)
Registers a callback for when the user single clicks a table row.
void uiTableColumnSetWidth(uiTable *t, int column, int width)
Sets the table column width.
uiSortIndicator uiTableHeaderSortIndicator(uiTable *t, int column)
Returns the column's sort indicator displayed in the table header.
int uiTableHeaderVisible(uiTable *t)
Returns whether or not the table header is visible.
void uiTableAppendImageTextColumn(uiTable *t, const char *name, int imageModelColumn, int textModelColumn, int textEditableModelColumn, uiTableTextColumnOptionalParams *textParams)
Appends a column to the table that displays both an image and text.
void uiTableAppendCheckboxTextColumn(uiTable *t, const char *name, int checkboxModelColumn, int checkboxEditableModelColumn, int textModelColumn, int textEditableModelColumn, uiTableTextColumnOptionalParams *textParams)
Appends a column to the table containing a checkbox and text.
int uiTableColumnWidth(uiTable *t, int column)
Returns the table column width.
void uiTableAppendTextColumn(uiTable *t, const char *name, int textModelColumn, int textEditableModelColumn, uiTableTextColumnOptionalParams *textParams)
Appends a text column to the table.
void uiTableSetSelectionMode(uiTable *t, uiTableSelectionMode mode)
Sets the table selection mode.
void uiTableSetSelection(uiTable *t, uiTableSelection *sel)
Sets the current table selection clearing any previous selection.
uiTable * uiNewTable(uiTableParams *params)
Creates a new table.
void uiTableOnSelectionChanged(uiTable *t, void(*f)(uiTable *t, void *data), void *data)
Registers a callback for when the table selection changed.
void uiTableHeaderOnClicked(uiTable *t, void(*f)(uiTable *sender, int column, void *senderData), void *data)
Registers a callback for when a table column header is clicked.
void uiTableAppendCheckboxColumn(uiTable *t, const char *name, int checkboxModelColumn, int checkboxEditableModelColumn)
Appends a column to the table containing a checkbox.
void uiTableHeaderSetSortIndicator(uiTable *t, int column, uiSortIndicator indicator)
Sets the column's sort indicator displayed in the table header.
uiTableSelectionMode uiTableGetSelectionMode(uiTable *t)
Returns the table selection mode.
void uiTableAppendImageColumn(uiTable *t, const char *name, int imageModelColumn)
Appends an image column to the table.
void uiTableHeaderSetVisible(uiTable *t, int visible)
Sets whether or not the table header is visible.
void uiTableAppendProgressBarColumn(uiTable *t, const char *name, int progressModelColumn)
Appends a column to the table containing a progress bar.
Developer defined methods for data retrieval and setting.
Definition: ui.h:3461
void(* SetCellValue)(uiTableModelHandler *, uiTableModel *, int, int, const uiTableValue *)
Sets the cell value for (row, column).
Definition: ui.h:3511
int(* NumColumns)(uiTableModelHandler *, uiTableModel *)
Returns the number of columns in the uiTableModel.
Definition: ui.h:3470
uiTableValueType(* ColumnType)(uiTableModelHandler *, uiTableModel *, int column)
Returns the column type in for of a uiTableValueType.
Definition: ui.h:3478
int(* NumRows)(uiTableModelHandler *, uiTableModel *)
Returns the number of rows in the uiTableModel.
Definition: ui.h:3483
Table model delegate to retrieve data and inform about model changes.
uiTableModel * uiNewTableModel(uiTableModelHandler *mh)
Creates a new table model.
void uiTableModelRowChanged(uiTableModel *m, int index)
Informs all associated uiTable views that a row has been changed.
void uiFreeTableModel(uiTableModel *m)
Frees the table model.
void uiTableModelRowInserted(uiTableModel *m, int newIndex)
Informs all associated uiTable views that a new row has been added.
void uiTableModelRowDeleted(uiTableModel *m, int oldIndex)
Informs all associated uiTable views that a row has been deleted.
Table parameters passed to uiNewTable().
Definition: ui.h:3603
int RowBackgroundColorModelColumn
uiTableModel column that defines background color for each row,
Definition: ui.h:3616
uiTableModel * Model
Model holding the data to be displayed.
Definition: ui.h:3607
Holds an array of selected row indices for a table.
Definition: ui.h:4008
void uiFreeTableSelection(uiTableSelection *s)
Frees the given uiTableSelection and all it's resources.
int * Rows
Array containing selected row indices, NULL on empty selection.
Definition: ui.h:4010
int NumRows
Number of selected rows.
Definition: ui.h:4009
Optional parameters to control the appearance of text columns.
Definition: ui.h:3584
int ColorModelColumn
uiTableModel column that defines the text color for each cell.
Definition: ui.h:3593
Container to store values used in container related methods.
int uiTableValueInt(const uiTableValue *v)
Returns the integer value held internally.
void uiTableValueColor(const uiTableValue *v, double *r, double *g, double *b, double *a)
Returns the color value held internally.
void uiFreeTableValue(uiTableValue *v)
Frees the uiTableValue.
uiTableValue * uiNewTableValueImage(uiImage *img)
Creates a new table value to store an image.
uiTableValueType uiTableValueGetType(const uiTableValue *v)
Gets the uiTableValue type.
uiTableValue * uiNewTableValueString(const char *str)
Creates a new table value to store a text string.
const char * uiTableValueString(const uiTableValue *v)
Returns the string value held internally.
uiTableValue * uiNewTableValueInt(int i)
Creates a new table value to store an integer.
uiTableValue * uiNewTableValueColor(double r, double g, double b, double a)
Creates a new table value to store a color in.
uiImage * uiTableValueImage(const uiTableValue *v)
Returns a reference to the image contained.
A control that represents a top-level window.
int uiWindowFocused(uiWindow *w)
Returns whether or not the window is focused.
void uiWindowPosition(uiWindow *w, int *x, int *y)
Gets the window position.
void uiWindowSetContentSize(uiWindow *w, int width, int height)
Sets the window content size.
void uiWindowSetResizeable(uiWindow *w, int resizeable)
Sets whether or not the window is user resizeable.
void uiWindowOnClosing(uiWindow *w, int(*f)(uiWindow *sender, void *senderData), void *data)
Registers a callback for when the window is to be closed.
int uiWindowBorderless(uiWindow *w)
Returns whether or not the window is borderless.
int uiWindowMargined(uiWindow *w)
Returns whether or not the window has a margin.
void uiWindowOnContentSizeChanged(uiWindow *w, void(*f)(uiWindow *sender, void *senderData), void *data)
Registers a callback for when the window content size is changed.
int uiWindowFullscreen(uiWindow *w)
Returns whether or not the window is full screen.
void uiWindowSetBorderless(uiWindow *w, int borderless)
Sets whether or not the window is borderless.
int uiWindowResizeable(uiWindow *w)
Returns whether or not the window is user resizeable.
char * uiWindowTitle(uiWindow *w)
Returns the window title.
void uiWindowSetTitle(uiWindow *w, const char *title)
Sets the window title.
void uiWindowSetChild(uiWindow *w, uiControl *child)
Sets the window's child.
void uiWindowSetFullscreen(uiWindow *w, int fullscreen)
Sets whether or not the window is full screen.
void uiWindowSetPosition(uiWindow *w, int x, int y)
Moves the window to the specified position.
void uiWindowOnPositionChanged(uiWindow *w, void(*f)(uiWindow *sender, void *senderData), void *data)
Registers a callback for when the window moved.
void uiWindowContentSize(uiWindow *w, int *width, int *height)
Gets the window content size.
void uiWindowOnFocusChanged(uiWindow *w, void(*f)(uiWindow *sender, void *senderData), void *data)
Registers a callback for when the window focus changes.
void uiWindowSetMargined(uiWindow *w, int margined)
Sets whether or not the window has a margin.
uiWindow * uiNewWindow(const char *title, int width, int height, int hasMenubar)
Creates a new uiWindow.
void uiDrawMatrixMultiply(uiDrawMatrix *dest, uiDrawMatrix *src)
uiAttribute * uiNewUnderlineAttribute(uiUnderline u)
void uiFreeAttributedString(uiAttributedString *s)
uiWindowResizeEdge
Definition: ui.h:2061
@ uiWindowResizeEdgeTop
Definition: ui.h:2063
@ uiWindowResizeEdgeBottom
Definition: ui.h:2065
@ uiWindowResizeEdgeBottomLeft
Definition: ui.h:2068
@ uiWindowResizeEdgeLeft
Definition: ui.h:2062
@ uiWindowResizeEdgeRight
Definition: ui.h:2064
@ uiWindowResizeEdgeTopLeft
Definition: ui.h:2066
@ uiWindowResizeEdgeBottomRight
Definition: ui.h:2069
@ uiWindowResizeEdgeTopRight
Definition: ui.h:2067
const uiOpenTypeFeatures * uiAttributeFeatures(const uiAttribute *a)
uiTableValueType
uiTableValue types.
Definition: ui.h:3288
@ uiTableValueTypeImage
Definition: ui.h:3290
@ uiTableValueTypeInt
Definition: ui.h:3291
@ uiTableValueTypeColor
Definition: ui.h:3292
@ uiTableValueTypeString
Definition: ui.h:3289
uiOpenTypeFeatures * uiNewOpenTypeFeatures(void)
#define _UI_ENUM(s)
Definition: ui.h:44
void uiDrawSave(uiDrawContext *c)
void uiDrawFreeTextLayout(uiDrawTextLayout *tl)
void uiOpenTypeFeaturesForEach(const uiOpenTypeFeatures *otf, uiOpenTypeFeaturesForEachFunc f, void *data)
uiAttributedString * uiNewAttributedString(const char *initialString)
uiAt
Placement specifier to define placement in relation to another control.
Definition: ui.h:3058
@ uiAtTop
Place above control.
Definition: ui.h:3060
@ uiAtLeading
Place before control.
Definition: ui.h:3059
@ uiAtBottom
Place below control.
Definition: ui.h:3062
@ uiAtTrailing
Place behind control.
Definition: ui.h:3061
void uiDrawPathNewFigureWithArc(uiDrawPath *p, double xCenter, double yCenter, double radius, double startAngle, double sweep, int negative)
struct uiAttributedString uiAttributedString
Definition: ui.h:2583
uiAttribute * uiNewSizeAttribute(double size)
void uiLoadControlFont(uiFontDescriptor *f)
const char * uiInit(uiInitOptions *options)
void uiDrawPathAddRectangle(uiDrawPath *p, double x, double y, double width, double height)
size_t uiAttributedStringByteIndexToGrapheme(uiAttributedString *s, size_t pos)
size_t uiAttributedStringGraphemeToByteIndex(uiAttributedString *s, size_t pos)
uiForEach(* uiAttributedStringForEachAttributeFunc)(const uiAttributedString *s, const uiAttribute *a, size_t start, size_t end, void *data)
Definition: ui.h:2589
void uiAttributedStringDelete(uiAttributedString *s, size_t start, size_t end)
void uiDrawFill(uiDrawContext *c, uiDrawPath *path, uiDrawBrush *b)
uiArea * uiNewScrollingArea(uiAreaHandler *ah, int width, int height)
void uiAttributeColor(const uiAttribute *a, double *r, double *g, double *b, double *alpha)
uiTextItalic
Definition: ui.h:2352
@ uiTextItalicOblique
Definition: ui.h:2354
@ uiTextItalicItalic
Definition: ui.h:2355
@ uiTextItalicNormal
Definition: ui.h:2353
void uiDrawPathLineTo(uiDrawPath *p, double x, double y)
void uiDrawFreePath(uiDrawPath *p)
uiModifiers
Keyboard modifier keys.
Definition: ui.h:2812
@ uiModifierAlt
Alternate/Option key.
Definition: ui.h:2814
@ uiModifierSuper
Super/Command/Windows key.
Definition: ui.h:2816
@ uiModifierShift
Shift key.
Definition: ui.h:2815
@ uiModifierCtrl
Control key.
Definition: ui.h:2813
void uiFreeText(char *text)
Free the memory of a returned string.
void uiAttributeUnderlineColor(const uiAttribute *a, uiUnderlineColor *u, double *r, double *g, double *b, double *alpha)
uiOpenTypeFeatures * uiOpenTypeFeaturesClone(const uiOpenTypeFeatures *otf)
void uiTimer(int milliseconds, int(*f)(void *data), void *data)
uiDrawTextAlign
Definition: ui.h:2687
@ uiDrawTextAlignCenter
Definition: ui.h:2689
@ uiDrawTextAlignLeft
Definition: ui.h:2688
@ uiDrawTextAlignRight
Definition: ui.h:2690
void uiFreeInitError(const char *err)
uiForEach(* uiOpenTypeFeaturesForEachFunc)(const uiOpenTypeFeatures *otf, char a, char b, char c, char d, uint32_t value, void *data)
Definition: ui.h:2490
struct uiAttribute uiAttribute
Definition: ui.h:2258
int uiOpenTypeFeaturesGet(const uiOpenTypeFeatures *otf, char a, char b, char c, char d, uint32_t *value)
struct uiDrawPath uiDrawPath
Definition: ui.h:2105
uiDrawTextLayout * uiDrawNewTextLayout(uiDrawTextLayoutParams *params)
uiAttributeType uiAttributeGetType(const uiAttribute *a)
uiTextWeight
Definition: ui.h:2321
@ uiTextWeightMaximum
Definition: ui.h:2334
@ uiTextWeightNormal
Definition: ui.h:2327
@ uiTextWeightBook
Definition: ui.h:2326
@ uiTextWeightMedium
Definition: ui.h:2328
@ uiTextWeightUltraLight
Definition: ui.h:2324
@ uiTextWeightBold
Definition: ui.h:2330
@ uiTextWeightUltraBold
Definition: ui.h:2331
@ uiTextWeightSemiBold
Definition: ui.h:2329
@ uiTextWeightUltraHeavy
Definition: ui.h:2333
@ uiTextWeightLight
Definition: ui.h:2325
@ uiTextWeightThin
Definition: ui.h:2323
@ uiTextWeightMinimum
Definition: ui.h:2322
@ uiTextWeightHeavy
Definition: ui.h:2332
struct uiDrawContext uiDrawContext
Definition: ui.h:2046
int uiDrawMatrixInvertible(uiDrawMatrix *m)
void uiAreaQueueRedrawAll(uiArea *a)
uiAttribute * uiNewFamilyAttribute(const char *family)
uiTextStretch uiAttributeStretch(const uiAttribute *a)
void uiAttributedStringAppendUnattributed(uiAttributedString *s, const char *str)
uiAttribute * uiNewColorAttribute(double r, double g, double b, double a)
void uiDrawMatrixTranslate(uiDrawMatrix *m, double x, double y)
const char * uiAttributedStringString(const uiAttributedString *s)
void uiDrawPathEnd(uiDrawPath *p)
void uiDrawText(uiDrawContext *c, uiDrawTextLayout *tl, double x, double y)
void uiOpenTypeFeaturesRemove(uiOpenTypeFeatures *otf, char a, char b, char c, char d)
void uiAttributedStringInsertAtUnattributed(uiAttributedString *s, const char *str, size_t at)
uiAttribute * uiNewFeaturesAttribute(const uiOpenTypeFeatures *otf)
void uiDrawClip(uiDrawContext *c, uiDrawPath *path)
uiUnderline uiAttributeUnderline(const uiAttribute *a)
void uiQueueMain(void(*f)(void *data), void *data)
uiTextWeight uiAttributeWeight(const uiAttribute *a)
double uiAttributeSize(const uiAttribute *a)
void uiDrawTransform(uiDrawContext *c, uiDrawMatrix *m)
uiAttribute * uiNewWeightAttribute(uiTextWeight weight)
uiAttribute * uiNewBackgroundAttribute(double r, double g, double b, double a)
uiAttributeType
Definition: ui.h:2271
@ uiAttributeTypeUnderline
Definition: ui.h:2279
@ uiAttributeTypeBackground
Definition: ui.h:2278
@ uiAttributeTypeFamily
Definition: ui.h:2272
@ uiAttributeTypeItalic
Definition: ui.h:2275
@ uiAttributeTypeColor
Definition: ui.h:2277
@ uiAttributeTypeUnderlineColor
Definition: ui.h:2280
@ uiAttributeTypeStretch
Definition: ui.h:2276
@ uiAttributeTypeSize
Definition: ui.h:2273
@ uiAttributeTypeFeatures
Definition: ui.h:2281
@ uiAttributeTypeWeight
Definition: ui.h:2274
void uiAreaBeginUserWindowMove(uiArea *a)
uiUnderline
Definition: ui.h:2416
@ uiUnderlineSuggestion
Definition: ui.h:2420
@ uiUnderlineSingle
Definition: ui.h:2418
@ uiUnderlineDouble
Definition: ui.h:2419
@ uiUnderlineNone
Definition: ui.h:2417
uiExtKey
Definition: ui.h:2839
@ uiExtKeyF8
Definition: ui.h:2858
@ uiExtKeyNSubtract
Definition: ui.h:2876
@ uiExtKeyF5
Definition: ui.h:2855
@ uiExtKeyF3
Definition: ui.h:2853
@ uiExtKeyN3
Definition: ui.h:2866
@ uiExtKeyPageUp
Definition: ui.h:2845
@ uiExtKeyF12
Definition: ui.h:2862
@ uiExtKeyF4
Definition: ui.h:2854
@ uiExtKeyRight
Definition: ui.h:2850
@ uiExtKeyNDot
Definition: ui.h:2873
@ uiExtKeyDelete
Definition: ui.h:2842
@ uiExtKeyNAdd
Definition: ui.h:2875
@ uiExtKeyN6
Definition: ui.h:2869
@ uiExtKeyNEnter
Definition: ui.h:2874
@ uiExtKeyDown
Definition: ui.h:2848
@ uiExtKeyF10
Definition: ui.h:2860
@ uiExtKeyN8
Definition: ui.h:2871
@ uiExtKeyN4
Definition: ui.h:2867
@ uiExtKeyInsert
Definition: ui.h:2841
@ uiExtKeyN0
Definition: ui.h:2863
@ uiExtKeyN5
Definition: ui.h:2868
@ uiExtKeyN1
Definition: ui.h:2864
@ uiExtKeyF11
Definition: ui.h:2861
@ uiExtKeyF1
Definition: ui.h:2851
@ uiExtKeyF2
Definition: ui.h:2852
@ uiExtKeyF6
Definition: ui.h:2856
@ uiExtKeyLeft
Definition: ui.h:2849
@ uiExtKeyUp
Definition: ui.h:2847
@ uiExtKeyEscape
Definition: ui.h:2840
@ uiExtKeyF7
Definition: ui.h:2857
@ uiExtKeyN7
Definition: ui.h:2870
@ uiExtKeyNDivide
Definition: ui.h:2878
@ uiExtKeyEnd
Definition: ui.h:2844
@ uiExtKeyN2
Definition: ui.h:2865
@ uiExtKeyHome
Definition: ui.h:2843
@ uiExtKeyF9
Definition: ui.h:2859
@ uiExtKeyPageDown
Definition: ui.h:2846
@ uiExtKeyN9
Definition: ui.h:2872
@ uiExtKeyNMultiply
Definition: ui.h:2877
#define _UI_EXTERN
Definition: ui.h:39
uiForEach
Definition: ui.h:53
@ uiForEachStop
Definition: ui.h:55
@ uiForEachContinue
Definition: ui.h:54
void uiAreaBeginUserWindowResize(uiArea *a, uiWindowResizeEdge edge)
void uiDrawTextLayoutExtents(uiDrawTextLayout *tl, double *width, double *height)
size_t uiAttributedStringLen(const uiAttributedString *s)
uiDrawPath * uiDrawNewPath(uiDrawFillMode fillMode)
uiAttribute * uiNewUnderlineColorAttribute(uiUnderlineColor u, double r, double g, double b, double a)
int uiDrawPathEnded(uiDrawPath *p)
void uiDrawPathNewFigure(uiDrawPath *p, double x, double y)
void uiDrawStroke(uiDrawContext *c, uiDrawPath *path, uiDrawBrush *b, uiDrawStrokeParams *p)
size_t uiAttributedStringNumGraphemes(uiAttributedString *s)
uiDrawLineJoin
Definition: ui.h:2125
@ uiDrawLineJoinRound
Definition: ui.h:2127
@ uiDrawLineJoinMiter
Definition: ui.h:2126
@ uiDrawLineJoinBevel
Definition: ui.h:2128
void uiFreeFontDescriptor(uiFontDescriptor *desc)
const char * uiAttributeFamily(const uiAttribute *a)
void uiDrawPathArcTo(uiDrawPath *p, double xCenter, double yCenter, double radius, double startAngle, double sweep, int negative)
uiDrawFillMode
Definition: ui.h:2136
@ uiDrawFillModeWinding
Definition: ui.h:2137
@ uiDrawFillModeAlternate
Definition: ui.h:2138
uiDrawLineCap
Definition: ui.h:2119
@ uiDrawLineCapRound
Definition: ui.h:2121
@ uiDrawLineCapFlat
Definition: ui.h:2120
@ uiDrawLineCapSquare
Definition: ui.h:2122
void uiOpenTypeFeaturesAdd(uiOpenTypeFeatures *otf, char a, char b, char c, char d, uint32_t value)
void uiDrawMatrixTransformSize(uiDrawMatrix *m, double *x, double *y)
void uiFreeOpenTypeFeatures(uiOpenTypeFeatures *otf)
uiTextItalic uiAttributeItalic(const uiAttribute *a)
void uiDrawMatrixSetIdentity(uiDrawMatrix *m)
void uiAreaSetSize(uiArea *a, int width, int height)
void uiDrawPathCloseFigure(uiDrawPath *p)
struct uiOpenTypeFeatures uiOpenTypeFeatures
Definition: ui.h:2484
void uiAttributedStringSetAttribute(uiAttributedString *s, uiAttribute *a, size_t start, size_t end)
struct uiArea uiArea
Definition: ui.h:2040
void uiDrawMatrixRotate(uiDrawMatrix *m, double x, double y, double amount)
uiAttribute * uiNewItalicAttribute(uiTextItalic italic)
int uiDrawMatrixInvert(uiDrawMatrix *m)
void uiUserBugCannotSetParentOnToplevel(const char *type)
struct uiDrawTextLayout uiDrawTextLayout
Definition: ui.h:2682
uiUnderlineColor
Definition: ui.h:2444
@ uiUnderlineColorCustom
Definition: ui.h:2445
@ uiUnderlineColorAuxiliary
Definition: ui.h:2448
@ uiUnderlineColorGrammar
Definition: ui.h:2447
@ uiUnderlineColorSpelling
Definition: ui.h:2446
void uiAreaScrollTo(uiArea *a, double x, double y, double width, double height)
void uiDrawMatrixScale(uiDrawMatrix *m, double xCenter, double yCenter, double x, double y)
uiAlign
Alignment specifiers to define placement within the reserved area.
Definition: ui.h:3045
@ uiAlignStart
Place at start.
Definition: ui.h:3047
@ uiAlignEnd
Place at end.
Definition: ui.h:3049
@ uiAlignFill
Fill area.
Definition: ui.h:3046
@ uiAlignCenter
Place in center.
Definition: ui.h:3048
uiDrawBrushType
Definition: ui.h:2112
@ uiDrawBrushTypeImage
Definition: ui.h:2116
@ uiDrawBrushTypeSolid
Definition: ui.h:2113
@ uiDrawBrushTypeLinearGradient
Definition: ui.h:2114
@ uiDrawBrushTypeRadialGradient
Definition: ui.h:2115
void uiOnShouldQuit(int(*f)(void *data), void *data)
uiArea * uiNewArea(uiAreaHandler *ah)
void uiDrawRestore(uiDrawContext *c)
void uiDrawMatrixTransformPoint(uiDrawMatrix *m, double *x, double *y)
void uiAttributedStringForEachAttribute(const uiAttributedString *s, uiAttributedStringForEachAttributeFunc f, void *data)
void uiDrawPathBezierTo(uiDrawPath *p, double c1x, double c1y, double c2x, double c2y, double endX, double endY)
uiTextStretch
Definition: ui.h:2378
@ uiTextStretchSemiCondensed
Definition: ui.h:2382
@ uiTextStretchExpanded
Definition: ui.h:2385
@ uiTextStretchExtraExpanded
Definition: ui.h:2386
@ uiTextStretchUltraExpanded
Definition: ui.h:2387
@ uiTextStretchExtraCondensed
Definition: ui.h:2380
@ uiTextStretchCondensed
Definition: ui.h:2381
@ uiTextStretchSemiExpanded
Definition: ui.h:2384
@ uiTextStretchNormal
Definition: ui.h:2383
@ uiTextStretchUltraCondensed
Definition: ui.h:2379
void uiDrawMatrixSkew(uiDrawMatrix *m, double x, double y, double xamount, double yamount)
void uiFreeAttribute(uiAttribute *a)
uiAttribute * uiNewStretchAttribute(uiTextStretch stretch)
@ uiTableSelectionModeZeroOrMany
Allow zero or many (multiple) rows to be selected.
Definition: ui.h:3959
@ uiTableSelectionModeZeroOrOne
Allow zero or one row to be selected.
Definition: ui.h:3957
@ uiTableSelectionModeNone
Allow no row selection.
Definition: ui.h:3956
@ uiTableSelectionModeOne
Allow for exactly one row to be selected.
Definition: ui.h:3958
@ uiSortIndicatorNone
Definition: ui.h:3419
@ uiSortIndicatorDescending
Definition: ui.h:3421
@ uiSortIndicatorAscending
Definition: ui.h:3420