mirror of
https://github.com/davatorium/rofi.git
synced 2024-12-16 14:17:07 -05:00
[Doc] Fix some missing/wrong doxygen headers.
This commit is contained in:
parent
e409322faf
commit
47f37f2bbc
7 changed files with 59 additions and 34 deletions
|
@ -34,6 +34,10 @@ G_BEGIN_DECLS
|
|||
/** ABI version to check if loaded plugin is compatible. */
|
||||
#define ABI_VERSION 7u
|
||||
|
||||
/**
|
||||
* Indicator what type of mode this is.
|
||||
* For now it can be the classic switcher, or also implement a completer.
|
||||
*/
|
||||
typedef enum {
|
||||
/** Mode type is not set */
|
||||
MODE_TYPE_UNSET = 0b0000,
|
||||
|
@ -160,28 +164,29 @@ typedef char *(*_mode_preprocess_input)(Mode *sw, const char *input);
|
|||
*/
|
||||
typedef char *(*_mode_get_message)(const Mode *sw);
|
||||
|
||||
|
||||
/**
|
||||
* Create a new instance of this mode.
|
||||
* Free (free) result after use, after using mode_destroy.
|
||||
*
|
||||
* @returns Instantiate a new instance of this mode.
|
||||
*/
|
||||
typedef Mode *(*_mode_create)( void );
|
||||
typedef Mode *(*_mode_create)(void);
|
||||
|
||||
/**
|
||||
* @param sw The #Mode pointer
|
||||
* @param menu_retv The return value
|
||||
* @param input The input string
|
||||
* @param selected_line The selected line
|
||||
* @param the path that was completed
|
||||
* @param path the path that was completed
|
||||
*
|
||||
* Handle the user accepting an entry in completion mode.
|
||||
*
|
||||
* @returns the next action to take
|
||||
*/
|
||||
typedef ModeMode (*_mode_completer_result)(Mode *sw, int menu_retv, char **input,
|
||||
unsigned int selected_line, char **path);
|
||||
typedef ModeMode (*_mode_completer_result)(Mode *sw, int menu_retv,
|
||||
char **input,
|
||||
unsigned int selected_line,
|
||||
char **path);
|
||||
/**
|
||||
* Structure defining a switcher.
|
||||
* It consists of a name, callback and if enabled
|
||||
|
|
|
@ -256,7 +256,7 @@ char *mode_get_message(const Mode *mode);
|
|||
Mode *mode_create(const Mode *mode);
|
||||
|
||||
/**
|
||||
* @param mode The mode to query
|
||||
* @param sw The mode to query
|
||||
* @param menu_retv The menu return value.
|
||||
* @param input Pointer to the user input string. [in][out]
|
||||
* @param selected_line the line selected by the user.
|
||||
|
@ -270,7 +270,7 @@ ModeMode mode_completer_result(Mode *sw, int menu_retv, char **input,
|
|||
unsigned int selected_line, char **path);
|
||||
|
||||
/**
|
||||
* @param mode The mode to query.
|
||||
* @param sw The mode to query.
|
||||
*
|
||||
* Check if mode is a valid completer.
|
||||
*
|
||||
|
|
|
@ -104,6 +104,12 @@ void rofi_quit_main_loop(void);
|
|||
*/
|
||||
Mode *rofi_collect_modes_search(const char *name);
|
||||
|
||||
/**
|
||||
* Query the configure file completer.
|
||||
*
|
||||
* @returns the Mode that can be used for file completion or NULL when not
|
||||
* found.
|
||||
*/
|
||||
const Mode *rofi_get_completer(void);
|
||||
/** Reset terminal */
|
||||
#define color_reset "\033[0m"
|
||||
|
|
|
@ -356,6 +356,17 @@ void rofi_view_ellipsize_listview(RofiViewState *state,
|
|||
*/
|
||||
gboolean rofi_set_im_window_pos(int new_x, int new_y);
|
||||
|
||||
/**
|
||||
* @param wid to test.
|
||||
* @param action the action done.
|
||||
* @param x [unused]
|
||||
* @param y [unsued]
|
||||
* @param user_data
|
||||
*
|
||||
* textbux widget trigger action function.
|
||||
*
|
||||
* @return the result.
|
||||
*/
|
||||
WidgetTriggerActionResult textbox_button_trigger_action(
|
||||
widget *wid, MouseBindingMouseDefaultAction action, G_GNUC_UNUSED gint x,
|
||||
G_GNUC_UNUSED gint y, G_GNUC_UNUSED void *user_data);
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
#include "rofi-icon-fetcher.h"
|
||||
|
||||
#define FILEBROWSER_CACHE_FILE "rofi3.filebrowsercache"
|
||||
/** The default program used to open the file. */
|
||||
#define DEFAULT_OPEN "xdg-open"
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
@ -712,8 +713,7 @@ ModeMode file_browser_mode_completer(Mode *sw, int mretv, char **input,
|
|||
}
|
||||
#endif
|
||||
|
||||
Mode file_browser_mode = {
|
||||
.display_name = NULL,
|
||||
Mode file_browser_mode = {.display_name = NULL,
|
||||
.abi_version = ABI_VERSION,
|
||||
.name = "filebrowser",
|
||||
.cfg_name_key = "display-filebrowser",
|
||||
|
@ -731,5 +731,4 @@ Mode file_browser_mode = {
|
|||
._completer_result = file_browser_mode_completer,
|
||||
.private_data = NULL,
|
||||
.free = NULL,
|
||||
.type = MODE_TYPE_SWITCHER|MODE_TYPE_COMPLETER
|
||||
};
|
||||
.type = MODE_TYPE_SWITCHER | MODE_TYPE_COMPLETER};
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
|
||||
#include "rofi-icon-fetcher.h"
|
||||
|
||||
/** The default program used to open the file. */
|
||||
#define DEFAULT_OPEN "xdg-open"
|
||||
|
||||
/**
|
||||
|
|
|
@ -155,8 +155,11 @@ struct {
|
|||
X11CursorType cursor_type;
|
||||
/** Entry box */
|
||||
gboolean entry_history_enable;
|
||||
/** Array with history entriy input. */
|
||||
EntryHistoryIndex *entry_history;
|
||||
/** Length of the array */
|
||||
gssize entry_history_length;
|
||||
/** The current index being viewed. */
|
||||
gssize entry_history_index;
|
||||
} CacheState = {.main_window = XCB_WINDOW_NONE,
|
||||
.fake_bg = NULL,
|
||||
|
|
Loading…
Reference in a new issue