![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "control/control.h"
#include "lua/call.h"
#include "lua/modules.h"
#include "lua/types.h"
#include "lua/widget/common.h"
#include "stdarg.h"
Variables | |
dt_lua_widget_type_t | widget_type |
|
static |
References cleanup_widget_sub(), dt_lua_widget_type_t::gui_cleanup, dt_lua_widget_type_t::parent, and widget_type.
Referenced by cleanup_widget_sub(), and widget_gc().
int dt_lua_init_widget | ( | lua_State * | L | ) |
References dt_lua_widget_type_t::associated_type, dt_lua_gtk_wrap, dt_lua_init_gpointer_type, dt_lua_init_widget_box(), dt_lua_init_widget_button(), dt_lua_init_widget_check_button(), dt_lua_init_widget_combobox(), dt_lua_init_widget_container(), dt_lua_init_widget_entry(), dt_lua_init_widget_file_chooser_button(), dt_lua_init_widget_label(), dt_lua_init_widget_section_label(), dt_lua_init_widget_separator(), dt_lua_init_widget_slider(), dt_lua_init_widget_stack(), dt_lua_init_widget_text_view(), dt_lua_module_new(), dt_lua_push_darktable_lib(), dt_lua_type_register, dt_lua_type_setmetafield, dt_lua_widget_tostring_member(), name_member(), new_widget(), reset_member(), sensitive_member(), tooltip_member(), visible_member(), widget_call(), widget_gc(), and widget_type.
luaA_Type dt_lua_init_widget_type_type | ( | lua_State * | L, |
dt_lua_widget_type_t * | widget_type, | ||
const char * | lua_type, | ||
GType | gtk_type | ||
) |
References dt_lua_widget_type_t::associated_type, dt_lua_gtk_wrap, dt_lua_init_gpointer_type_type(), dt_lua_module_entry_new(), dt_lua_type_register_parent_type(), dt_lua_type_setmetafield_type(), get_widget_params(), dt_lua_widget_type_t::gtk_type, dt_lua_widget_type_t::name, dt_lua_widget_type_t::parent, and widget_type.
void dt_lua_widget_bind | ( | lua_State * | L, |
lua_widget | widget | ||
) |
Bind a lua widget, i.e prevent it from being destroyed by the lua GC. after that, the lua object is guaranteed to exist until it is unbound or the associated GtkWidget is destroyed
You want to call that on widget you add to the UI so they stay alive.
References dt_lua_widget_t::widget.
Referenced by _guides_gui_callback(), register_lib(), register_pref_sub(), and register_storage().
push the callback for name "name" on the stack, or nil if not available
References dt_lua_isa, and name.
Referenced by gtk_signal_member(), and reset_member().
void dt_lua_widget_register_gtk_callback_type | ( | lua_State * | L, |
luaA_Type | type_id, | ||
const char * | signal_name, | ||
const char * | lua_name, | ||
GCallback | callback | ||
) |
References dt_lua_type_register_type(), and gtk_signal_member().
pop a function from the top of the stack, register as a callback named "name" for the object (not type) at index index
References dt_lua_isa, and name.
Referenced by container_init(), gtk_signal_member(), register_pref_sub(), and reset_member().
int dt_lua_widget_tostring_member | ( | lua_State * | L | ) |
References dt_lua_widget_t::widget.
Referenced by dt_lua_init_widget().
int dt_lua_widget_trigger_callback | ( | lua_State * | L | ) |
triggers a callback for the object, first param : the lua_storage to trigger second param : the name of the event to fire other params : passed to the callback returns nothing, might raise exceptions
this function is meant to be called via dt_lua_async_call if needed
References dt_lua_redraw_screen(), dt_lua_treated_pcall(), and name.
Referenced by changed_callback(), clicked_callback(), clicked_callback(), container_reset(), file_set_callback(), gui_reset_wrapper(), gui_reset_wrapper(), on_child_added(), on_child_removed(), reset_widget_lua(), response_callback_lua(), and update_widget_lua().
void dt_lua_widget_unbind | ( | lua_State * | L, |
lua_widget | widget | ||
) |
Referenced by widget_gc().
|
static |
References dt_lua_widget_type_t::alloc_size, dt_lua_widget_type_t::associated_type, dt_lua_type_gpointer_alias_type(), dt_lua_widget_type_t::gtk_type, init_widget_sub(), dt_lua_widget_type_t::name, on_destroy(), dt_lua_widget_t::type, dt_lua_widget_t::widget, and widget_type.
Referenced by dt_lua_init_widget_type_type().
|
static |
References dt_lua_widget_get_callback(), and dt_lua_widget_set_callback().
Referenced by dt_lua_widget_register_gtk_callback_type().
|
static |
References dt_lua_widget_type_t::gui_init, init_widget_sub(), dt_lua_widget_type_t::parent, and widget_type.
Referenced by get_widget_params(), and init_widget_sub().
|
static |
References dt_lua_widget_t::widget.
Referenced by dt_lua_init_widget().
|
static |
References dt_lua_module_entry_push().
Referenced by dt_lua_init_widget().
|
static |
Referenced by get_widget_params().
|
static |
Referenced by widget_gc().
|
static |
References dt_lua_widget_get_callback(), and dt_lua_widget_set_callback().
Referenced by dt_lua_init_widget().
|
static |
References dt_lua_widget_t::widget.
Referenced by dt_lua_init_widget().
|
static |
References dt_lua_widget_t::widget.
Referenced by dt_lua_init_widget().
|
static |
References FALSE, TRUE, and dt_lua_widget_t::widget.
Referenced by dt_lua_init_widget().
int widget_call | ( | lua_State * | L | ) |
Referenced by dt_lua_init_widget().
|
static |
References cleanup_widget_sub(), dt_lua_widget_unbind(), dt_lua_widget_type_t::name, on_destroy_wrapper(), dt_lua_widget_t::type, and dt_lua_widget_t::widget.
Referenced by dt_lua_init_widget().
dt_lua_widget_type_t widget_type |
TODO use name to save/restore states as pref like other widgets have a way to save presets luastorage can't save presets dt_ui_section_label : make new lua widget - Done widget names : implement for CSS ? - Done
Referenced by cleanup_widget_sub(), dt_lua_init_widget(), dt_lua_init_widget_type_type(), get_widget_params(), and init_widget_sub().