Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 9e6109b

Browse files
author
Fraser J. Gordon
committed
Make the stdscript functions visible for FFI binding
1 parent b0ba3e2 commit 9e6109b

16 files changed

+235
-621
lines changed

engine/src/text-api.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -90,44 +90,44 @@ struct MCTextAttributes
9090
////////////////////////////////////////////////////////////////////////////////
9191

9292
// MCTextCell accessors
93-
MCTextCellType MCTextCellGetType(MCTextCellRef);
94-
MCTextCellRef MCTextCellGetParent(MCTextCellRef);
95-
MCTextCellRef MCTextCellGetChildren(MCTextCellRef);
96-
coord_t MCTextCellGetX(MCTextCellRef);
97-
coord_t MCTextCellGetY(MCTextCellRef);
98-
coord_t MCTextCellGetWidth(MCTextCellRef);
99-
coord_t MCTextCellGetHeight(MCTextCellRef);
100-
coord_t MCTextCellGetMaxWidth(MCTextCellRef);
101-
coord_t MCTextCellGetMaxHeight(MCTextCellRef);
102-
MCTextCellAlignment MCTextCellGetHorizontalAlignment(MCTextCellRef);
103-
MCTextCellAlignment MCTextCellGetVerticalAlignment(MCTextCellRef);
104-
MCTextCellLayoutDirection MCTextCellGetLayoutDirection(MCTextCellRef);
105-
MCTextDirection MCTextCellGetTextDirection(MCTextCellRef);
106-
void MCTextCellSetPosition(MCTextCellRef, coord_t p_x, coord_t p_y);
107-
void MCTextCellSetMaxSize(MCTextCellRef, coord_t p_width, coord_t p_height);
108-
void MCTextCellSetAlignment(MCTextCellRef, MCTextCellAlignment p_horizontal, MCTextCellAlignment p_vertical);
109-
void MCTextCellSetLayoutDirection(MCTextCellRef, MCTextCellLayoutDirection p_direction);
110-
void MCTextCellSetTextDirection(MCTextCellRef, MCTextDirection p_direction);
93+
MC_DLLEXPORT MCTextCellType MCTextCellGetType(MCTextCellRef);
94+
MC_DLLEXPORT MCTextCellRef MCTextCellGetParent(MCTextCellRef);
95+
MC_DLLEXPORT MCTextCellRef MCTextCellGetChildren(MCTextCellRef);
96+
MC_DLLEXPORT coord_t MCTextCellGetX(MCTextCellRef);
97+
MC_DLLEXPORT coord_t MCTextCellGetY(MCTextCellRef);
98+
MC_DLLEXPORT coord_t MCTextCellGetWidth(MCTextCellRef);
99+
MC_DLLEXPORT coord_t MCTextCellGetHeight(MCTextCellRef);
100+
MC_DLLEXPORT coord_t MCTextCellGetMaxWidth(MCTextCellRef);
101+
MC_DLLEXPORT coord_t MCTextCellGetMaxHeight(MCTextCellRef);
102+
MC_DLLEXPORT MCTextCellAlignment MCTextCellGetHorizontalAlignment(MCTextCellRef);
103+
MC_DLLEXPORT MCTextCellAlignment MCTextCellGetVerticalAlignment(MCTextCellRef);
104+
MC_DLLEXPORT MCTextCellLayoutDirection MCTextCellGetLayoutDirection(MCTextCellRef);
105+
MC_DLLEXPORT MCTextDirection MCTextCellGetTextDirection(MCTextCellRef);
106+
MC_DLLEXPORT void MCTextCellSetPosition(MCTextCellRef, coord_t p_x, coord_t p_y);
107+
MC_DLLEXPORT void MCTextCellSetMaxSize(MCTextCellRef, coord_t p_width, coord_t p_height);
108+
MC_DLLEXPORT void MCTextCellSetAlignment(MCTextCellRef, MCTextCellAlignment p_horizontal, MCTextCellAlignment p_vertical);
109+
MC_DLLEXPORT void MCTextCellSetLayoutDirection(MCTextCellRef, MCTextCellLayoutDirection p_direction);
110+
MC_DLLEXPORT void MCTextCellSetTextDirection(MCTextCellRef, MCTextDirection p_direction);
111111

112112

113113
////////////////////////////////////////////////////////////////////////////////
114114

115115
// Creates a new, empty text pane. The specified stack is used for scaling and
116116
// theming only - the pane isn't a LiveCode control and isn't a child of the
117117
// stack.
118-
bool MCTextPaneCreate(class MCStack* p_on_stack, MCTextPaneRef& r_pane);
118+
MC_DLLEXPORT bool MCTextPaneCreate(class MCStack* p_on_stack, MCTextPaneRef& r_pane);
119119

120120
// Deletes the given text pane
121-
bool MCTextPaneDelete(MCTextPaneRef p_pane);
121+
MC_DLLEXPORT bool MCTextPaneDelete(MCTextPaneRef p_pane);
122122

123123
// Sets the contents of the text pane to be the given string. Other than certain
124124
// inline control characters (tabs, newlines, BiDi controls, etc), the string
125125
// is unformatted.
126-
bool MCTextPaneSetContentsPlain(MCTextPaneRef p_pane, MCStringRef p_contents);
126+
MC_DLLEXPORT bool MCTextPaneSetContentsPlain(MCTextPaneRef p_pane, MCStringRef p_contents);
127127

128-
MCTextPaneRef MCTextPaneGet();
129-
void MCTextPaneSet(MCTextPaneRef p_pane);
130-
void MCTextPanePaintShim(MCTextPaneRef p_pane);
128+
MC_DLLEXPORT MCTextPaneRef MCTextPaneGet();
129+
MC_DLLEXPORT void MCTextPaneSet(MCTextPaneRef p_pane);
130+
MC_DLLEXPORT void MCTextPanePaintShim(MCTextPaneRef p_pane);
131131

132132
////////////////////////////////////////////////////////////////////////////////
133133

libscript/generated/arithmetic.c

Lines changed: 0 additions & 422 deletions
This file was deleted.

0 commit comments

Comments
 (0)