rofi 1.7.5
combi.c File Reference
#include "helper.h"
#include "settings.h"
#include <rofi.h>
#include <stdio.h>
#include <stdlib.h>
#include "mode-private.h"
#include "widgets/textbox.h"
#include <modes/modes.h>
#include <pango/pango.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   "Modes.Combi"
 

Functions

static void combi_mode_parse_switchers (Mode *sw)
 
static unsigned int combi_mode_get_num_entries (const Mode *sw)
 
static int combi_mode_init (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, unsigned 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   "Modes.Combi"

The log domain of this dialog.

Definition at line 29 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,
unsigned 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

Definition at line 100 of file combi.c.

References CombiModePrivateData::lengths, CombiMode::mode, mode_get_num_entries(), mode_get_private_data(), CombiModePrivateData::num_switchers, CombiModePrivateData::starts, 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_init()

◆ 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 62 of file combi.c.

References Settings::combi_modes, config, CombiMode::disable, CombiMode::mode, mode_get_private_data(), rofi_mode::name, CombiModePrivateData::num_switchers, rofi_collect_modes_search(), script_mode_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