static view_t * view_new (ply_boot_splash_plugin_t *plugin, ply_pixel_display_t *display) { view_t *view; view = calloc (1, sizeof (view_t)); view->plugin = plugin; view->display = display; view->entry = ply_entry_new (plugin->animation_dir); view->end_animation = ply_animation_new (plugin->animation_dir, "throbber-"); view->progress_animation = ply_progress_animation_new (plugin->animation_dir, "progress-"); ply_progress_animation_set_transition (view->progress_animation, plugin->transition, plugin->transition_duration); view->label = ply_label_new (); view->message_label = ply_label_new (); ply_label_set_text (view->message_label, ""); ply_label_show (view->message_label, view->display, 10, 10); return view; }
ply_entry_t * ply_entry_new (const char *image_dir) { ply_entry_t *entry; char *image_path; assert (image_dir != NULL); entry = calloc (1, sizeof (ply_entry_t)); image_path = NULL; asprintf (&image_path, "%s/entry.png", image_dir); entry->text_field_image = ply_image_new (image_path); free (image_path); image_path = NULL; asprintf (&image_path, "%s/bullet.png", image_dir); entry->bullet_image = ply_image_new (image_path); free (image_path); entry->label = ply_label_new (); entry->number_of_bullets = 0; entry->text = strdup(""); entry->is_hidden = true; entry->is_password = true; return entry; }
static view_t * view_new (ply_boot_splash_plugin_t *plugin, ply_pixel_display_t *display) { view_t *view; view = calloc (1, sizeof(view_t)); view->plugin = plugin; view->display = display; view->entry = ply_entry_new (plugin->image_dir); view->stars = ply_list_new (); view->label = ply_label_new (); view->message_label = ply_label_new (); return view; }
static view_t * view_new (ply_boot_splash_plugin_t *plugin, ply_pixel_display_t *display) { view_t *view; view = calloc (1, sizeof(view_t)); view->plugin = plugin; view->display = display; view->entry = ply_entry_new (plugin->image_dir); view->throbber = ply_throbber_new (plugin->image_dir, "throbber-"); view->progress_bar = ply_progress_bar_new (); view->label = ply_label_new (); view->message_label = ply_label_new (); return view; }