#include "launcher.h"
#include <limits.h>
#include <libbase/libbase.h>
#include "toolkit/toolkit.h"
#include "conf/decode.h"
#include "conf/plist.h"
|
static void | _wlmaker_launcher_update_overlay (wlmaker_launcher_t *launcher_ptr) |
|
static struct wlr_buffer * | _wlmaker_launcher_create_overlay_buffer (wlmaker_launcher_t *launcher_ptr) |
|
static void | _wlmaker_launcher_element_destroy (wlmtk_element_t *element_ptr) |
|
static bool | _wlmaker_launcher_pointer_button (wlmtk_element_t *element_ptr, const wlmtk_button_event_t *button_event_ptr) |
|
static void | _wlmaker_launcher_start (wlmaker_launcher_t *launcher_ptr) |
|
static void | _wlmaker_launcher_handle_terminated (void *userdata_ptr, wlmaker_subprocess_handle_t *subprocess_handle_ptr, int state, int code) |
|
static void | _wlmaker_launcher_handle_window_created (void *userdata_ptr, wlmaker_subprocess_handle_t *subprocess_handle_ptr, wlmtk_window_t *window_ptr) |
|
static void | _wlmaker_launcher_handle_window_mapped (void *userdata_ptr, wlmaker_subprocess_handle_t *subprocess_handle_ptr, wlmtk_window_t *window_ptr) |
|
static void | _wlmaker_launcher_handle_window_unmapped (void *userdata_ptr, wlmaker_subprocess_handle_t *subprocess_handle_ptr, wlmtk_window_t *window_ptr) |
|
static void | _wlmaker_launcher_handle_window_destroyed (void *userdata_ptr, wlmaker_subprocess_handle_t *subprocess_handle_ptr, wlmtk_window_t *window_ptr) |
|
wlmaker_launcher_t * | wlmaker_launcher_create_from_plist (const wlmtk_tile_style_t *style_ptr, wlmcfg_dict_t *dict_ptr, wlmaker_subprocess_monitor_t *monitor_ptr, wlmtk_env_t *env_ptr) |
|
void | wlmaker_launcher_destroy (wlmaker_launcher_t *launcher_ptr) |
|
wlmtk_tile_t * | wlmaker_launcher_tile (wlmaker_launcher_t *launcher_ptr) |
|
static void | test_create_from_plist (bs_test_t *test_ptr) |
|
◆ _wlmaker_launcher_create_overlay_buffer()
struct wlr_buffer * _wlmaker_launcher_create_overlay_buffer |
( |
wlmaker_launcher_t * | launcher_ptr | ) |
|
|
static |
Creates an overlay wlr_buffer.
◆ _wlmaker_launcher_element_destroy()
◆ _wlmaker_launcher_handle_terminated()
void _wlmaker_launcher_handle_terminated |
( |
void * | userdata_ptr, |
|
|
wlmaker_subprocess_handle_t * | subprocess_handle_ptr, |
|
|
int | exit_status, |
|
|
int | signal_number ) |
|
static |
Callback handler for when the registered subprocess terminates.
- Parameters
-
◆ _wlmaker_launcher_handle_window_created()
Callback for then a window from the launched subprocess is created.
Registers the windows as "created", and will then redraw the launcher tile to reflect potential status changes.
- Parameters
-
◆ _wlmaker_launcher_handle_window_destroyed()
Callback for then a window from the launched subprocess is destroyed.
Removes the window from the set of "created" windows, and will then redraw the launcher tile to reflect potential status changes.
- Parameters
-
◆ _wlmaker_launcher_handle_window_mapped()
Callback for then a window from the launched subprocess is mapped.
Registers the window as "mapped", and will then redraw the launcher tile to reflect potential status changes.
- Parameters
-
◆ _wlmaker_launcher_handle_window_unmapped()
Callback for then a window from the launched subprocess is unmapped.
Removes the window from the set of "mapped" windows, and will then redraw the launcher tile to reflect potential status changes.
- Parameters
-
◆ _wlmaker_launcher_pointer_button()
◆ _wlmaker_launcher_start()
Starts the application, called when the launcher is clicked.
- Parameters
-
◆ _wlmaker_launcher_update_overlay()
Redraws the overlay element.
◆ test_create_from_plist()
void test_create_from_plist |
( |
bs_test_t * | test_ptr | ) |
|
|
static |
◆ wlmaker_launcher_create_from_plist()
Creates an application launcher, configured from a plist dict.
- Parameters
-
style_ptr | |
dict_ptr | |
monitor_ptr | |
env_ptr | |
- Returns
- Pointer to the launcher handle or NULL on error.
◆ wlmaker_launcher_destroy()
Destroys the application launcher.
- Parameters
-
◆ wlmaker_launcher_tile()
- Returns
- A pointer to the wlmtk_tile_t superclass of
launcher_ptr
.
◆ _wlmaker_launcher_element_vmt
Initial value:= {
}
static bool _wlmaker_launcher_pointer_button(wlmtk_element_t *element_ptr, const wlmtk_button_event_t *button_event_ptr)
Definition launcher.c:335
static void _wlmaker_launcher_element_destroy(wlmtk_element_t *element_ptr)
Definition launcher.c:317
The launcher's extension to wlmtk_element_t virtual method table.
◆ _wlmaker_launcher_plist_desc
Initial value:= {
}
#define WLMCFG_DESC_STRING(_key, _required, _base, _field, _default)
Definition decode.h:215
#define WLMCFG_DESC_SENTINEL()
Definition decode.h:156
Plist descroptor for a launcher.
◆ lookup_paths
const char* lookup_paths[] |
|
static |
Initial value:= {
"/usr/share/icons/wlmaker",
"/usr/local/share/icons/wlmaker",
NULL
}
Lookup paths for icons.
◆ wlmaker_launcher_test_cases
const bs_test_case_t wlmaker_launcher_test_cases[] |
Initial value:= {
{ 0, NULL, NULL }
}
static void test_create_from_plist(bs_test_t *test_ptr)
Definition launcher.c:545
Unit tests.