diff --git a/4coder_API.html b/4coder_API.html index 1e9c0904..e693546f 100644 --- a/4coder_API.html +++ b/4coder_API.html @@ -2,9 +2,10 @@ 4coder API Docs -
+

4coder API

§1 Introduction

@@ -162,29 +163,50 @@ This is the documentation for alpha 4.0.8 super! The documentation has been made

§2.2 Descriptions

-
+

§2.2.0: exec_command

-
void exec_command(Application_Links *app, int command_id)
-
-DOC_PARAM(command_id, an integer id enumerated in 4coder_custom.h starting with cmdid) -DOC(Executes the command associated with the command_id passed in) +
void exec_command( +
Application_Links *app,
int command_id
)
+
Parameters
+
command_id
+
an integer id enumerated in 4coder_custom.h starting with cmdid
-
+
Description
Executes the command associated with the command_id passed in

+

§2.2.1: exec_system_command

-
int exec_system_command(Application_Links *app, View_Summary *view, Buffer_Identifier buffer, char *path, int path_len, char *command, int command_len, unsigned int flags)
-
-DOC_PARAM(view, the target view that will display the output buffer, may be NULL, see description for details) -DOC_PARAM(buffer, a buffer identifier for the buffer that will be filled with the output from the command) -DOC_PARAM(path, the path from which the command is executed) -DOC_PARAM(path_len, the length of the path string) -DOC_PARAM(command, the command to be executed) -DOC_PARAM(command_len, the length of the command string) -DOC_PARAM(flags, may be zero or one or more CLI flags ORed together) -DOC_RETURN(returns non-zero if the command is successfully started, returns zero otherwise) -DOC -( -Executes a system command as if called from the command line, and sends the output to a buffer. The buffer +
int exec_system_command( +
Application_Links *app,
View_Summary *view,
Buffer_Identifier buffer,
char *path,
int path_len,
char *command,
int command_len,
unsigned int flags
) +
+
Parameters
+
view
+
the target view that will display the output buffer, may be NULL, see description for details
+
+
+
buffer
+
a buffer identifier for the buffer that will be filled with the output from the command
+
+
+
path
+
the path from which the command is executed
+
+
+
path_len
+
the length of the path string
+
+
+
command
+
the command to be executed
+
+
+
command_len
+
the length of the command string
+
+
+
flags
+
may be zero or one or more CLI flags ORed together
+
+
Return
returns non-zero if the command is successfully started, returns zero otherwise
Description
Executes a system command as if called from the command line, and sends the output to a buffer. The buffer identifier can either name a new buffer that does not exist, name a buffer that does exist, or provide the id of a buffer that does exist. If the buffer already exists the command will fail, unless CLI_OverlapWithConflict is set in the flags. @@ -199,580 +221,735 @@ If CLI_AlwaysBindToView is set and the view parameter is not NULL, then the spec begin displaying the output buffer, even if another open view already displays that buffer. If CLI_CursorAtEnd is set the cursor in the output buffer will be placed at the end of the buffer instead -of at the beginning. -) -
-
-
+of at the beginning.

+

§2.2.2: clipboard_post

-
void clipboard_post(Application_Links *app, char *str, int len)
-
-DOC_PARAM(str, the string to post to the clipboard) -DOC_PARAM(len, the length of the string str) -DOC -( -Stores the string str in the clipboard initially with index 0. +
void clipboard_post( +
Application_Links *app,
char *str,
int len
) +
+
Parameters
+
str
+
the string to post to the clipboard
+
+
+
len
+
the length of the string str
+
+
Description
Stores the string str in the clipboard initially with index 0. Also reports the copy to the operating system, so that it may -be pasted into other applications. -) -
-
-
+be pasted into other applications.

+

§2.2.3: clipboard_count

-
int clipboard_count(Application_Links *app)
-
-DOC(returns the number of items in the clipboard) +
int clipboard_count( +
Application_Links *app
)
-
-
+
Description
returns the number of items in the clipboard

+

§2.2.4: clipboard_index

-
int clipboard_index(Application_Links *app, int index, char *out, int len)
-
-DOC_PARAM(index, the index of the item to be read) -DOC_PARAM(out, a buffer where the clipboard contents are written or NULL) -DOC_PARAM(len, the length of the out buffer) -DOC_RETURN(returns the size of the item on the clipboard associated with the given index) -DOC -( -There are multiple items on the 4coder clipboard. The most recent copy is always at +
int clipboard_index( +
Application_Links *app,
int index,
char *out,
int len
) +
+
Parameters
+
index
+
the index of the item to be read
+
+
+
out
+
a buffer where the clipboard contents are written or NULL
+
+
+
len
+
the length of the out buffer
+
+
Return
returns the size of the item on the clipboard associated with the given index
Description
There are multiple items on the 4coder clipboard. The most recent copy is always at index 0. The second most recent is at index 1, and so on for all the stored clipboard items. This function reads one of the clipboard items and stores it into the out buffer, if the out buffer is not NULL. This function always returns the size of the clipboard item specified even if the output buffer is NULL. If the output buffer is too small to contain the whole string, it is filled with the first len character of the clipboard contents. The output -string is not null terminated. -) -
-
-
+string is not null terminated.

+

§2.2.5: get_buffer_first

-
Buffer_Summary get_buffer_first(Application_Links *app, unsigned int access)
-
-DOC_PARAM(access, the access flags for the access) -DOC_RETURN(returns the summary of the first buffer in a buffer loop) -DOC -( -Begins a loop across all the buffers. +
Buffer_Summary get_buffer_first( +
Application_Links *app,
unsigned int access
) +
+
Parameters
+
access
+
the access flags for the access
+
+
Return
returns the summary of the first buffer in a buffer loop
Description
Begins a loop across all the buffers. If the buffer returned does not exist, the loop is finished. Buffers -should not be killed durring a buffer loop. -) -DOC_SEE(Access_Flag) -DOC_SEE(get_buffer_next) -
-
-
+should not be killed durring a buffer loop.
See Also

+

§2.2.6: get_buffer_next

-
void get_buffer_next(Application_Links *app, Buffer_Summary *buffer, unsigned int access)
-
-DOC_PARAM(buffer, pointer to the loop buffer originally returned by get_buffer_first) -DOC_PARAM(access, the access flags for the access) -DOC -( -Writes the next buffer into the buffer struct. To get predictable results every +
void get_buffer_next( +
Application_Links *app,
Buffer_Summary *buffer,
unsigned int access
) +
+
Parameters
+
buffer
+
pointer to the loop buffer originally returned by get_buffer_first
+
+
+
access
+
the access flags for the access
+
+
Description
Writes the next buffer into the buffer struct. To get predictable results every call to get_buffer_first and get_buffer_next in the loop should have the same access flags. If the buffer returned does not exist, the loop is finished. Buffers -should not be killed durring a buffer loop. -) -DOC_SEE(Access_Flag) -DOC_SEE(get_buffer_first) -
-
-
+should not be killed durring a buffer loop.
See Also

+

§2.2.7: get_buffer

-
Buffer_Summary get_buffer(Application_Links *app, int buffer_id, unsigned int access)
-
-DOC_PARAM(buffer_id, the id of the buffer to get) -DOC_PARAM(access, the access flags for the access) -DOC_RETURN(returns a summary that describes the indicated buffer if it exists and is accessible) +
Buffer_Summary get_buffer( +
Application_Links *app,
int buffer_id,
unsigned int access
)
+
Parameters
+
buffer_id
+
the id of the buffer to get
-
+
+
access
+
the access flags for the access
+
+
Return
returns a summary that describes the indicated buffer if it exists and is accessible

+

§2.2.8: get_buffer_by_name

-
Buffer_Summary get_buffer_by_name(Application_Links *app, char *name, int len, unsigned int access)
-
-DOC_PARAM(name, the name of the buffer) -DOC_PARAM(len, the length of the name string) -DOC_PARAM(access, the access flags for the access) -DOC_RETURN(returns a summary that describes the indicated buffer if it exists and is accessible) +
Buffer_Summary get_buffer_by_name( +
Application_Links *app,
char *name,
int len,
unsigned int access
)
+
Parameters
+
name
+
the name of the buffer
-
+
+
len
+
the length of the name string
+
+
+
access
+
the access flags for the access
+
+
Return
returns a summary that describes the indicated buffer if it exists and is accessible

+

§2.2.9: buffer_boundary_seek

-
int buffer_boundary_seek(Application_Links *app, Buffer_Summary *buffer, int start_pos, int seek_forward, unsigned int flags)
-
-DOC_PARAM(buffer, the buffer to seek through) -DOC_PARAM(start_pos, the absolute position in the buffer to begin the seek) -DOC_PARAM(seek_forward, non-zero indicates to seek forward otherwise the seek goes backward) -DOC_PARAM(flags, one or more types of boundaries to use for stopping the seek) -DOC_RETURN(returns the position where the seek stops) -DOC_SEE(Seek_Boundary_Flag) +
int buffer_boundary_seek( +
Application_Links *app,
Buffer_Summary *buffer,
int start_pos,
int seek_forward,
unsigned int flags
)
+
Parameters
+
buffer
+
the buffer to seek through
-
+
+
start_pos
+
the absolute position in the buffer to begin the seek
+
+
+
seek_forward
+
non-zero indicates to seek forward otherwise the seek goes backward
+
+
+
flags
+
one or more types of boundaries to use for stopping the seek
+
+
Return
returns the position where the seek stops
See Also

+

§2.2.10: buffer_read_range

-
int buffer_read_range(Application_Links *app, Buffer_Summary *buffer, int start, int end, char *out)
-
-DOC_PARAM(buffer, the buffer to read out of) -DOC_PARAM(start, the beginning of the read range) -DOC_PARAM(end, one past the end of the read range) -DOC_PARAM(out, the output buffer to fill with the result of the read) -DOC_RETURN(returns non-zero on success) -DOC -( -The output buffer might have a capacity of at least (end - start) +
int buffer_read_range( +
Application_Links *app,
Buffer_Summary *buffer,
int start,
int end,
char *out
) +
+
Parameters
+
buffer
+
the buffer to read out of
+
+
+
start
+
the beginning of the read range
+
+
+
end
+
one past the end of the read range
+
+
+
out
+
the output buffer to fill with the result of the read
+
+
Return
returns non-zero on success
Description
The output buffer must have a capacity of at least (end - start) The output is not null terminated. This call fails if the buffer does not exist, or if the read range -is not within the bounds of the buffer. -) -
-
-
+is not within the bounds of the buffer.

+

§2.2.11: buffer_replace_range

-
int buffer_replace_range(Application_Links *app, Buffer_Summary *buffer, int start, int end, char *str, int len)
-
-DOC_PARAM(buffer, the buffer to edit) -DOC_PARAM(start, the start of the range to edit) -DOC_PARAM(end, the end of the range to edit) -DOC_PARAM(str, the string to write into the range) -DOC_PARAM(len, the length of the str string) -DOC_RETURN(returns non-zero if the replacement succeeds) -DOC -( -If this call succeeds it deletes the range from start to end +
int buffer_replace_range( +
Application_Links *app,
Buffer_Summary *buffer,
int start,
int end,
char *str,
int len
) +
+
Parameters
+
buffer
+
the buffer to edit
+
+
+
start
+
the start of the range to edit
+
+
+
end
+
the end of the range to edit
+
+
+
str
+
the string to write into the range
+
+
+
len
+
the length of the str string
+
+
Return
returns non-zero if the replacement succeeds
Description
If this call succeeds it deletes the range from start to end and writes str in the same position. If end == start then this call is equivalent to inserting the string at start. If len == 0 this call is equivalent to deleteing the range from start to end. This call fails if the buffer does not exist, or if the replace -range is not within the bounds of the buffer. -) -
-
-
+range is not within the bounds of the buffer.

+

§2.2.12: buffer_set_setting

-
int buffer_set_setting(Application_Links *app, Buffer_Summary *buffer, int setting, int value)
-
-DOC_PARAM(buffer, the buffer to set a setting on) -DOC_PARAM(setting, one of the Buffer_Setting_ID enum values that identifies the setting to set) -DOC_PARAM(value, the value to set the specified setting to) -DOC_SEE(Buffer_Setting_ID) +
int buffer_set_setting( +
Application_Links *app,
Buffer_Summary *buffer,
int setting,
int value
)
+
Parameters
+
buffer
+
the buffer to set a setting on
-
+
+
setting
+
one of the Buffer_Setting_ID enum values that identifies the setting to set
+
+
+
value
+
the value to set the specified setting to
+
+
See Also

+

§2.2.13: buffer_auto_indent

-
int buffer_auto_indent(Application_Links *app, Buffer_Summary *buffer, int start, int end, int tab_width, unsigned int flags)
-
-DOC_PARAM(buffer, the buffer in which to apply the auto indenting) -DOC_PARAM(start, the position to start the auto indenting) -DOC_PARAM(end, the position to end the auto indenting) -DOC_PARAM(tab_width, the number of spaces to place as a tab) -DOC_PARAM(flags, the auto tab behavior flags) -DOC_RETURN(returns non-zero when the call succeeds) -DOC -( -Applies the built in auto-indentation rule to the code in the range from +
int buffer_auto_indent( +
Application_Links *app,
Buffer_Summary *buffer,
int start,
int end,
int tab_width,
unsigned int flags
) +
+
Parameters
+
buffer
+
the buffer in which to apply the auto indenting
+
+
+
start
+
the position to start the auto indenting
+
+
+
end
+
the position to end the auto indenting
+
+
+
tab_width
+
the number of spaces to place as a tab
+
+
+
flags
+
the auto tab behavior flags
+
+
Return
returns non-zero when the call succeeds
Description
Applies the built in auto-indentation rule to the code in the range from start to end by inserting spaces or tabs at the beginning of the lines. If the buffer does not have lexing enabled or the lexing job has not -completed this function will fail. -) -DOC_SEE(Auto_Tab_Flag) -
-
-
+completed this function will fail.
See Also

+

§2.2.14: create_buffer

-
Buffer_Summary create_buffer(Application_Links *app, char *filename, int filename_len, unsigned int flags)
-
-DOC_PARAM(filename, the name of the file to be opened or created) -DOC_PARAM(filename_len, the length of the filename string) -DOC_PARAM(flags, flags for buffer creation behavior) -DOC_RETURN(returns the summary of the created buffer on success or a NULL buffer otherwise) -DOC -( -Tries to create a new buffer and associate it to the given filename. If such a buffer already +
Buffer_Summary create_buffer( +
Application_Links *app,
char *filename,
int filename_len,
unsigned int flags
) +
+
Parameters
+
filename
+
the name of the file to be opened or created
+
+
+
filename_len
+
the length of the filename string
+
+
+
flags
+
flags for buffer creation behavior
+
+
Return
returns the summary of the created buffer on success or a NULL buffer otherwise
Description
Tries to create a new buffer and associate it to the given filename. If such a buffer already exists the existing buffer is returned in the buffer summary and no new buffer is created. If the buffer does not exist a new buffer is created and named after the given filename. If the filename corresponds to a file on the disk that file is loaded and put into buffer, if -the filename does not correspond to a file on disk the buffer is created empty. -) -DOC_SEE(Buffer_Create_Flag) -
-
-
+the filename does not correspond to a file on disk the buffer is created empty.
See Also

+

§2.2.15: save_buffer

-
int save_buffer(Application_Links *app, Buffer_Summary *buffer, char *filename, int filename_len, unsigned int flags)
-
-DOC_PARAM(buffer, the buffer to save to a file) -DOC_PARAM(filename, the name of the file to save the buffer into) -DOC_PARAM(filename_len, length of the filename string) -DOC_PARAM(flags, not currently used) -DOC_RETURN(returns non-zero if the save succeeds) +
int save_buffer( +
Application_Links *app,
Buffer_Summary *buffer,
char *filename,
int filename_len,
unsigned int flags
)
+
Parameters
+
buffer
+
the buffer to save to a file
-
+
+
filename
+
the name of the file to save the buffer into
+
+
+
filename_len
+
length of the filename string
+
+
+
flags
+
not currently used
+
+
Return
returns non-zero if the save succeeds

+

§2.2.16: kill_buffer

-
int kill_buffer(Application_Links *app, Buffer_Identifier buffer, int view_id, unsigned int flags)
-
-DOC_PARAM(buffer, a buffer identifier specifying the buffer to try to kill) -DOC_PARAM(view_id, the id of view that will contain the "are you sure" dialogue) -DOC_PARAM(flags, flags for buffer kill behavior) -DOC_RETURN(returns non-zero if the kill succeeds) -DOC -( -Tries to kill the idenfied buffer. If the buffer is dirty and the "are you sure" +
int kill_buffer( +
Application_Links *app,
Buffer_Identifier buffer,
int view_id,
unsigned int flags
) +
+
Parameters
+
buffer
+
a buffer identifier specifying the buffer to try to kill
+
+
+
view_id
+
the id of view that will contain the "are you sure" dialogue
+
+
+
flags
+
flags for buffer kill behavior
+
+
Return
returns non-zero if the kill succeeds
Description
Tries to kill the idenfied buffer. If the buffer is dirty and the "are you sure" dialogue needs to be displayed the provided view is used to show the dialogue. -If the view is not open the kill fails. -) -DOC_SEE(Buffer_Kill_Flags) -
-
-
+If the view is not open the kill fails.
See Also

+

§2.2.17: get_view_first

-
View_Summary get_view_first(Application_Links *app, unsigned int access)
-
-DOC_PARAM(access, the access flags for the access) -DOC_RETURN(returns the summary of the first view in a view loop) -DOC -( -Begins a loop across all the open views. +
View_Summary get_view_first( +
Application_Links *app,
unsigned int access
) +
+
Parameters
+
access
+
the access flags for the access
+
+
Return
returns the summary of the first view in a view loop
Description
Begins a loop across all the open views. If the view summary returned is NULL, the loop is finished. -Views should not be closed or opened durring a view loop. -) -DOC_SEE(Access_Flag) -DOC_SEE(get_view_next) -
-
-
+Views should not be closed or opened durring a view loop.
See Also

+

§2.2.18: get_view_next

-
void get_view_next(Application_Links *app, View_Summary *view, unsigned int access)
-
-DOC_PARAM(view, pointer to the loop view originally returned by get_view_first) -DOC_PARAM(access, the access flags for the access) -DOC -( -Writes the next view into the view struct. To get predictable results every +
void get_view_next( +
Application_Links *app,
View_Summary *view,
unsigned int access
) +
+
Parameters
+
view
+
pointer to the loop view originally returned by get_view_first
+
+
+
access
+
the access flags for the access
+
+
Description
Writes the next view into the view struct. To get predictable results every call to get_view_first and get_view_next in the loop should have the same access flags. If the view summary returned is NULL, the loop is finished. -Views should not be closed or opened durring a view loop. -) -DOC_SEE(Access_Flag) -DOC_SEE(get_view_first) -
-
-
+Views should not be closed or opened durring a view loop.
See Also

+

§2.2.19: get_view

-
View_Summary get_view(Application_Links *app, int view_id, unsigned int access)
-
-DOC_PARAM(view_id, the id of the view to get) -DOC_PARAM(access, the access flags for the access) -DOC_RETURN(returns a summary that describes the indicated view if it is open and is accessible) +
View_Summary get_view( +
Application_Links *app,
int view_id,
unsigned int access
)
+
Parameters
+
view_id
+
the id of the view to get
-
+
+
access
+
the access flags for the access
+
+
Return
returns a summary that describes the indicated view if it is open and is accessible

+

§2.2.20: get_active_view

-
View_Summary get_active_view(Application_Links *app, unsigned int access)
-
-DOC_PARAM(access, the access flags for the access) -DOC_RETURN(returns a summary that describes the active view) +
View_Summary get_active_view( +
Application_Links *app,
unsigned int access
)
+
Parameters
+
access
+
the access flags for the access
-
+
Return
returns a summary that describes the active view

+

§2.2.21: view_compute_cursor

-
int view_compute_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, Full_Cursor *cursor_out)
-
-DOC_PARAM(view, the view on which to run the cursor computation) -DOC_PARAM(seek, the seek position) -DOC_PARAM(cursor_out, on success this is filled with result of the seek) -DOC_RETURN(returns non-zero on success) -DOC -( -Computes a full cursor for the given seek position. -) -DOC_SEE(Buffer_Seek) +
int view_compute_cursor( +
Application_Links *app,
View_Summary *view,
Buffer_Seek seek,
Full_Cursor *cursor_out
)
+
Parameters
+
view
+
the view on which to run the cursor computation
-
+
+
seek
+
the seek position
+
+
+
cursor_out
+
on success this is filled with result of the seek
+
+
Return
returns non-zero on success
Description
Computes a full cursor for the given seek position.
See Also

+

§2.2.22: view_set_cursor

-
int view_set_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, int set_preferred_x)
-
-DOC_PARAM(view, the view in which to set the cursor) -DOC_PARAM(seek, the seek position) -DOC_PARAM(set_preferred_x, if true the preferred x is updated to match the new cursor position) -DOC_RETURN(returns non-zero on success) -DOC -( -Sets the the view's cursor position. set_preferred_x should usually be true unless the change in -cursor position is is a vertical motion that tries to keep the cursor in the same column or x position. -) -DOC_SEE(Buffer_Seek) +
int view_set_cursor( +
Application_Links *app,
View_Summary *view,
Buffer_Seek seek,
int set_preferred_x
)
+
Parameters
+
view
+
the view in which to set the cursor
-
+
+
seek
+
the seek position
+
+
+
set_preferred_x
+
if true the preferred x is updated to match the new cursor position
+
+
Return
returns non-zero on success
Description
Sets the the view's cursor position. set_preferred_x should usually be true unless the change in +cursor position is is a vertical motion that tries to keep the cursor in the same column or x position.
See Also

+

§2.2.23: view_set_mark

-
int view_set_mark(Application_Links *app, View_Summary *view, Buffer_Seek seek)
-
-DOC_PARAM(view, the view in which to set the mark) -DOC_PARAM(seek, the seek position) -DOC_RETURN(returns non-zero on success) -DOC -( -Sets the the view's mark position. -) -DOC_SEE(Buffer_Seek) +
int view_set_mark( +
Application_Links *app,
View_Summary *view,
Buffer_Seek seek
)
+
Parameters
+
view
+
the view in which to set the mark
-
+
+
seek
+
the seek position
+
+
Return
returns non-zero on success
Description
Sets the the view's mark position.
See Also

+

§2.2.24: view_set_highlight

-
int view_set_highlight(Application_Links *app, View_Summary *view, int start, int end, int turn_on)
-
-DOC_PARAM(view, the view to set the highlight in) -DOC_PARAM(start, the start of the highlight range) -DOC_PARAM(end, the end of the highlight range) -DOC_PARAM(turn_on, indicates whether the highlight is being turned on or off) -DOC_RETURN(returns non-zero on success) -DOC -( -The highlight is mutually exclusive to the cursor. When the turn_on parameter +
int view_set_highlight( +
Application_Links *app,
View_Summary *view,
int start,
int end,
int turn_on
) +
+
Parameters
+
view
+
the view to set the highlight in
+
+
+
start
+
the start of the highlight range
+
+
+
end
+
the end of the highlight range
+
+
+
turn_on
+
indicates whether the highlight is being turned on or off
+
+
Return
returns non-zero on success
Description
The highlight is mutually exclusive to the cursor. When the turn_on parameter is set to true the highlight will be shown and the cursor will be hidden. After that either setting the with view_set_cursor or calling view_set_highlight and -the turn_on set to false, will switch back to showing the cursor. -) -
-
-
+the turn_on set to false, will switch back to showing the cursor.

+

§2.2.25: view_set_buffer

-
int view_set_buffer(Application_Links *app, View_Summary *view, int buffer_id, unsigned int flags)
-
-DOC_PARAM(view, the view to display the buffer in) -DOC_PARAM(buffer_id, the buffer to show in the view) -DOC_PARAM(flags, set buffer behavior flags) -DOC_RETURN(returns non-zero on success) -DOC -( -On success view_set_buffer sets the specified view's current buffer and -cancels and dialogue shown in the view and displays the file. -) -DOC_SEE(Set_Buffer_Flag) +
int view_set_buffer( +
Application_Links *app,
View_Summary *view,
int buffer_id,
unsigned int flags
)
+
Parameters
+
view
+
the view to display the buffer in
-
+
+
buffer_id
+
the buffer to show in the view
+
+
+
flags
+
set buffer behavior flags
+
+
Return
returns non-zero on success
Description
On success view_set_buffer sets the specified view's current buffer and +cancels and dialogue shown in the view and displays the file.
See Also

+

§2.2.26: view_post_fade

-
int view_post_fade(Application_Links *app, View_Summary *view, float seconds, int start, int end, unsigned int color)
-
-DOC_PARAM(view, the veiw to post a fade effect to) -DOC_PARAM(seconds, the number of seconds the fade effect should last) -DOC_PARAM(start, the first character in the fade range) -DOC_PARAM(end, one after the last character in the fade range) -DOC_PARAM(color, the color to fade from) +
int view_post_fade( +
Application_Links *app,
View_Summary *view,
float seconds,
int start,
int end,
unsigned int color
)
+
Parameters
+
view
+
the veiw to post a fade effect to
-
+
+
seconds
+
the number of seconds the fade effect should last
+
+
+
start
+
the first character in the fade range
+
+
+
end
+
one after the last character in the fade range
+
+
+
color
+
the color to fade from
+
+

+

§2.2.27: view_set_paste_rewrite_

-
void view_set_paste_rewrite_(Application_Links *app, View_Summary *view)
-
No doc generated ~ assume this call is not meant to be public
+
void view_set_paste_rewrite_( +
Application_Links *app,
View_Summary *view
)
-
+No documentation generated for this function, assume it is non-public. +

+

§2.2.28: view_get_paste_rewrite_

-
int view_get_paste_rewrite_(Application_Links *app, View_Summary *view)
-
No doc generated ~ assume this call is not meant to be public
+
int view_get_paste_rewrite_( +
Application_Links *app,
View_Summary *view
)
-
+No documentation generated for this function, assume it is non-public. +

+

§2.2.29: get_user_input

-
User_Input get_user_input(Application_Links *app, unsigned int get_type, unsigned int abort_type)
-
-DOC_PARAM(get_type, input type flag that specifies the types of inputs that should be returned) -DOC_PARAM(abort_type, input type flag that specifies the types of inputs that should cause an abort signal) -DOC_RETURN(returns a User_Input that describes an event passed to the command) -DOC -( -This call preempts the command. The command is resumed if either a get or abort condition +
User_Input get_user_input( +
Application_Links *app,
unsigned int get_type,
unsigned int abort_type
) +
+
Parameters
+
get_type
+
input type flag that specifies the types of inputs that should be returned
+
+
+
abort_type
+
input type flag that specifies the types of inputs that should cause an abort signal
+
+
Return
returns a User_Input that describes an event passed to the command
Description
This call preempts the command. The command is resumed if either a get or abort condition is met, or if another command is executed. If either the abort condition is met or another command is executed an abort signal is returned. If an abort signal is ever returned the command should finish execution without any more calls that preempt the command. -If a get condition is met the user input is returned -) -DOC_SEE(Input_Type_Flag) -DOC_SEE(User_Input) -
-
-
+If a get condition is met the user input is returned
See Also

+

§2.2.30: get_command_input

-
User_Input get_command_input(Application_Links *app)
-
-DOC_RETURN(returns the input that triggered the command in execution.) -DOC_SEE(User_Input) +
User_Input get_command_input( +
Application_Links *app
)
-
-
+
Return
returns the input that triggered the command in execution.
See Also

+

§2.2.31: get_mouse_state

-
Mouse_State get_mouse_state(Application_Links *app)
-
-DOC_RETURN(returns the current mouse state) -DOC_SEE(Mouse_State) +
Mouse_State get_mouse_state( +
Application_Links *app
)
-
-
+
Return
returns the current mouse state
See Also

+

§2.2.32: start_query_bar

-
int start_query_bar(Application_Links *app, Query_Bar *bar, unsigned int flags)
-
-DOC_PARAM(bar, a pointer to the Query_Bar struct that defines the bar's contents) -DOC_PARAM(flags, not currently used) -DOC_RETURN(returns non-zero on success) -DOC -( -The memory pointed to by bar must remain valid until a call to end_query_bar or -until the command returns. -) +
int start_query_bar( +
Application_Links *app,
Query_Bar *bar,
unsigned int flags
)
+
Parameters
+
bar
+
a pointer to the Query_Bar struct that defines the bar's contents
-
+
+
flags
+
not currently used
+
+
Return
returns non-zero on success
Description
The memory pointed to by bar must remain valid until a call to end_query_bar or +until the command returns.

+

§2.2.33: end_query_bar

-
void end_query_bar(Application_Links *app, Query_Bar *bar, unsigned int flags)
-
-DOC_PARAM(bar, a pointer to the Query_Bar struct to end) -DOC_PARAM(flags, not currently used) -DOC -( -bar must be a pointer previously passed to start_query_bar previously in the same command. -) +
void end_query_bar( +
Application_Links *app,
Query_Bar *bar,
unsigned int flags
)
+
Parameters
+
bar
+
a pointer to the Query_Bar struct to end
-
+