Scroom 0.14-49-gb7ae7a6d
Loading...
Searching...
No Matches
Scroom::Metadata::anonymous_namespace{showmetadata.cc} Namespace Reference

Classes

struct  MetaDataWindowData
 

Functions

GtkWidget * gtk_label_with_markup (const char *text)
 
GtkWidget * addNewKeyToGrid (const GtkWidget *grid, GtkWidget *previousKey, const std::string &keyText)
 
GtkWidget * addNewValueToGrid (const GtkWidget *grid, const std::string &valueText, GtkWidget *key)
 
void addKeyAndValueToSizeGroup (GtkWidget *key, GtkWidget *value)
 
void on_metadata_destroyed (GtkWidget *, gpointer user_data)
 

Function Documentation

◆ addKeyAndValueToSizeGroup()

void Scroom::Metadata::anonymous_namespace{showmetadata.cc}::addKeyAndValueToSizeGroup ( GtkWidget *  key,
GtkWidget *  value 
)
55 {
56 auto* group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
57 gtk_size_group_add_widget(group, key);
58 gtk_size_group_add_widget(group, value);
59 g_object_unref(group);
60 }
const uint8_t value
Definition blob-tests.cc:114

Referenced by addKeyAndValueToSizeGroup().

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

◆ addNewKeyToGrid()

GtkWidget * Scroom::Metadata::anonymous_namespace{showmetadata.cc}::addNewKeyToGrid ( const GtkWidget *  grid,
GtkWidget *  previousKey,
const std::string &  keyText 
)
34 {
35 GtkWidget* key = gtk_label_with_markup(keyText.c_str());
36 if(previousKey)
37 {
38 gtk_grid_attach_next_to(GTK_GRID(grid), key, previousKey, GTK_POS_BOTTOM, 3, 3);
39 }
40 else
41 {
42 gtk_grid_attach(GTK_GRID(grid), key, 0, GTK_POS_RIGHT, 3, 3);
43 }
44 return key;
45 }
GtkWidget * gtk_label_with_markup(const char *text)
Definition showmetadata.cc:26

Referenced by addNewKeyToGrid().

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

◆ addNewValueToGrid()

GtkWidget * Scroom::Metadata::anonymous_namespace{showmetadata.cc}::addNewValueToGrid ( const GtkWidget *  grid,
const std::string &  valueText,
GtkWidget *  key 
)
48 {
49 GtkWidget* value = gtk_label_new(valueText.c_str());
50 gtk_grid_attach_next_to(GTK_GRID(grid), value, key, GTK_POS_RIGHT, 3, 3);
51 return value;
52 }

Referenced by addNewValueToGrid().

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

◆ gtk_label_with_markup()

GtkWidget * Scroom::Metadata::anonymous_namespace{showmetadata.cc}::gtk_label_with_markup ( const char *  text)
27 {
28 GtkWidget* label = gtk_label_new(text);
29 gtk_label_set_use_markup(GTK_LABEL(label), true);
30 return label;
31 }

Referenced by addNewKeyToGrid(), and gtk_label_with_markup().

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

◆ on_metadata_destroyed()

void Scroom::Metadata::anonymous_namespace{showmetadata.cc}::on_metadata_destroyed ( GtkWidget *  ,
gpointer  user_data 
)
63 {
64 delete static_cast<const MetaDataWindowData*>(user_data); // NOLINT(cppcoreguidelines-owning-memory)
65 }

Referenced by on_metadata_destroyed().

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