rofi 2.1.0
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()

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

◆ combi_get_icon()

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

Definition at line 288 of file combi.c.

References combi_get_icon(), CombiModePrivateData::lengths, CombiMode::mode, mode_get_icon(), mode_get_private_data(), CombiModePrivateData::num_switchers, CombiModePrivateData::starts, and CombiModePrivateData::switchers.

Referenced by combi_get_icon().

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

◆ combi_mgrv()

◆ combi_mode_destroy()

void combi_mode_destroy ( Mode * sw)
static

Definition at line 131 of file combi.c.

References combi_mode_destroy(), CombiModePrivateData::lengths, CombiMode::mode, mode_destroy(), mode_get_private_data(), mode_set_private_data(), CombiModePrivateData::num_switchers, CombiModePrivateData::starts, and CombiModePrivateData::switchers.

Referenced by combi_mode_destroy().

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

◆ combi_mode_get_num_entries()

unsigned int combi_mode_get_num_entries ( const Mode * sw)
static

◆ combi_mode_init()

◆ combi_mode_match()

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

Definition at line 200 of file combi.c.

References combi_mode_match(), CombiMode::disable, CombiModePrivateData::lengths, CombiMode::mode, mode_get_private_data(), mode_token_match(), CombiModePrivateData::num_switchers, CombiModePrivateData::starts, and CombiModePrivateData::switchers.

Referenced by combi_mode_match().

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

◆ combi_mode_parse_switchers()

void combi_mode_parse_switchers ( Mode * sw)
static

◆ combi_mode_result()

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

◆ combi_preprocess_input()

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

Definition at line 301 of file combi.c.

References combi_preprocess_input(), CombiMode::disable, CombiMode::mode, mode_get_name(), mode_get_private_data(), mode_preprocess_input(), CombiModePrivateData::num_switchers, CombiModePrivateData::switchers, and utf8_strncmp().

Referenced by combi_preprocess_input().

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