rofi  1.5.1
container.c File Reference
#include <config.h>
#include <stdio.h>
#include "widgets/widget.h"
#include "widgets/widget-internal.h"
#include "widgets/container.h"
#include "theme.h"
Include dependency graph for container.c:

Go to the source code of this file.

Data Structures

struct  _window
 

Macros

#define G_LOG_DOMAIN   "Widgets.Window"
 

Functions

static void container_update (widget *wid)
 
static int container_get_desired_height (widget *widget)
 
static void container_draw (widget *wid, cairo_t *draw)
 
static void container_free (widget *wid)
 
void container_add (container *container, widget *child)
 
static void container_resize (widget *widget, short w, short h)
 
static widgetcontainer_find_mouse_target (widget *wid, WidgetType type, gint x, gint y)
 
containercontainer_create (widget *parent, const char *name)
 

Macro Definition Documentation

◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN   "Widgets.Window"

Definition at line 28 of file container.c.

Function Documentation

◆ container_draw()

static void container_draw ( widget wid,
cairo_t *  draw 
)
static

Definition at line 56 of file container.c.

References _window::child, and widget_draw().

Referenced by container_create().

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

◆ container_find_mouse_target()

static widget* container_find_mouse_target ( widget wid,
WidgetType  type,
gint  x,
gint  y 
)
static

Definition at line 91 of file container.c.

References _window::child, widget_find_mouse_target(), widget_intersect(), _widget::x, and _widget::y.

Referenced by container_create().

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

◆ container_free()

static void container_free ( widget wid)
static

Definition at line 63 of file container.c.

References _window::child, and widget_free().

Referenced by container_create().

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

◆ container_get_desired_height()

static int container_get_desired_height ( widget widget)
static

Definition at line 45 of file container.c.

References _window::child, widget_get_desired_height(), and widget_padding_get_padding_height().

Referenced by container_create().

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

◆ container_resize()

static void container_resize ( widget widget,
short  w,
short  h 
)
static

Definition at line 81 of file container.c.

References _widget::h, _widget::w, _window::widget, and widget_update().

Referenced by container_create().

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

◆ container_update()

static void container_update ( widget wid)
static

Definition at line 117 of file container.c.

References _window::child, _widget::enabled, WIDGET, widget_move(), widget_padding_get_left(), widget_padding_get_remaining_height(), widget_padding_get_remaining_width(), widget_padding_get_top(), and widget_resize().

Referenced by container_create().

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