rofi  1.5.4
combi.c File Reference
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <rofi.h>
#include "settings.h"
#include "helper.h"
#include <dialogs/dialogs.h>
#include <pango/pango.h>
#include "mode-private.h"
#include <theme.h>
Include dependency graph for combi.c:

Go to the source code of this file.

Data Structures

struct  CombiMode
 
struct  CombiModePrivateData
 

Macros

#define G_LOG_DOMAIN   "Dialogs.Combi"
 

Functions

static void combi_mode_parse_switchers (Mode *sw)
 
static int combi_mode_init (Mode *sw)
 
static unsigned int combi_mode_get_num_entries (const Mode *sw)
 
static void combi_mode_destroy (Mode *sw)
 
static ModeMode combi_mode_result (Mode *sw, int mretv, char **input, unsigned int selected_line)
 
static int combi_mode_match (const Mode *sw, rofi_int_matcher **tokens, unsigned int index)
 
static char * combi_mgrv (const Mode *sw, unsigned int selected_line, int *state, GList **attr_list, int get_entry)
 
static char * combi_get_completion (const Mode *sw, unsigned int index)
 
static cairo_surface_t * combi_get_icon (const Mode *sw, unsigned int index, int height)
 
static char * combi_preprocess_input (Mode *sw, const char *input)
 

Variables

Mode combi_mode
 

Macro Definition Documentation

◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN   "Dialogs.Combi"

The log domain of this dialog.

Definition at line 30 of file combi.c.

Function Documentation

◆ combi_get_completion()

static char* combi_get_completion ( const Mode sw,
unsigned int  index 
)
static

◆ combi_get_icon()

static cairo_surface_t* combi_get_icon ( const Mode sw,
unsigned int  index,
int  height 
)
static

◆ combi_mgrv()

◆ combi_mode_destroy()

static void combi_mode_destroy ( Mode sw)
static

◆ combi_mode_get_num_entries()

static unsigned int combi_mode_get_num_entries ( const Mode sw)
static

◆ combi_mode_init()

static int combi_mode_init ( Mode sw)
static

Definition at line 101 of file combi.c.

References combi_mode_parse_switchers(), mode_get_num_entries(), mode_get_private_data(), mode_init(), and mode_set_private_data().

Here is the call graph for this function:

◆ combi_mode_match()

static int combi_mode_match ( const Mode sw,
rofi_int_matcher **  tokens,
unsigned int  index 
)
static

◆ combi_mode_parse_switchers()

static void combi_mode_parse_switchers ( Mode sw)
static

Definition at line 64 of file combi.c.

References Settings::combi_modi, config, CombiMode::disable, CombiMode::mode, mode_get_private_data(), CombiModePrivateData::num_switchers, rofi_collect_modi_search(), script_switcher_parse_setup(), and CombiModePrivateData::switchers.

Referenced by combi_mode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combi_mode_result()

static ModeMode combi_mode_result ( Mode sw,
int  mretv,
char **  input,
unsigned int  selected_line 
)
static

◆ combi_preprocess_input()

static char* combi_preprocess_input ( Mode sw,
const char *  input 
)
static