Skip to content

Instantly share code, notes, and snippets.

@aljelly
Created January 20, 2020 11:08
Show Gist options
  • Save aljelly/ae0cf3fb05b40939801609762b4627f6 to your computer and use it in GitHub Desktop.
Save aljelly/ae0cf3fb05b40939801609762b4627f6 to your computer and use it in GitHub Desktop.
require_gobject("Gtk")
require_gobject("Pango")
require_gobject("GObject")
require_gobject("Gee")
require_gobject("xlib")
require_gobject("cairo")
require_gobject("Gdk")
require_gobject("Gio")
require_gobject("Atk")
require_gobject("GdkPixbuf")
require_gobject("GModule")
require_gobject("GLib")
lib LibGranite
###########################################
## Constants
###########################################
BADGE = "badge" # : UInt8*
CATEGORY_EXPANDER = "category-expander" # : UInt8*
CONTENT_VIEW = "content-view" # : UInt8*
CONTENT_VIEW_WINDOW = "content-view-window" # : UInt8*
COMPOSITED = "composited" # : UInt8*
DECORATED_WINDOW = "decorated-window" # : UInt8*
H1_TEXT = "h1" # : UInt8*
H2_TEXT = "h2" # : UInt8*
H3_TEXT = "h3" # : UInt8*
HELP_BUTTON = "help_button" # : UInt8*
OVERLAY_BAR = "overlay-bar" # : UInt8*
POPOVER = "popover" # : UInt8*
POPOVER_BG = "popover_bg" # : UInt8*
SOURCE_LIST = "source-list" # : UInt8*
THIN_PANE_SEPARATOR = "sidebar-pane-separator" # : UInt8*
TITLE_TEXT = "title" # : UInt8*
STYLE_CLASS_ACCENT = "accent" # : UInt8*
STYLE_CLASS_AVATAR = "avatar" # : UInt8*
STYLE_CLASS_BACK_BUTTON = "back-button" # : UInt8*
STYLE_CLASS_BADGE = "badge" # : UInt8*
STYLE_CLASS_CARD = "card" # : UInt8*
STYLE_CLASS_CATEGORY_EXPANDER = "category-expander" # : UInt8*
STYLE_CLASS_CHECKERBOARD = "checkerboard" # : UInt8*
STYLE_CLASS_H1_LABEL = "h1" # : UInt8*
STYLE_CLASS_H2_LABEL = "h2" # : UInt8*
STYLE_CLASS_H3_LABEL = "h3" # : UInt8*
STYLE_CLASS_H4_LABEL = "h4" # : UInt8*
STYLE_CLASS_MODE_SWITCH = "mode-switch" # : UInt8*
STYLE_CLASS_OVERLAY_BAR = "overlay-bar" # : UInt8*
STYLE_CLASS_PRIMARY_LABEL = "primary" # : UInt8*
STYLE_CLASS_SEEKBAR = "seek-bar" # : UInt8*
STYLE_CLASS_SOURCE_LIST = "source-list" # : UInt8*
STYLE_CLASS_STORAGEBAR = "storage-bar" # : UInt8*
STYLE_CLASS_TERMINAL = "terminal" # : UInt8*
STYLE_CLASS_WELCOME = "welcome" # : UInt8*
###########################################
## Functions
###########################################
fun date_time_get_default_time_format = granite_date_time_get_default_time_format(is_12h : Bool, with_second : Bool) : UInt8*
fun date_time_get_relative_datetime = granite_date_time_get_relative_datetime(date_time : LibGLib::DateTime*) : UInt8*
fun date_time_is_same_day = granite_date_time_is_same_day(day1 : LibGLib::DateTime*, day2 : LibGLib::DateTime*) : Bool
fun date_time_get_default_date_format = granite_date_time_get_default_date_format(with_weekday : Bool, with_day : Bool, with_year : Bool) : UInt8*
fun date_time_seconds_to_time = granite_date_time_seconds_to_time(seconds : Int32) : UInt8*
fun widgets_utils_set_color_primary = granite_widgets_utils_set_color_primary(window : LibGtk::Widget*, color : LibGdk::RGBA, priority : Int32) : LibGtk::CssProvider*
fun widgets_utils_set_theming = granite_widgets_utils_set_theming(widget : LibGtk::Widget*, stylesheet : UInt8*, class_name : UInt8*, priority : Int32) : LibGtk::CssProvider*
fun widgets_utils_set_theming_for_screen = granite_widgets_utils_set_theming_for_screen(screen : LibGdk::Screen*, stylesheet : UInt8*, priority : Int32) : LibGtk::CssProvider*
fun widgets_utils_get_css_provider = granite_widgets_utils_get_css_provider(stylesheet : UInt8*) : LibGtk::CssProvider*
fun widgets_utils_apply_text_style_to_label = granite_widgets_utils_apply_text_style_to_label(text_style : LibGranite::TextStyle, label : LibGtk::Label*) : Void
fun widgets_utils_get_default_close_button_position = granite_widgets_utils_get_default_close_button_position(position : LibGranite::CloseButtonPosition*) : Bool
fun widgets_utils_get_button_layout_schema = granite_widgets_utils_get_button_layout_schema() : UInt8*
fun widgets_storage_bar_item_description_get_class = granite_widgets_storage_bar_item_description_get_class(description : LibGranite::WidgetsStorageBarItemDescription) : UInt8*
fun widgets_storage_bar_item_description_get_name = granite_widgets_storage_bar_item_description_get_name(description : LibGranite::WidgetsStorageBarItemDescription) : UInt8*
fun text_style_get_stylesheet = granite_text_style_get_stylesheet(style_class : UInt8**) : UInt8*
###########################################
## Objects
###########################################
struct DrawingColor # object
parent_instance : LibGObject::Object*
priv : LibGranite::DrawingColorPrivate*
_R : Float64
_G : Float64
_B : Float64
_A : Float64
end
fun drawing_color_alpha_from_int = granite_drawing_color_alpha_from_int(color : Int32) : UInt8
fun drawing_color_red_from_int = granite_drawing_color_red_from_int(color : Int32) : UInt8
fun drawing_color_green_from_int = granite_drawing_color_green_from_int(color : Int32) : UInt8
fun drawing_color_blue_from_int = granite_drawing_color_blue_from_int(color : Int32) : UInt8
fun drawing_color_new = granite_drawing_color_new(_R : Float64, _G : Float64, _B : Float64, _A : Float64) : LibGranite::DrawingColor*
fun drawing_color_from_gdk = granite_drawing_color_new_from_gdk(color : LibGdk::Color) : LibGranite::DrawingColor*
fun drawing_color_from_rgba = granite_drawing_color_new_from_rgba(color : LibGdk::RGBA) : LibGranite::DrawingColor*
fun drawing_color_from_string = granite_drawing_color_new_from_string(color : UInt8*) : LibGranite::DrawingColor*
fun drawing_color_from_int = granite_drawing_color_new_from_int(color : Int32) : LibGranite::DrawingColor*
fun drawing_color_set_hue = granite_drawing_color_set_hue(this : DrawingColor*, hue : Float64) : LibGranite::DrawingColor*
fun drawing_color_set_sat = granite_drawing_color_set_sat(this : DrawingColor*, sat : Float64) : LibGranite::DrawingColor*
fun drawing_color_set_val = granite_drawing_color_set_val(this : DrawingColor*, val : Float64) : LibGranite::DrawingColor*
fun drawing_color_set_alpha = granite_drawing_color_set_alpha(this : DrawingColor*, alpha : Float64) : LibGranite::DrawingColor*
fun drawing_color_get_hue = granite_drawing_color_get_hue(this : DrawingColor*) : Float64
fun drawing_color_get_sat = granite_drawing_color_get_sat(this : DrawingColor*) : Float64
fun drawing_color_get_val = granite_drawing_color_get_val(this : DrawingColor*) : Float64
fun drawing_color_add_hue = granite_drawing_color_add_hue(this : DrawingColor*, val : Float64) : LibGranite::DrawingColor*
fun drawing_color_set_min_sat = granite_drawing_color_set_min_sat(this : DrawingColor*, sat : Float64) : LibGranite::DrawingColor*
fun drawing_color_set_min_value = granite_drawing_color_set_min_value(this : DrawingColor*, val : Float64) : LibGranite::DrawingColor*
fun drawing_color_set_max_sat = granite_drawing_color_set_max_sat(this : DrawingColor*, sat : Float64) : LibGranite::DrawingColor*
fun drawing_color_set_max_val = granite_drawing_color_set_max_val(this : DrawingColor*, val : Float64) : LibGranite::DrawingColor*
fun drawing_color_multiply_sat = granite_drawing_color_multiply_sat(this : DrawingColor*, amount : Float64) : LibGranite::DrawingColor*
fun drawing_color_brighten_val = granite_drawing_color_brighten_val(this : DrawingColor*, amount : Float64) : LibGranite::DrawingColor*
fun drawing_color_darken_val = granite_drawing_color_darken_val(this : DrawingColor*, amount : Float64) : LibGranite::DrawingColor*
fun drawing_color_darken_by_sat = granite_drawing_color_darken_by_sat(this : DrawingColor*, amount : Float64) : LibGranite::DrawingColor*
fun drawing_color_to_string = granite_drawing_color_to_string(this : DrawingColor*) : UInt8*
fun drawing_color_to_int = granite_drawing_color_to_int(this : DrawingColor*) : Int32
struct DrawingBufferSurface # object
parent_instance : LibGObject::Object*
priv : LibGranite::DrawingBufferSurfacePrivate*
# Property surface : LibCairo::Surface*
# Property width : Int32
# Property height : Int32
# Property context : LibCairo::Context*
end
fun drawing_buffer_surface_new = granite_drawing_buffer_surface_new(width : Int32, height : Int32) : LibGranite::DrawingBufferSurface*
fun drawing_buffer_surface_with_surface = granite_drawing_buffer_surface_new_with_surface(width : Int32, height : Int32, model : LibCairo::Surface*) : LibGranite::DrawingBufferSurface*
fun drawing_buffer_surface_with_buffer_surface = granite_drawing_buffer_surface_new_with_buffer_surface(width : Int32, height : Int32, model : LibGranite::DrawingBufferSurface*) : LibGranite::DrawingBufferSurface*
fun drawing_buffer_surface_clear = granite_drawing_buffer_surface_clear(this : DrawingBufferSurface*) : Void
fun drawing_buffer_surface_load_to_pixbuf = granite_drawing_buffer_surface_load_to_pixbuf(this : DrawingBufferSurface*) : LibGdkPixbuf::Pixbuf*
fun drawing_buffer_surface_average_color = granite_drawing_buffer_surface_average_color(this : DrawingBufferSurface*) : LibGranite::DrawingColor*
fun drawing_buffer_surface_fast_blur = granite_drawing_buffer_surface_fast_blur(this : DrawingBufferSurface*, radius : Int32, process_count : Int32) : Void
fun drawing_buffer_surface_exponential_blur = granite_drawing_buffer_surface_exponential_blur(this : DrawingBufferSurface*, radius : Int32) : Void
fun drawing_buffer_surface_gaussian_blur = granite_drawing_buffer_surface_gaussian_blur(this : DrawingBufferSurface*, radius : Int32) : Void
fun drawing_buffer_surface_get_surface = granite_drawing_buffer_surface_get_surface(this : DrawingBufferSurface*) : LibCairo::Surface*
fun drawing_buffer_surface_get_width = granite_drawing_buffer_surface_get_width(this : DrawingBufferSurface*) : Int32
fun drawing_buffer_surface_get_height = granite_drawing_buffer_surface_get_height(this : DrawingBufferSurface*) : Int32
fun drawing_buffer_surface_get_context = granite_drawing_buffer_surface_get_context(this : DrawingBufferSurface*) : LibCairo::Context*
struct DrawingUtilities # object
parent_instance : LibGObject::Object*
priv : LibGranite::DrawingUtilitiesPrivate*
end
fun drawing_utilities_cairo_rounded_rectangle = granite_drawing_utilities_cairo_rounded_rectangle(cr : LibCairo::Context*, x : Float64, y : Float64, width : Float64, height : Float64, radius : Float64) : Void
fun drawing_utilities_average_color = granite_drawing_utilities_average_color(source : LibGdkPixbuf::Pixbuf*) : LibGranite::DrawingColor*
fun drawing_utilities_new = granite_drawing_utilities_new() : LibGranite::DrawingUtilities*
struct GtkPatchAboutDialog # object
parent_instance : LibGtk::Dialog*
priv : LibGranite::GtkPatchAboutDialogPrivate*
# Signal activate-link
# Property artists : UInt8**
# Property authors : UInt8**
# Property comments : UInt8*
# Property copyright : UInt8*
# Property documenters : UInt8**
# Property license : UInt8*
# Property license_type : LibGtk::License
# Property logo : LibGdkPixbuf::Pixbuf*
# Property logo_icon_name : UInt8*
# Property program_name : UInt8*
# Property translator_credits : UInt8*
# Property version : UInt8*
# Property website : UInt8*
# Property website_label : UInt8*
end
fun gtk_patch_about_dialog_new = granite_gtk_patch_about_dialog_new() : LibGranite::GtkPatchAboutDialog*
fun gtk_patch_about_dialog_get_artists = granite_gtk_patch_about_dialog_get_artists(this : GtkPatchAboutDialog*, result_length1 : Int32*) : UInt8**
fun gtk_patch_about_dialog_set_artists = granite_gtk_patch_about_dialog_set_artists(this : GtkPatchAboutDialog*, value : UInt8**, value_length1 : Int32) : Void
fun gtk_patch_about_dialog_get_authors = granite_gtk_patch_about_dialog_get_authors(this : GtkPatchAboutDialog*, result_length1 : Int32*) : UInt8**
fun gtk_patch_about_dialog_set_authors = granite_gtk_patch_about_dialog_set_authors(this : GtkPatchAboutDialog*, value : UInt8**, value_length1 : Int32) : Void
fun gtk_patch_about_dialog_get_comments = granite_gtk_patch_about_dialog_get_comments(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_comments = granite_gtk_patch_about_dialog_set_comments(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_copyright = granite_gtk_patch_about_dialog_get_copyright(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_copyright = granite_gtk_patch_about_dialog_set_copyright(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_documenters = granite_gtk_patch_about_dialog_get_documenters(this : GtkPatchAboutDialog*, result_length1 : Int32*) : UInt8**
fun gtk_patch_about_dialog_set_documenters = granite_gtk_patch_about_dialog_set_documenters(this : GtkPatchAboutDialog*, value : UInt8**, value_length1 : Int32) : Void
fun gtk_patch_about_dialog_get_license = granite_gtk_patch_about_dialog_get_license(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_license = granite_gtk_patch_about_dialog_set_license(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_license_type = granite_gtk_patch_about_dialog_get_license_type(this : GtkPatchAboutDialog*) : LibGtk::License
fun gtk_patch_about_dialog_set_license_type = granite_gtk_patch_about_dialog_set_license_type(this : GtkPatchAboutDialog*, value : LibGtk::License) : Void
fun gtk_patch_about_dialog_get_logo = granite_gtk_patch_about_dialog_get_logo(this : GtkPatchAboutDialog*) : LibGdkPixbuf::Pixbuf*
fun gtk_patch_about_dialog_set_logo = granite_gtk_patch_about_dialog_set_logo(this : GtkPatchAboutDialog*, value : LibGdkPixbuf::Pixbuf*) : Void
fun gtk_patch_about_dialog_get_logo_icon_name = granite_gtk_patch_about_dialog_get_logo_icon_name(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_logo_icon_name = granite_gtk_patch_about_dialog_set_logo_icon_name(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_program_name = granite_gtk_patch_about_dialog_get_program_name(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_program_name = granite_gtk_patch_about_dialog_set_program_name(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_translator_credits = granite_gtk_patch_about_dialog_get_translator_credits(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_translator_credits = granite_gtk_patch_about_dialog_set_translator_credits(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_version = granite_gtk_patch_about_dialog_get_version(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_version = granite_gtk_patch_about_dialog_set_version(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_website = granite_gtk_patch_about_dialog_get_website(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_website = granite_gtk_patch_about_dialog_set_website(this : GtkPatchAboutDialog*, value : UInt8*) : Void
fun gtk_patch_about_dialog_get_website_label = granite_gtk_patch_about_dialog_get_website_label(this : GtkPatchAboutDialog*) : UInt8*
fun gtk_patch_about_dialog_set_website_label = granite_gtk_patch_about_dialog_set_website_label(this : GtkPatchAboutDialog*, value : UInt8*) : Void
struct ServicesSettings # object
parent_instance : LibGObject::Object*
priv : LibGranite::ServicesSettingsPrivate*
# Signal changed
# Virtual function verify
# Property schema : LibGio::Settings*
end
fun services_settings_verify = granite_services_settings_verify(this : ServicesSettings*, key : UInt8*) : Void
fun services_settings_get_schema = granite_services_settings_get_schema(this : ServicesSettings*) : LibGio::Settings*
struct ServicesLogger # object
parent_instance : LibGObject::Object*
priv : LibGranite::ServicesLoggerPrivate*
# Property DisplayLevel : LibGranite::ServicesLogLevel
end
fun services_logger_init = granite_services_logger_initialize(app_name : UInt8*) : Void
fun services_logger_notification = granite_services_logger_notification(msg : UInt8*) : Void
fun services_logger_new = granite_services_logger_new() : LibGranite::ServicesLogger*
fun services_logger_get_DisplayLevel = granite_services_logger_get_DisplayLevel() : LibGranite::ServicesLogLevel
fun services_logger_set_DisplayLevel = granite_services_logger_set_DisplayLevel(value : LibGranite::ServicesLogLevel) : Void
struct ServicesPaths # object
parent_instance : LibGObject::Object*
priv : LibGranite::ServicesPathsPrivate*
# Property home_folder : LibGio::File*
# Property data_folder : LibGio::File*
# Property xdg_config_home_folder : LibGio::File*
# Property xdg_data_home_folder : LibGio::File*
# Property xdg_cache_home_folder : LibGio::File*
# Property xdg_data_dir_folders : Void**
# Property user_config_folder : LibGio::File*
# Property user_data_folder : LibGio::File*
# Property user_cache_folder : LibGio::File*
end
fun services_paths_init = granite_services_paths_initialize(app_name : UInt8*, data_folder_path : UInt8*) : Void
fun services_paths_ensure_directory_exists = granite_services_paths_ensure_directory_exists(dir : LibGio::File*) : Bool
fun services_paths_new = granite_services_paths_new() : LibGranite::ServicesPaths*
fun services_paths_get_home_folder = granite_services_paths_get_home_folder() : LibGio::File*
fun services_paths_set_home_folder = granite_services_paths_set_home_folder(value : LibGio::File*) : Void
fun services_paths_get_data_folder = granite_services_paths_get_data_folder() : LibGio::File*
fun services_paths_set_data_folder = granite_services_paths_set_data_folder(value : LibGio::File*) : Void
fun services_paths_get_xdg_config_home_folder = granite_services_paths_get_xdg_config_home_folder() : LibGio::File*
fun services_paths_set_xdg_config_home_folder = granite_services_paths_set_xdg_config_home_folder(value : LibGio::File*) : Void
fun services_paths_get_xdg_data_home_folder = granite_services_paths_get_xdg_data_home_folder() : LibGio::File*
fun services_paths_set_xdg_data_home_folder = granite_services_paths_set_xdg_data_home_folder(value : LibGio::File*) : Void
fun services_paths_get_xdg_cache_home_folder = granite_services_paths_get_xdg_cache_home_folder() : LibGio::File*
fun services_paths_set_xdg_cache_home_folder = granite_services_paths_set_xdg_cache_home_folder(value : LibGio::File*) : Void
fun services_paths_get_xdg_data_dir_folders = granite_services_paths_get_xdg_data_dir_folders() : Void**
fun services_paths_set_xdg_data_dir_folders = granite_services_paths_set_xdg_data_dir_folders(value : Void**) : Void
fun services_paths_get_user_config_folder = granite_services_paths_get_user_config_folder() : LibGio::File*
fun services_paths_set_user_config_folder = granite_services_paths_set_user_config_folder(value : LibGio::File*) : Void
fun services_paths_get_user_data_folder = granite_services_paths_get_user_data_folder() : LibGio::File*
fun services_paths_set_user_data_folder = granite_services_paths_set_user_data_folder(value : LibGio::File*) : Void
fun services_paths_get_user_cache_folder = granite_services_paths_get_user_cache_folder() : LibGio::File*
fun services_paths_set_user_cache_folder = granite_services_paths_set_user_cache_folder(value : LibGio::File*) : Void
struct ServicesSystem # object
parent_instance : LibGObject::Object*
priv : LibGranite::ServicesSystemPrivate*
end
fun services_system_open_uri = granite_services_system_open_uri(uri : UInt8*) : Void
fun services_system_open = granite_services_system_open(file : LibGio::File*) : Void
fun services_system_open_files = granite_services_system_open_files(files : LibGio::File**, files_length1 : Int32) : Void
fun services_system_launch = granite_services_system_launch(app : LibGio::File*) : Void
fun services_system_execute_command = granite_services_system_execute_command(command : UInt8*) : Bool
fun services_system_launch_with_files = granite_services_system_launch_with_files(app : LibGio::File*, files : LibGio::File**, files_length1 : Int32) : Void
fun services_system_new = granite_services_system_new() : LibGranite::ServicesSystem*
struct ServicesContractorProxy # object
parent_instance : LibGObject::Object*
priv : LibGranite::ServicesContractorProxyPrivate*
# Signal contracts-changed
end
fun services_contractor_proxy_get_instance = granite_services_contractor_proxy_get_instance(error : LibGLib::Error**) : LibGranite::ServicesContractorProxy*
fun services_contractor_proxy_get_all_contracts = granite_services_contractor_proxy_get_all_contracts(error : LibGLib::Error**) : LibGee::List*
fun services_contractor_proxy_get_contracts_by_mime = granite_services_contractor_proxy_get_contracts_by_mime(mime_type : UInt8*, error : LibGLib::Error**) : LibGee::List*
fun services_contractor_proxy_get_contracts_by_mimelist = granite_services_contractor_proxy_get_contracts_by_mimelist(mime_types : UInt8**, mime_types_length1 : Int32, error : LibGLib::Error**) : LibGee::List*
fun services_contractor_proxy_get_contracts_for_file = granite_services_contractor_proxy_get_contracts_for_file(file : LibGio::File*, error : LibGLib::Error**) : LibGee::List*
fun services_contractor_proxy_get_contracts_for_files = granite_services_contractor_proxy_get_contracts_for_files(files : LibGio::File**, files_length1 : Int32, error : LibGLib::Error**) : LibGee::List*
struct ServicesIconFactory # object
parent_instance : LibGObject::Object*
priv : LibGranite::ServicesIconFactoryPrivate*
end
fun services_icon_factory_new = granite_services_icon_factory_new() : LibGranite::ServicesIconFactory*
fun services_icon_factory_get_default = granite_services_icon_factory_get_default() : LibGranite::ServicesIconFactory*
fun services_icon_factory_load_symbolic_icon_from_gicon = granite_services_icon_factory_load_symbolic_icon_from_gicon(this : ServicesIconFactory*, style : LibGtk::StyleContext*, gicon : LibGio::Icon*, size : Int32) : LibGdkPixbuf::Pixbuf*
fun services_icon_factory_load_symbolic_icon = granite_services_icon_factory_load_symbolic_icon(this : ServicesIconFactory*, style : LibGtk::StyleContext*, iconname : UInt8*, size : Int32) : LibGdkPixbuf::Pixbuf*
struct ServicesSimpleCommand # object
parent_instance : LibGObject::Object*
priv : LibGranite::ServicesSimpleCommandPrivate*
standard_output_str : UInt8*
error_output_str : UInt8*
output_str : UInt8*
# Signal done
# Signal output-changed
# Signal standard-changed
# Signal error-changed
end
fun services_simple_command_new = granite_services_simple_command_new(dir : UInt8*, command : UInt8*) : LibGranite::ServicesSimpleCommand*
fun services_simple_command_run = granite_services_simple_command_run(this : ServicesSimpleCommand*) : Void
struct WidgetsAlertView # object
parent_instance : LibGtk::Grid*
priv : LibGranite::WidgetsAlertViewPrivate*
# Signal action-activated
# Property title : UInt8*
# Property description : UInt8*
# Property icon_name : UInt8*
end
fun widgets_alert_view_new = granite_widgets_alert_view_new(title : UInt8*, description : UInt8*, icon_name : UInt8*) : LibGranite::WidgetsAlertView*
fun widgets_alert_view_show_action = granite_widgets_alert_view_show_action(this : WidgetsAlertView*, label : UInt8*) : Void
fun widgets_alert_view_hide_action = granite_widgets_alert_view_hide_action(this : WidgetsAlertView*) : Void
fun widgets_alert_view_get_title = granite_widgets_alert_view_get_title(this : WidgetsAlertView*) : UInt8*
fun widgets_alert_view_set_title = granite_widgets_alert_view_set_title(this : WidgetsAlertView*, value : UInt8*) : Void
fun widgets_alert_view_get_description = granite_widgets_alert_view_get_description(this : WidgetsAlertView*) : UInt8*
fun widgets_alert_view_set_description = granite_widgets_alert_view_set_description(this : WidgetsAlertView*, value : UInt8*) : Void
fun widgets_alert_view_get_icon_name = granite_widgets_alert_view_get_icon_name(this : WidgetsAlertView*) : UInt8*
fun widgets_alert_view_set_icon_name = granite_widgets_alert_view_set_icon_name(this : WidgetsAlertView*, value : UInt8*) : Void
struct WidgetsAvatar # object
parent_instance : LibGtk::EventBox*
priv : LibGranite::WidgetsAvatarPrivate*
# Property pixbuf : LibGdkPixbuf::Pixbuf*
end
fun widgets_avatar_new = granite_widgets_avatar_new() : LibGranite::WidgetsAvatar*
fun widgets_avatar_from_pixbuf = granite_widgets_avatar_new_from_pixbuf(pixbuf : LibGdkPixbuf::Pixbuf*) : LibGranite::WidgetsAvatar*
fun widgets_avatar_from_file = granite_widgets_avatar_new_from_file(filepath : UInt8*, pixel_size : Int32) : LibGranite::WidgetsAvatar*
fun widgets_avatar_with_default_icon = granite_widgets_avatar_new_with_default_icon(pixel_size : Int32) : LibGranite::WidgetsAvatar*
fun widgets_avatar_show_default = granite_widgets_avatar_show_default(this : WidgetsAvatar*, pixel_size : Int32) : Void
fun widgets_avatar_get_pixbuf = granite_widgets_avatar_get_pixbuf(this : WidgetsAvatar*) : LibGdkPixbuf::Pixbuf*
fun widgets_avatar_set_pixbuf = granite_widgets_avatar_set_pixbuf(this : WidgetsAvatar*, value : LibGdkPixbuf::Pixbuf*) : Void
struct WidgetsAboutDialog # object
parent_instance : LibGranite::GtkPatchAboutDialog*
priv : LibGranite::WidgetsAboutDialogPrivate*
# Property help : UInt8*
# Property translate : UInt8*
# Property bug : UInt8*
end
fun widgets_about_dialog_new = granite_widgets_about_dialog_new() : LibGranite::WidgetsAboutDialog*
fun widgets_about_dialog_get_help = granite_widgets_about_dialog_get_help(this : WidgetsAboutDialog*) : UInt8*
fun widgets_about_dialog_set_help = granite_widgets_about_dialog_set_help(this : WidgetsAboutDialog*, value : UInt8*) : Void
fun widgets_about_dialog_get_translate = granite_widgets_about_dialog_get_translate(this : WidgetsAboutDialog*) : UInt8*
fun widgets_about_dialog_set_translate = granite_widgets_about_dialog_set_translate(this : WidgetsAboutDialog*, value : UInt8*) : Void
fun widgets_about_dialog_get_bug = granite_widgets_about_dialog_get_bug(this : WidgetsAboutDialog*) : UInt8*
fun widgets_about_dialog_set_bug = granite_widgets_about_dialog_set_bug(this : WidgetsAboutDialog*, value : UInt8*) : Void
struct WidgetsModeButton # object
parent_instance : LibGtk::Box*
priv : LibGranite::WidgetsModeButtonPrivate*
# Signal mode-added
# Signal mode-removed
# Signal mode-changed
# Property selected : Int32
# Property n_items : UInt32
end
fun widgets_mode_button_new = granite_widgets_mode_button_new() : LibGranite::WidgetsModeButton*
fun widgets_mode_button_append_pixbuf = granite_widgets_mode_button_append_pixbuf(this : WidgetsModeButton*, pixbuf : LibGdkPixbuf::Pixbuf*) : Int32
fun widgets_mode_button_append_text = granite_widgets_mode_button_append_text(this : WidgetsModeButton*, text : UInt8*) : Int32
fun widgets_mode_button_append_icon = granite_widgets_mode_button_append_icon(this : WidgetsModeButton*, icon_name : UInt8*, size : LibGtk::IconSize) : Int32
fun widgets_mode_button_append = granite_widgets_mode_button_append(this : WidgetsModeButton*, w : LibGtk::Widget*) : Int32
fun widgets_mode_button_set_active = granite_widgets_mode_button_set_active(this : WidgetsModeButton*, new_active_index : Int32) : Void
fun widgets_mode_button_set_item_visible = granite_widgets_mode_button_set_item_visible(this : WidgetsModeButton*, index : Int32, val : Bool) : Void
fun widgets_mode_button_remove = granite_widgets_mode_button_remove(this : WidgetsModeButton*, index : Int32) : Void
fun widgets_mode_button_clear_children = granite_widgets_mode_button_clear_children(this : WidgetsModeButton*) : Void
fun widgets_mode_button_get_selected = granite_widgets_mode_button_get_selected(this : WidgetsModeButton*) : Int32
fun widgets_mode_button_set_selected = granite_widgets_mode_button_set_selected(this : WidgetsModeButton*, value : Int32) : Void
fun widgets_mode_button_get_n_items = granite_widgets_mode_button_get_n_items(this : WidgetsModeButton*) : UInt32
struct WidgetsDatePicker # object
parent_instance : LibGtk::Entry*
priv : LibGranite::WidgetsDatePickerPrivate*
dropdown : LibGtk::EventBox*
calendar : LibGtk::Calendar*
# Signal date-changed
# Virtual function position_dropdown
# Property format : UInt8*
# Property date : LibGLib::DateTime*
end
fun widgets_date_picker_with_format = granite_widgets_date_picker_new_with_format(format : UInt8*) : LibGranite::WidgetsDatePicker*
fun widgets_date_picker_position_dropdown = granite_widgets_date_picker_position_dropdown(this : WidgetsDatePicker*, rect : LibGdk::Rectangle*) : Void
fun widgets_date_picker_new = granite_widgets_date_picker_new() : LibGranite::WidgetsDatePicker*
fun widgets_date_picker_get_format = granite_widgets_date_picker_get_format(this : WidgetsDatePicker*) : UInt8*
fun widgets_date_picker_get_date = granite_widgets_date_picker_get_date(this : WidgetsDatePicker*) : LibGLib::DateTime*
fun widgets_date_picker_set_date = granite_widgets_date_picker_set_date(this : WidgetsDatePicker*, value : LibGLib::DateTime*) : Void
struct WidgetsTimePicker # object
parent_instance : LibGtk::Entry*
priv : LibGranite::WidgetsTimePickerPrivate*
# Signal time-changed
# Virtual function position_dropdown
# Property format_12 : UInt8*
# Property format_24 : UInt8*
# Property time : LibGLib::DateTime*
end
fun widgets_time_picker_with_format = granite_widgets_time_picker_new_with_format(format_12 : UInt8*, format_24 : UInt8*) : LibGranite::WidgetsTimePicker*
fun widgets_time_picker_position_dropdown = granite_widgets_time_picker_position_dropdown(this : WidgetsTimePicker*, x : Int32*, y : Int32*) : Void
fun widgets_time_picker_new = granite_widgets_time_picker_new() : LibGranite::WidgetsTimePicker*
fun widgets_time_picker_get_format_12 = granite_widgets_time_picker_get_format_12(this : WidgetsTimePicker*) : UInt8*
fun widgets_time_picker_get_format_24 = granite_widgets_time_picker_get_format_24(this : WidgetsTimePicker*) : UInt8*
fun widgets_time_picker_get_time = granite_widgets_time_picker_get_time(this : WidgetsTimePicker*) : LibGLib::DateTime*
fun widgets_time_picker_set_time = granite_widgets_time_picker_set_time(this : WidgetsTimePicker*, value : LibGLib::DateTime*) : Void
struct WidgetsCollapsiblePaned # object
parent_instance : LibGtk::Paned*
priv : LibGranite::WidgetsCollapsiblePanedPrivate*
# Property collapse_mode : LibGranite::CollapseMode
end
fun widgets_collapsible_paned_new = granite_widgets_collapsible_paned_new(orientation : LibGtk::Orientation) : LibGranite::WidgetsCollapsiblePaned*
fun widgets_collapsible_paned_get_collapse_mode = granite_widgets_collapsible_paned_get_collapse_mode(this : WidgetsCollapsiblePaned*) : LibGranite::CollapseMode
fun widgets_collapsible_paned_set_collapse_mode = granite_widgets_collapsible_paned_set_collapse_mode(this : WidgetsCollapsiblePaned*, value : LibGranite::CollapseMode) : Void
struct WidgetsTab # object
parent_instance : LibGtk::EventBox*
priv : LibGranite::WidgetsTabPrivate*
dropped_callback : LibGranite::WidgetsDroppedDelegate
# Property label : UInt8*
# Property pinned : Bool
# Property pinnable : Bool
# Property restore_data : UInt8*
# Property page : LibGtk::Widget*
# Property icon : LibGio::Icon*
# Property working : Bool
# Property ellipsize_mode : LibPango::EllipsizeMode
# Property fixed : Bool
# Property menu : LibGtk::Menu*
end
fun widgets_tab_new = granite_widgets_tab_new(label : UInt8*, icon : LibGio::Icon*, page : LibGtk::Widget*) : LibGranite::WidgetsTab*
fun widgets_tab_close = granite_widgets_tab_close(this : WidgetsTab*) : Void
fun widgets_tab_get_label = granite_widgets_tab_get_label(this : WidgetsTab*) : UInt8*
fun widgets_tab_set_label = granite_widgets_tab_set_label(this : WidgetsTab*, value : UInt8*) : Void
fun widgets_tab_get_pinned = granite_widgets_tab_get_pinned(this : WidgetsTab*) : Bool
fun widgets_tab_set_pinned = granite_widgets_tab_set_pinned(this : WidgetsTab*, value : Bool) : Void
fun widgets_tab_get_pinnable = granite_widgets_tab_get_pinnable(this : WidgetsTab*) : Bool
fun widgets_tab_set_pinnable = granite_widgets_tab_set_pinnable(this : WidgetsTab*, value : Bool) : Void
fun widgets_tab_get_restore_data = granite_widgets_tab_get_restore_data(this : WidgetsTab*) : UInt8*
fun widgets_tab_set_restore_data = granite_widgets_tab_set_restore_data(this : WidgetsTab*, value : UInt8*) : Void
fun widgets_tab_get_page = granite_widgets_tab_get_page(this : WidgetsTab*) : LibGtk::Widget*
fun widgets_tab_set_page = granite_widgets_tab_set_page(this : WidgetsTab*, value : LibGtk::Widget*) : Void
fun widgets_tab_get_icon = granite_widgets_tab_get_icon(this : WidgetsTab*) : LibGio::Icon*
fun widgets_tab_set_icon = granite_widgets_tab_set_icon(this : WidgetsTab*, value : LibGio::Icon*) : Void
fun widgets_tab_get_working = granite_widgets_tab_get_working(this : WidgetsTab*) : Bool
fun widgets_tab_set_working = granite_widgets_tab_set_working(this : WidgetsTab*, value : Bool) : Void
fun widgets_tab_get_ellipsize_mode = granite_widgets_tab_get_ellipsize_mode(this : WidgetsTab*) : LibPango::EllipsizeMode
fun widgets_tab_set_ellipsize_mode = granite_widgets_tab_set_ellipsize_mode(this : WidgetsTab*, value : LibPango::EllipsizeMode) : Void
fun widgets_tab_get_fixed = granite_widgets_tab_get_fixed(this : WidgetsTab*) : Bool
fun widgets_tab_set_fixed = granite_widgets_tab_set_fixed(this : WidgetsTab*, value : Bool) : Void
fun widgets_tab_get_menu = granite_widgets_tab_get_menu(this : WidgetsTab*) : LibGtk::Menu*
fun widgets_tab_set_menu = granite_widgets_tab_set_menu(this : WidgetsTab*, value : LibGtk::Menu*) : Void
struct WidgetsDynamicNotebook # object
parent_instance : LibGtk::EventBox*
priv : LibGranite::WidgetsDynamicNotebookPrivate*
# Signal tab-added
# Signal tab-removed
# Signal tab-switched
# Signal tab-reordered
# Signal tab-moved
# Signal tab-duplicated
# Signal tab-restored
# Signal new-tab-requested
# Signal close-tab-requested
# Property n_tabs : Int32
# Property show_tabs : Bool
# Property show_icons : Bool
# Property tabs_closable : Bool
# Property allow_drag : Bool
# Property allow_new_window : Bool
# Property allow_duplication : Bool
# Property allow_restoring : Bool
# Property max_restorable_tabs : Int32
# Property add_button_visible : Bool
# Property allow_pinning : Bool
# Property force_left : Bool
# Property add_button_tooltip : UInt8*
# Property current : LibGranite::WidgetsTab*
# Property tabs : Void**
# Property group_name : UInt8*
# Property tab_bar_behavior : LibGranite::WidgetsDynamicNotebookTabBarBehavior
# Property menu : LibGtk::Menu*
end
fun widgets_dynamic_notebook_new = granite_widgets_dynamic_notebook_new() : LibGranite::WidgetsDynamicNotebook*
fun widgets_dynamic_notebook_remove_tab = granite_widgets_dynamic_notebook_remove_tab(this : WidgetsDynamicNotebook*, tab : LibGranite::WidgetsTab*) : Void
fun widgets_dynamic_notebook_next_page = granite_widgets_dynamic_notebook_next_page(this : WidgetsDynamicNotebook*) : Void
fun widgets_dynamic_notebook_previous_page = granite_widgets_dynamic_notebook_previous_page(this : WidgetsDynamicNotebook*) : Void
fun widgets_dynamic_notebook_get_children = granite_widgets_dynamic_notebook_get_children(this : WidgetsDynamicNotebook*) : Void**
fun widgets_dynamic_notebook_get_tab_position = granite_widgets_dynamic_notebook_get_tab_position(this : WidgetsDynamicNotebook*, tab : LibGranite::WidgetsTab*) : Int32
fun widgets_dynamic_notebook_set_tab_position = granite_widgets_dynamic_notebook_set_tab_position(this : WidgetsDynamicNotebook*, tab : LibGranite::WidgetsTab*, position : Int32) : Void
fun widgets_dynamic_notebook_get_tab_by_index = granite_widgets_dynamic_notebook_get_tab_by_index(this : WidgetsDynamicNotebook*, index : Int32) : LibGranite::WidgetsTab*
fun widgets_dynamic_notebook_get_tab_by_widget = granite_widgets_dynamic_notebook_get_tab_by_widget(this : WidgetsDynamicNotebook*, widget : LibGtk::Widget*) : LibGranite::WidgetsTab*
fun widgets_dynamic_notebook_get_nth_page = granite_widgets_dynamic_notebook_get_nth_page(this : WidgetsDynamicNotebook*, index : Int32) : LibGtk::Widget*
fun widgets_dynamic_notebook_insert_tab = granite_widgets_dynamic_notebook_insert_tab(this : WidgetsDynamicNotebook*, tab : LibGranite::WidgetsTab*, index : Int32) : UInt32
fun widgets_dynamic_notebook_get_n_tabs = granite_widgets_dynamic_notebook_get_n_tabs(this : WidgetsDynamicNotebook*) : Int32
fun widgets_dynamic_notebook_get_show_tabs = granite_widgets_dynamic_notebook_get_show_tabs(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_show_tabs = granite_widgets_dynamic_notebook_set_show_tabs(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_show_icons = granite_widgets_dynamic_notebook_get_show_icons(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_show_icons = granite_widgets_dynamic_notebook_set_show_icons(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_tabs_closable = granite_widgets_dynamic_notebook_get_tabs_closable(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_tabs_closable = granite_widgets_dynamic_notebook_set_tabs_closable(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_allow_drag = granite_widgets_dynamic_notebook_get_allow_drag(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_allow_drag = granite_widgets_dynamic_notebook_set_allow_drag(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_allow_new_window = granite_widgets_dynamic_notebook_get_allow_new_window(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_allow_new_window = granite_widgets_dynamic_notebook_set_allow_new_window(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_allow_duplication = granite_widgets_dynamic_notebook_get_allow_duplication(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_allow_duplication = granite_widgets_dynamic_notebook_set_allow_duplication(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_allow_restoring = granite_widgets_dynamic_notebook_get_allow_restoring(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_allow_restoring = granite_widgets_dynamic_notebook_set_allow_restoring(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_max_restorable_tabs = granite_widgets_dynamic_notebook_get_max_restorable_tabs(this : WidgetsDynamicNotebook*) : Int32
fun widgets_dynamic_notebook_set_max_restorable_tabs = granite_widgets_dynamic_notebook_set_max_restorable_tabs(this : WidgetsDynamicNotebook*, value : Int32) : Void
fun widgets_dynamic_notebook_get_add_button_visible = granite_widgets_dynamic_notebook_get_add_button_visible(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_add_button_visible = granite_widgets_dynamic_notebook_set_add_button_visible(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_allow_pinning = granite_widgets_dynamic_notebook_get_allow_pinning(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_allow_pinning = granite_widgets_dynamic_notebook_set_allow_pinning(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_force_left = granite_widgets_dynamic_notebook_get_force_left(this : WidgetsDynamicNotebook*) : Bool
fun widgets_dynamic_notebook_set_force_left = granite_widgets_dynamic_notebook_set_force_left(this : WidgetsDynamicNotebook*, value : Bool) : Void
fun widgets_dynamic_notebook_get_add_button_tooltip = granite_widgets_dynamic_notebook_get_add_button_tooltip(this : WidgetsDynamicNotebook*) : UInt8*
fun widgets_dynamic_notebook_set_add_button_tooltip = granite_widgets_dynamic_notebook_set_add_button_tooltip(this : WidgetsDynamicNotebook*, value : UInt8*) : Void
fun widgets_dynamic_notebook_get_current = granite_widgets_dynamic_notebook_get_current(this : WidgetsDynamicNotebook*) : LibGranite::WidgetsTab*
fun widgets_dynamic_notebook_set_current = granite_widgets_dynamic_notebook_set_current(this : WidgetsDynamicNotebook*, value : LibGranite::WidgetsTab*) : Void
fun widgets_dynamic_notebook_get_tabs = granite_widgets_dynamic_notebook_get_tabs(this : WidgetsDynamicNotebook*) : Void**
fun widgets_dynamic_notebook_get_group_name = granite_widgets_dynamic_notebook_get_group_name(this : WidgetsDynamicNotebook*) : UInt8*
fun widgets_dynamic_notebook_set_group_name = granite_widgets_dynamic_notebook_set_group_name(this : WidgetsDynamicNotebook*, value : UInt8*) : Void
fun widgets_dynamic_notebook_get_tab_bar_behavior = granite_widgets_dynamic_notebook_get_tab_bar_behavior(this : WidgetsDynamicNotebook*) : LibGranite::WidgetsDynamicNotebookTabBarBehavior
fun widgets_dynamic_notebook_set_tab_bar_behavior = granite_widgets_dynamic_notebook_set_tab_bar_behavior(this : WidgetsDynamicNotebook*, value : LibGranite::WidgetsDynamicNotebookTabBarBehavior) : Void
fun widgets_dynamic_notebook_get_menu = granite_widgets_dynamic_notebook_get_menu(this : WidgetsDynamicNotebook*) : LibGtk::Menu*
struct WidgetsCompositedWindow # object
parent_instance : LibGtk::Window*
priv : LibGranite::WidgetsCompositedWindowPrivate*
end
fun widgets_composited_window_new = granite_widgets_composited_window_new() : LibGranite::WidgetsCompositedWindow*
struct WidgetsAppMenu # object
parent_instance : LibGtk::MenuButton*
priv : LibGranite::WidgetsAppMenuPrivate*
about_item : LibGtk::MenuItem*
# Signal show-about
end
fun widgets_app_menu_new = granite_widgets_app_menu_new(menu : LibGtk::Menu*) : LibGranite::WidgetsAppMenu*
fun widgets_app_menu_with_app = granite_widgets_app_menu_new_with_app(application : LibGranite::Application*, menu : LibGtk::Menu*) : LibGranite::WidgetsAppMenu*
fun widgets_app_menu_add_items = granite_widgets_app_menu_add_items(this : WidgetsAppMenu*, menu : LibGtk::Menu*) : Void
struct WidgetsWelcome # object
parent_instance : LibGtk::EventBox*
priv : LibGranite::WidgetsWelcomePrivate*
children : Void**
options : LibGtk::Grid*
# Signal activated
# Property title : UInt8*
# Property subtitle : UInt8*
end
fun widgets_welcome_new = granite_widgets_welcome_new(title_text : UInt8*, subtitle_text : UInt8*) : LibGranite::WidgetsWelcome*
fun widgets_welcome_set_item_visible = granite_widgets_welcome_set_item_visible(this : WidgetsWelcome*, index : UInt32, val : Bool) : Void
fun widgets_welcome_remove_item = granite_widgets_welcome_remove_item(this : WidgetsWelcome*, index : UInt32) : Void
fun widgets_welcome_set_item_sensitivity = granite_widgets_welcome_set_item_sensitivity(this : WidgetsWelcome*, index : UInt32, val : Bool) : Void
fun widgets_welcome_append = granite_widgets_welcome_append(this : WidgetsWelcome*, icon_name : UInt8*, option_text : UInt8*, description_text : UInt8*) : Int32
fun widgets_welcome_append_with_pixbuf = granite_widgets_welcome_append_with_pixbuf(this : WidgetsWelcome*, pixbuf : LibGdkPixbuf::Pixbuf*, option_text : UInt8*, description_text : UInt8*) : Int32
fun widgets_welcome_append_with_image = granite_widgets_welcome_append_with_image(this : WidgetsWelcome*, image : LibGtk::Image*, option_text : UInt8*, description_text : UInt8*) : Int32
fun widgets_welcome_get_button_from_index = granite_widgets_welcome_get_button_from_index(this : WidgetsWelcome*, index : Int32) : LibGranite::WidgetsWelcomeButton*
fun widgets_welcome_get_title = granite_widgets_welcome_get_title(this : WidgetsWelcome*) : UInt8*
fun widgets_welcome_set_title = granite_widgets_welcome_set_title(this : WidgetsWelcome*, value : UInt8*) : Void
fun widgets_welcome_get_subtitle = granite_widgets_welcome_get_subtitle(this : WidgetsWelcome*) : UInt8*
fun widgets_welcome_set_subtitle = granite_widgets_welcome_set_subtitle(this : WidgetsWelcome*, value : UInt8*) : Void
struct WidgetsWelcomeButton # object
parent_instance : LibGtk::Button*
priv : LibGranite::WidgetsWelcomeButtonPrivate*
# Property title : UInt8*
# Property description : UInt8*
# Property icon : LibGtk::Image*
end
fun widgets_welcome_button_new = granite_widgets_welcome_button_new(image : LibGtk::Image*, option_text : UInt8*, description_text : UInt8*) : LibGranite::WidgetsWelcomeButton*
fun widgets_welcome_button_get_title = granite_widgets_welcome_button_get_title(this : WidgetsWelcomeButton*) : UInt8*
fun widgets_welcome_button_set_title = granite_widgets_welcome_button_set_title(this : WidgetsWelcomeButton*, value : UInt8*) : Void
fun widgets_welcome_button_get_description = granite_widgets_welcome_button_get_description(this : WidgetsWelcomeButton*) : UInt8*
fun widgets_welcome_button_set_description = granite_widgets_welcome_button_set_description(this : WidgetsWelcomeButton*, value : UInt8*) : Void
fun widgets_welcome_button_get_icon = granite_widgets_welcome_button_get_icon(this : WidgetsWelcomeButton*) : LibGtk::Image*
fun widgets_welcome_button_set_icon = granite_widgets_welcome_button_set_icon(this : WidgetsWelcomeButton*, value : LibGtk::Image*) : Void
struct WidgetsToast # object
parent_instance : LibGtk::Revealer*
priv : LibGranite::WidgetsToastPrivate*
# Signal closed
# Signal default-action
# Property title : UInt8*
end
fun widgets_toast_new = granite_widgets_toast_new(title : UInt8*) : LibGranite::WidgetsToast*
fun widgets_toast_set_default_action = granite_widgets_toast_set_default_action(this : WidgetsToast*, label : UInt8*) : Void
fun widgets_toast_send_notification = granite_widgets_toast_send_notification(this : WidgetsToast*) : Void
fun widgets_toast_get_title = granite_widgets_toast_get_title(this : WidgetsToast*) : UInt8*
fun widgets_toast_set_title = granite_widgets_toast_set_title(this : WidgetsToast*, value : UInt8*) : Void
struct WidgetsStorageBar # object
parent_instance : LibGtk::Box*
priv : LibGranite::WidgetsStorageBarPrivate*
# Property storage : UInt64
# Property total_usage : UInt64
# Property inner_margin_sides : Int32
end
fun widgets_storage_bar_new = granite_widgets_storage_bar_new(storage : UInt64) : LibGranite::WidgetsStorageBar*
fun widgets_storage_bar_with_total_usage = granite_widgets_storage_bar_new_with_total_usage(storage : UInt64, total_usage : UInt64) : LibGranite::WidgetsStorageBar*
fun widgets_storage_bar_update_block_size = granite_widgets_storage_bar_update_block_size(this : WidgetsStorageBar*, description : LibGranite::WidgetsStorageBarItemDescription, size : UInt64) : Void
fun widgets_storage_bar_get_storage = granite_widgets_storage_bar_get_storage(this : WidgetsStorageBar*) : UInt64
fun widgets_storage_bar_set_storage = granite_widgets_storage_bar_set_storage(this : WidgetsStorageBar*, value : UInt64) : Void
fun widgets_storage_bar_get_total_usage = granite_widgets_storage_bar_get_total_usage(this : WidgetsStorageBar*) : UInt64
fun widgets_storage_bar_set_total_usage = granite_widgets_storage_bar_set_total_usage(this : WidgetsStorageBar*, value : UInt64) : Void
fun widgets_storage_bar_get_inner_margin_sides = granite_widgets_storage_bar_get_inner_margin_sides(this : WidgetsStorageBar*) : Int32
fun widgets_storage_bar_set_inner_margin_sides = granite_widgets_storage_bar_set_inner_margin_sides(this : WidgetsStorageBar*, value : Int32) : Void
struct WidgetsSourceList # object
parent_instance : LibGtk::ScrolledWindow*
priv : LibGranite::WidgetsSourceListPrivate*
# Signal item-selected
# Property root : LibGranite::WidgetsSourceListExpandableItem*
# Property selected : LibGranite::WidgetsSourceListItem*
# Property ellipsize_mode : LibPango::EllipsizeMode
# Property editing : Bool
end
fun widgets_source_list_new = granite_widgets_source_list_new(root : LibGranite::WidgetsSourceListExpandableItem*) : LibGranite::WidgetsSourceList*
fun widgets_source_list_has_item = granite_widgets_source_list_has_item(this : WidgetsSourceList*, item : LibGranite::WidgetsSourceListItem*) : Bool
fun widgets_source_list_set_filter_func = granite_widgets_source_list_set_filter_func(this : WidgetsSourceList*, visible_func : Void*, visible_func_target : Void*, refilter : Bool) : Void
fun widgets_source_list_refilter = granite_widgets_source_list_refilter(this : WidgetsSourceList*) : Void
fun widgets_source_list_is_item_expanded = granite_widgets_source_list_is_item_expanded(this : WidgetsSourceList*, item : LibGranite::WidgetsSourceListItem*) : Bool
fun widgets_source_list_start_editing_item = granite_widgets_source_list_start_editing_item(this : WidgetsSourceList*, item : LibGranite::WidgetsSourceListItem*) : Bool
fun widgets_source_list_stop_editing = granite_widgets_source_list_stop_editing(this : WidgetsSourceList*) : Void
fun widgets_source_list_enable_drag_source = granite_widgets_source_list_enable_drag_source(this : WidgetsSourceList*, src_entries : LibGtk::TargetEntry*, src_entries_length1 : Int32) : Void
fun widgets_source_list_disable_drag_source = granite_widgets_source_list_disable_drag_source(this : WidgetsSourceList*) : Void
fun widgets_source_list_enable_drag_dest = granite_widgets_source_list_enable_drag_dest(this : WidgetsSourceList*, dest_entries : LibGtk::TargetEntry*, dest_entries_length1 : Int32, actions : LibGdk::DragAction) : Void
fun widgets_source_list_disable_drag_dest = granite_widgets_source_list_disable_drag_dest(this : WidgetsSourceList*) : Void
fun widgets_source_list_scroll_to_item = granite_widgets_source_list_scroll_to_item(this : WidgetsSourceList*, item : LibGranite::WidgetsSourceListItem*, expand_parents : Bool, use_align : Bool, row_align : Float32) : Bool
fun widgets_source_list_get_previous_item = granite_widgets_source_list_get_previous_item(this : WidgetsSourceList*, reference : LibGranite::WidgetsSourceListItem*) : LibGranite::WidgetsSourceListItem*
fun widgets_source_list_get_next_item = granite_widgets_source_list_get_next_item(this : WidgetsSourceList*, reference : LibGranite::WidgetsSourceListItem*) : LibGranite::WidgetsSourceListItem*
fun widgets_source_list_get_first_child = granite_widgets_source_list_get_first_child(this : WidgetsSourceList*, parent : LibGranite::WidgetsSourceListExpandableItem*) : LibGranite::WidgetsSourceListItem*
fun widgets_source_list_get_last_child = granite_widgets_source_list_get_last_child(this : WidgetsSourceList*, parent : LibGranite::WidgetsSourceListExpandableItem*) : LibGranite::WidgetsSourceListItem*
fun widgets_source_list_get_n_visible_children = granite_widgets_source_list_get_n_visible_children(this : WidgetsSourceList*, parent : LibGranite::WidgetsSourceListExpandableItem*) : UInt32
fun widgets_source_list_get_root = granite_widgets_source_list_get_root(this : WidgetsSourceList*) : LibGranite::WidgetsSourceListExpandableItem*
fun widgets_source_list_set_root = granite_widgets_source_list_set_root(this : WidgetsSourceList*, value : LibGranite::WidgetsSourceListExpandableItem*) : Void
fun widgets_source_list_get_selected = granite_widgets_source_list_get_selected(this : WidgetsSourceList*) : LibGranite::WidgetsSourceListItem*
fun widgets_source_list_set_selected = granite_widgets_source_list_set_selected(this : WidgetsSourceList*, value : LibGranite::WidgetsSourceListItem*) : Void
fun widgets_source_list_get_ellipsize_mode = granite_widgets_source_list_get_ellipsize_mode(this : WidgetsSourceList*) : LibPango::EllipsizeMode
fun widgets_source_list_set_ellipsize_mode = granite_widgets_source_list_set_ellipsize_mode(this : WidgetsSourceList*, value : LibPango::EllipsizeMode) : Void
fun widgets_source_list_get_editing = granite_widgets_source_list_get_editing(this : WidgetsSourceList*) : Bool
struct WidgetsSourceListItem # object
parent_instance : LibGObject::Object*
priv : LibGranite::WidgetsSourceListItemPrivate*
# Signal edited
# Signal action-activated
# Signal activated
# Virtual function get_context_menu
# Property parent : LibGranite::WidgetsSourceListExpandableItem*
# Property name : UInt8*
# Property markup : UInt8*
# Property badge : UInt8*
# Property editable : Bool
# Property visible : Bool
# Property selectable : Bool
# Property icon : LibGio::Icon*
# Property activatable : LibGio::Icon*
end
fun widgets_source_list_item_new = granite_widgets_source_list_item_new(name : UInt8*) : LibGranite::WidgetsSourceListItem*
fun widgets_source_list_item_get_context_menu = granite_widgets_source_list_item_get_context_menu(this : WidgetsSourceListItem*) : LibGtk::Menu*
fun widgets_source_list_item_get_parent = granite_widgets_source_list_item_get_parent(this : WidgetsSourceListItem*) : LibGranite::WidgetsSourceListExpandableItem*
fun widgets_source_list_item_get_name = granite_widgets_source_list_item_get_name(this : WidgetsSourceListItem*) : UInt8*
fun widgets_source_list_item_set_name = granite_widgets_source_list_item_set_name(this : WidgetsSourceListItem*, value : UInt8*) : Void
fun widgets_source_list_item_get_markup = granite_widgets_source_list_item_get_markup(this : WidgetsSourceListItem*) : UInt8*
fun widgets_source_list_item_set_markup = granite_widgets_source_list_item_set_markup(this : WidgetsSourceListItem*, value : UInt8*) : Void
fun widgets_source_list_item_get_badge = granite_widgets_source_list_item_get_badge(this : WidgetsSourceListItem*) : UInt8*
fun widgets_source_list_item_set_badge = granite_widgets_source_list_item_set_badge(this : WidgetsSourceListItem*, value : UInt8*) : Void
fun widgets_source_list_item_get_editable = granite_widgets_source_list_item_get_editable(this : WidgetsSourceListItem*) : Bool
fun widgets_source_list_item_set_editable = granite_widgets_source_list_item_set_editable(this : WidgetsSourceListItem*, value : Bool) : Void
fun widgets_source_list_item_get_visible = granite_widgets_source_list_item_get_visible(this : WidgetsSourceListItem*) : Bool
fun widgets_source_list_item_set_visible = granite_widgets_source_list_item_set_visible(this : WidgetsSourceListItem*, value : Bool) : Void
fun widgets_source_list_item_get_selectable = granite_widgets_source_list_item_get_selectable(this : WidgetsSourceListItem*) : Bool
fun widgets_source_list_item_set_selectable = granite_widgets_source_list_item_set_selectable(this : WidgetsSourceListItem*, value : Bool) : Void
fun widgets_source_list_item_get_icon = granite_widgets_source_list_item_get_icon(this : WidgetsSourceListItem*) : LibGio::Icon*
fun widgets_source_list_item_set_icon = granite_widgets_source_list_item_set_icon(this : WidgetsSourceListItem*, value : LibGio::Icon*) : Void
fun widgets_source_list_item_get_activatable = granite_widgets_source_list_item_get_activatable(this : WidgetsSourceListItem*) : LibGio::Icon*
fun widgets_source_list_item_set_activatable = granite_widgets_source_list_item_set_activatable(this : WidgetsSourceListItem*, value : LibGio::Icon*) : Void
struct WidgetsSourceListExpandableItem # object
parent_instance : LibGranite::WidgetsSourceListItem*
priv : LibGranite::WidgetsSourceListExpandableItemPrivate*
# Signal child-added
# Signal child-removed
# Signal toggled
# Property collapsible : Bool
# Property expanded : Bool
# Property n_children : UInt32
# Property children : LibGee::Collection*
end
fun widgets_source_list_expandable_item_new = granite_widgets_source_list_expandable_item_new(name : UInt8*) : LibGranite::WidgetsSourceListExpandableItem*
fun widgets_source_list_expandable_item_contains = granite_widgets_source_list_expandable_item_contains(this : WidgetsSourceListExpandableItem*, item : LibGranite::WidgetsSourceListItem*) : Bool
fun widgets_source_list_expandable_item_add = granite_widgets_source_list_expandable_item_add(this : WidgetsSourceListExpandableItem*, item : LibGranite::WidgetsSourceListItem*) : Void
fun widgets_source_list_expandable_item_remove = granite_widgets_source_list_expandable_item_remove(this : WidgetsSourceListExpandableItem*, item : LibGranite::WidgetsSourceListItem*) : Void
fun widgets_source_list_expandable_item_clear = granite_widgets_source_list_expandable_item_clear(this : WidgetsSourceListExpandableItem*) : Void
fun widgets_source_list_expandable_item_expand_all = granite_widgets_source_list_expandable_item_expand_all(this : WidgetsSourceListExpandableItem*, inclusive : Bool, recursive : Bool) : Void
fun widgets_source_list_expandable_item_collapse_all = granite_widgets_source_list_expandable_item_collapse_all(this : WidgetsSourceListExpandableItem*, inclusive : Bool, recursive : Bool) : Void
fun widgets_source_list_expandable_item_expand_with_parents = granite_widgets_source_list_expandable_item_expand_with_parents(this : WidgetsSourceListExpandableItem*) : Void
fun widgets_source_list_expandable_item_collapse_with_parents = granite_widgets_source_list_expandable_item_collapse_with_parents(this : WidgetsSourceListExpandableItem*) : Void
fun widgets_source_list_expandable_item_get_collapsible = granite_widgets_source_list_expandable_item_get_collapsible(this : WidgetsSourceListExpandableItem*) : Bool
fun widgets_source_list_expandable_item_set_collapsible = granite_widgets_source_list_expandable_item_set_collapsible(this : WidgetsSourceListExpandableItem*, value : Bool) : Void
fun widgets_source_list_expandable_item_get_expanded = granite_widgets_source_list_expandable_item_get_expanded(this : WidgetsSourceListExpandableItem*) : Bool
fun widgets_source_list_expandable_item_set_expanded = granite_widgets_source_list_expandable_item_set_expanded(this : WidgetsSourceListExpandableItem*, value : Bool) : Void
fun widgets_source_list_expandable_item_get_n_children = granite_widgets_source_list_expandable_item_get_n_children(this : WidgetsSourceListExpandableItem*) : UInt32
fun widgets_source_list_expandable_item_get_children = granite_widgets_source_list_expandable_item_get_children(this : WidgetsSourceListExpandableItem*) : LibGee::Collection*
struct WidgetsCellRendererExpander # object
parent_instance : LibGtk::CellRenderer*
priv : LibGranite::WidgetsCellRendererExpanderPrivate*
# Virtual function get_arrow_size
# Property is_category_expander : Bool
end
fun widgets_cell_renderer_expander_new = granite_widgets_cell_renderer_expander_new() : LibGranite::WidgetsCellRendererExpander*
fun widgets_cell_renderer_expander_get_arrow_size = granite_widgets_cell_renderer_expander_get_arrow_size(this : WidgetsCellRendererExpander*, widget : LibGtk::Widget*) : Int32
fun widgets_cell_renderer_expander_get_is_category_expander = granite_widgets_cell_renderer_expander_get_is_category_expander(this : WidgetsCellRendererExpander*) : Bool
fun widgets_cell_renderer_expander_set_is_category_expander = granite_widgets_cell_renderer_expander_set_is_category_expander(this : WidgetsCellRendererExpander*, value : Bool) : Void
struct WidgetsCellRendererBadge # object
parent_instance : LibGtk::CellRenderer*
priv : LibGranite::WidgetsCellRendererBadgePrivate*
# Property text : UInt8*
end
fun widgets_cell_renderer_badge_new = granite_widgets_cell_renderer_badge_new() : LibGranite::WidgetsCellRendererBadge*
fun widgets_cell_renderer_badge_get_text = granite_widgets_cell_renderer_badge_get_text(this : WidgetsCellRendererBadge*) : UInt8*
fun widgets_cell_renderer_badge_set_text = granite_widgets_cell_renderer_badge_set_text(this : WidgetsCellRendererBadge*, value : UInt8*) : Void
struct WidgetsOverlayBar # object
parent_instance : LibGtk::EventBox*
priv : LibGranite::WidgetsOverlayBarPrivate*
# Property overlay : LibGtk::Overlay*
# Property status : UInt8*
# Property label : UInt8*
# Property active : Bool
end
fun widgets_overlay_bar_new = granite_widgets_overlay_bar_new(overlay : LibGtk::Overlay*) : LibGranite::WidgetsOverlayBar*
fun widgets_overlay_bar_get_overlay = granite_widgets_overlay_bar_get_overlay(this : WidgetsOverlayBar*) : LibGtk::Overlay*
fun widgets_overlay_bar_get_status = granite_widgets_overlay_bar_get_status(this : WidgetsOverlayBar*) : UInt8*
fun widgets_overlay_bar_set_status = granite_widgets_overlay_bar_set_status(this : WidgetsOverlayBar*, value : UInt8*) : Void
fun widgets_overlay_bar_get_label = granite_widgets_overlay_bar_get_label(this : WidgetsOverlayBar*) : UInt8*
fun widgets_overlay_bar_set_label = granite_widgets_overlay_bar_set_label(this : WidgetsOverlayBar*, value : UInt8*) : Void
fun widgets_overlay_bar_get_active = granite_widgets_overlay_bar_get_active(this : WidgetsOverlayBar*) : Bool
fun widgets_overlay_bar_set_active = granite_widgets_overlay_bar_set_active(this : WidgetsOverlayBar*, value : Bool) : Void
Options = Pointer(StaticArray(LibGLib::OptionEntry, 0)).null.value # : LibGLib::OptionEntry*
struct Application # object
parent_instance : LibGtk::Application*
priv : LibGranite::ApplicationPrivate*
build_data_dir : UInt8*
build_pkg_data_dir : UInt8*
build_release_name : UInt8*
build_version : UInt8*
build_version_info : UInt8*
program_name : UInt8*
exec_name : UInt8*
app_copyright : UInt8*
app_years : UInt8*
app_icon : UInt8*
app_launcher : UInt8*
main_url : UInt8*
bug_url : UInt8*
help_url : UInt8*
translate_url : UInt8*
about_authors : UInt8**
about_documenters : UInt8**
about_artists : UInt8**
about_comments : UInt8*
about_translators : UInt8*
about_license : UInt8*
about_license_type : LibGtk::License
granite_application_DEBUG : Bool
about_dlg : LibGranite::WidgetsAboutDialog*
# Virtual function set_options
# Virtual function show_about
end
fun application_run = granite_application_run(this : Application*, args : UInt8**, args_length1 : Int32) : Int32
fun application_set_options = granite_application_set_options(this : Application*) : Void
fun application_create_appmenu = granite_application_create_appmenu(this : Application*, menu : LibGtk::Menu*) : LibGranite::WidgetsAppMenu*
fun application_show_about = granite_application_show_about(this : Application*, parent : LibGtk::Widget*) : Void
struct SettingsPage # object
parent_instance : LibGtk::ScrolledWindow*
priv : LibGranite::SettingsPagePrivate*
_icon_name : UInt8*
_title : UInt8*
# Property status_type : LibGranite::SettingsPageStatusType
# Property display_widget : LibGtk::Widget*
# Property header : UInt8*
# Property status : UInt8*
# Property icon_name : UInt8*
# Property title : UInt8*
end
fun settings_page_get_status_type = granite_settings_page_get_status_type(this : SettingsPage*) : LibGranite::SettingsPageStatusType
fun settings_page_set_status_type = granite_settings_page_set_status_type(this : SettingsPage*, value : LibGranite::SettingsPageStatusType) : Void
fun settings_page_get_display_widget = granite_settings_page_get_display_widget(this : SettingsPage*) : LibGtk::Widget*
fun settings_page_get_header = granite_settings_page_get_header(this : SettingsPage*) : UInt8*
fun settings_page_get_status = granite_settings_page_get_status(this : SettingsPage*) : UInt8*
fun settings_page_set_status = granite_settings_page_set_status(this : SettingsPage*, value : UInt8*) : Void
fun settings_page_get_icon_name = granite_settings_page_get_icon_name(this : SettingsPage*) : UInt8*
fun settings_page_set_icon_name = granite_settings_page_set_icon_name(this : SettingsPage*, value : UInt8*) : Void
fun settings_page_get_title = granite_settings_page_get_title(this : SettingsPage*) : UInt8*
fun settings_page_set_title = granite_settings_page_set_title(this : SettingsPage*, value : UInt8*) : Void
struct SimpleSettingsPage # object
parent_instance : LibGranite::SettingsPage*
priv : LibGranite::SimpleSettingsPagePrivate*
# Property action_area : LibGtk::ButtonBox*
# Property content_area : LibGtk::Grid*
# Property status_switch : LibGtk::Switch*
# Property activatable : Bool
# Property description : UInt8*
# Property icon_name : UInt8*
# Property title : UInt8*
end
fun simple_settings_page_get_action_area = granite_simple_settings_page_get_action_area(this : SimpleSettingsPage*) : LibGtk::ButtonBox*
fun simple_settings_page_get_content_area = granite_simple_settings_page_get_content_area(this : SimpleSettingsPage*) : LibGtk::Grid*
fun simple_settings_page_get_status_switch = granite_simple_settings_page_get_status_switch(this : SimpleSettingsPage*) : LibGtk::Switch*
fun simple_settings_page_get_activatable = granite_simple_settings_page_get_activatable(this : SimpleSettingsPage*) : Bool
fun simple_settings_page_get_description = granite_simple_settings_page_get_description(this : SimpleSettingsPage*) : UInt8*
fun simple_settings_page_set_description = granite_simple_settings_page_set_description(this : SimpleSettingsPage*, value : UInt8*) : Void
fun simple_settings_page_get_icon_name = granite_simple_settings_page_get_icon_name(this : SimpleSettingsPage*) : UInt8*
fun simple_settings_page_set_icon_name = granite_simple_settings_page_set_icon_name(this : SimpleSettingsPage*, value : UInt8*) : Void
fun simple_settings_page_get_title = granite_simple_settings_page_get_title(this : SimpleSettingsPage*) : UInt8*
fun simple_settings_page_set_title = granite_simple_settings_page_set_title(this : SimpleSettingsPage*, value : UInt8*) : Void
struct ModeSwitch # object
parent_instance : LibGtk::Grid*
priv : LibGranite::ModeSwitchPrivate*
# Property active : Bool
# Property primary_icon_gicon : LibGio::Icon*
# Property primary_icon_name : UInt8*
# Property primary_icon_tooltip_text : UInt8*
# Property secondary_icon_gicon : LibGio::Icon*
# Property secondary_icon_name : UInt8*
# Property secondary_icon_tooltip_text : UInt8*
end
fun mode_switch_new = granite_mode_switch_new(primary_icon_gicon : LibGio::Icon*, secondary_icon_gicon : LibGio::Icon*) : LibGranite::ModeSwitch*
fun mode_switch_from_icon_name = granite_mode_switch_new_from_icon_name(primary_icon_name : UInt8*, secondary_icon_name : UInt8*) : LibGranite::ModeSwitch*
fun mode_switch_get_active = granite_mode_switch_get_active(this : ModeSwitch*) : Bool
fun mode_switch_set_active = granite_mode_switch_set_active(this : ModeSwitch*, value : Bool) : Void
fun mode_switch_get_primary_icon_gicon = granite_mode_switch_get_primary_icon_gicon(this : ModeSwitch*) : LibGio::Icon*
fun mode_switch_set_primary_icon_gicon = granite_mode_switch_set_primary_icon_gicon(this : ModeSwitch*, value : LibGio::Icon*) : Void
fun mode_switch_get_primary_icon_name = granite_mode_switch_get_primary_icon_name(this : ModeSwitch*) : UInt8*
fun mode_switch_set_primary_icon_name = granite_mode_switch_set_primary_icon_name(this : ModeSwitch*, value : UInt8*) : Void
fun mode_switch_get_primary_icon_tooltip_text = granite_mode_switch_get_primary_icon_tooltip_text(this : ModeSwitch*) : UInt8*
fun mode_switch_set_primary_icon_tooltip_text = granite_mode_switch_set_primary_icon_tooltip_text(this : ModeSwitch*, value : UInt8*) : Void
fun mode_switch_get_secondary_icon_gicon = granite_mode_switch_get_secondary_icon_gicon(this : ModeSwitch*) : LibGio::Icon*
fun mode_switch_set_secondary_icon_gicon = granite_mode_switch_set_secondary_icon_gicon(this : ModeSwitch*, value : LibGio::Icon*) : Void
fun mode_switch_get_secondary_icon_name = granite_mode_switch_get_secondary_icon_name(this : ModeSwitch*) : UInt8*
fun mode_switch_set_secondary_icon_name = granite_mode_switch_set_secondary_icon_name(this : ModeSwitch*, value : UInt8*) : Void
fun mode_switch_get_secondary_icon_tooltip_text = granite_mode_switch_get_secondary_icon_tooltip_text(this : ModeSwitch*) : UInt8*
fun mode_switch_set_secondary_icon_tooltip_text = granite_mode_switch_set_secondary_icon_tooltip_text(this : ModeSwitch*, value : UInt8*) : Void
struct SeekBar # object
parent_instance : LibGtk::Grid*
priv : LibGranite::SeekBarPrivate*
# Property playback_duration : Float64
# Property playback_progress : Float64
# Property is_grabbing : Bool
# Property is_hovering : Bool
# Property progression_label : LibGtk::Label*
# Property duration_label : LibGtk::Label*
# Property scale : LibGtk::Scale*
end
fun seek_bar_new = granite_seek_bar_new(playback_duration : Float64) : LibGranite::SeekBar*
fun seek_bar_get_playback_duration = granite_seek_bar_get_playback_duration(this : SeekBar*) : Float64
fun seek_bar_set_playback_duration = granite_seek_bar_set_playback_duration(this : SeekBar*, value : Float64) : Void
fun seek_bar_get_playback_progress = granite_seek_bar_get_playback_progress(this : SeekBar*) : Float64
fun seek_bar_set_playback_progress = granite_seek_bar_set_playback_progress(this : SeekBar*, value : Float64) : Void
fun seek_bar_get_is_grabbing = granite_seek_bar_get_is_grabbing(this : SeekBar*) : Bool
fun seek_bar_get_is_hovering = granite_seek_bar_get_is_hovering(this : SeekBar*) : Bool
fun seek_bar_get_progression_label = granite_seek_bar_get_progression_label(this : SeekBar*) : LibGtk::Label*
fun seek_bar_set_progression_label = granite_seek_bar_set_progression_label(this : SeekBar*, value : LibGtk::Label*) : Void
fun seek_bar_get_duration_label = granite_seek_bar_get_duration_label(this : SeekBar*) : LibGtk::Label*
fun seek_bar_set_duration_label = granite_seek_bar_set_duration_label(this : SeekBar*, value : LibGtk::Label*) : Void
fun seek_bar_get_scale = granite_seek_bar_get_scale(this : SeekBar*) : LibGtk::Scale*
fun seek_bar_set_scale = granite_seek_bar_set_scale(this : SeekBar*, value : LibGtk::Scale*) : Void
struct HeaderLabel # object
parent_instance : LibGtk::Label*
priv : LibGranite::HeaderLabelPrivate*
end
fun header_label_new = granite_header_label_new(label : UInt8*) : LibGranite::HeaderLabel*
struct SettingsSidebar # object
parent_instance : LibGtk::ScrolledWindow*
priv : LibGranite::SettingsSidebarPrivate*
# Property stack : LibGtk::Stack*
# Property visible_child_name : UInt8*
end
fun settings_sidebar_new = granite_settings_sidebar_new(stack : LibGtk::Stack*) : LibGranite::SettingsSidebar*
fun settings_sidebar_get_stack = granite_settings_sidebar_get_stack(this : SettingsSidebar*) : LibGtk::Stack*
fun settings_sidebar_get_visible_child_name = granite_settings_sidebar_get_visible_child_name(this : SettingsSidebar*) : UInt8*
fun settings_sidebar_set_visible_child_name = granite_settings_sidebar_set_visible_child_name(this : SettingsSidebar*, value : UInt8*) : Void
struct MessageDialog # object
parent_instance : LibGtk::Dialog*
priv : LibGranite::MessageDialogPrivate*
# Property primary_text : UInt8*
# Property secondary_text : UInt8*
# Property image_icon : LibGio::Icon*
# Property primary_label : LibGtk::Label*
# Property secondary_label : LibGtk::Label*
# Property buttons : LibGtk::ButtonsType
# Property custom_bin : LibGtk::Bin*
end
fun message_dialog_new = granite_message_dialog_new(primary_text : UInt8*, secondary_text : UInt8*, image_icon : LibGio::Icon*, buttons : LibGtk::ButtonsType) : LibGranite::MessageDialog*
fun message_dialog_with_image_from_icon_name = granite_message_dialog_new_with_image_from_icon_name(primary_text : UInt8*, secondary_text : UInt8*, image_icon_name : UInt8*, buttons : LibGtk::ButtonsType) : LibGranite::MessageDialog*
fun message_dialog_get_primary_text = granite_message_dialog_get_primary_text(this : MessageDialog*) : UInt8*
fun message_dialog_set_primary_text = granite_message_dialog_set_primary_text(this : MessageDialog*, value : UInt8*) : Void
fun message_dialog_get_secondary_text = granite_message_dialog_get_secondary_text(this : MessageDialog*) : UInt8*
fun message_dialog_set_secondary_text = granite_message_dialog_set_secondary_text(this : MessageDialog*, value : UInt8*) : Void
fun message_dialog_get_image_icon = granite_message_dialog_get_image_icon(this : MessageDialog*) : LibGio::Icon*
fun message_dialog_set_image_icon = granite_message_dialog_set_image_icon(this : MessageDialog*, value : LibGio::Icon*) : Void
fun message_dialog_get_primary_label = granite_message_dialog_get_primary_label(this : MessageDialog*) : LibGtk::Label*
fun message_dialog_get_secondary_label = granite_message_dialog_get_secondary_label(this : MessageDialog*) : LibGtk::Label*
fun message_dialog_get_custom_bin = granite_message_dialog_get_custom_bin(this : MessageDialog*) : LibGtk::Bin*
struct AsyncImage # object
parent_instance : LibGtk::Image*
priv : LibGranite::AsyncImagePrivate*
# Property load_on_realize : Bool
# Property auto_size_request : Bool
# Property gicon_async : LibGio::Icon*
# Property size_async : Int32
end
fun async_image_new = granite_async_image_new(load_on_realize : Bool, auto_size_request : Bool) : LibGranite::AsyncImage*
fun async_image_from_gicon_async = granite_async_image_new_from_gicon_async(icon : LibGio::Icon*, size : Int32, load_on_realize : Bool, auto_size_request : Bool) : LibGranite::AsyncImage*
fun async_image_from_icon_name_async = granite_async_image_new_from_icon_name_async(icon_name : UInt8*, icon_size : LibGtk::IconSize, load_on_realize : Bool, auto_size_request : Bool) : LibGranite::AsyncImage*
fun async_image_set_from_gicon_async = granite_async_image_set_from_gicon_async(this : AsyncImage*, icon : LibGio::Icon*, size : Int32, cancellable : LibGio::Cancellable*, _callback : LibGio::AsyncReadyCallback, _callback__target : Void*) : Void
fun async_image_set_from_gicon_finish = granite_async_image_set_from_gicon_finish(this : AsyncImage*, _res : LibGio::AsyncResult*, error : LibGLib::Error**) : Void
fun async_image_set_from_icon_name_async = granite_async_image_set_from_icon_name_async(this : AsyncImage*, icon_name : UInt8*, icon_size : LibGtk::IconSize, cancellable : LibGio::Cancellable*, _callback : LibGio::AsyncReadyCallback, _callback__target : Void*) : Void
fun async_image_set_from_icon_name_finish = granite_async_image_set_from_icon_name_finish(this : AsyncImage*, _res : LibGio::AsyncResult*, error : LibGLib::Error**) : Void
fun async_image_set_from_file_async = granite_async_image_set_from_file_async(this : AsyncImage*, file : LibGio::File*, width : Int32, height : Int32, preserve_aspect_ratio : Bool, cancellable : LibGio::Cancellable*, _callback : LibGio::AsyncReadyCallback, _callback__target : Void*) : Void
fun async_image_set_from_file_finish = granite_async_image_set_from_file_finish(this : AsyncImage*, _res : LibGio::AsyncResult*, error : LibGLib::Error**) : Void
fun async_image_get_gicon_async = granite_async_image_get_gicon_async(this : AsyncImage*) : LibGio::Icon*
fun async_image_get_size_async = granite_async_image_get_size_async(this : AsyncImage*) : Int32
###########################################
## Structs
###########################################
struct DrawingColorPrivate # struct
_data : UInt8[0]
end
struct DrawingBufferSurfacePrivate # struct
_data : UInt8[0]
end
struct DrawingUtilitiesPrivate # struct
_data : UInt8[0]
end
struct GtkPatchAboutDialogPrivate # struct
_data : UInt8[0]
end
struct ServicesSettingsPrivate # struct
_data : UInt8[0]
end
struct ServicesLoggerPrivate # struct
_data : UInt8[0]
end
struct ServicesPathsPrivate # struct
_data : UInt8[0]
end
struct ServicesSystemPrivate # struct
_data : UInt8[0]
end
struct ServicesContractorProxyPrivate # struct
_data : UInt8[0]
end
struct ServicesIconFactoryPrivate # struct
_data : UInt8[0]
end
struct ServicesSimpleCommandPrivate # struct
_data : UInt8[0]
end
struct WidgetsAlertViewPrivate # struct
_data : UInt8[0]
end
struct WidgetsAvatarPrivate # struct
_data : UInt8[0]
end
struct WidgetsAboutDialogPrivate # struct
_data : UInt8[0]
end
struct WidgetsModeButtonPrivate # struct
_data : UInt8[0]
end
struct WidgetsDatePickerPrivate # struct
_data : UInt8[0]
end
struct WidgetsTimePickerPrivate # struct
_data : UInt8[0]
end
struct WidgetsCollapsiblePanedPrivate # struct
_data : UInt8[0]
end
struct WidgetsTabPrivate # struct
_data : UInt8[0]
end
struct WidgetsDynamicNotebookPrivate # struct
_data : UInt8[0]
end
struct WidgetsCompositedWindowPrivate # struct
_data : UInt8[0]
end
struct WidgetsAppMenuPrivate # struct
_data : UInt8[0]
end
struct WidgetsWelcomePrivate # struct
_data : UInt8[0]
end
struct WidgetsWelcomeButtonPrivate # struct
_data : UInt8[0]
end
struct WidgetsToastPrivate # struct
_data : UInt8[0]
end
struct WidgetsStorageBarPrivate # struct
_data : UInt8[0]
end
struct WidgetsSourceListPrivate # struct
_data : UInt8[0]
end
struct WidgetsSourceListItemPrivate # struct
_data : UInt8[0]
end
struct WidgetsSourceListExpandableItemPrivate # struct
_data : UInt8[0]
end
struct WidgetsCellRendererExpanderPrivate # struct
_data : UInt8[0]
end
struct WidgetsCellRendererBadgePrivate # struct
_data : UInt8[0]
end
struct WidgetsOverlayBarPrivate # struct
_data : UInt8[0]
end
struct ApplicationPrivate # struct
_data : UInt8[0]
end
struct SettingsPagePrivate # struct
_data : UInt8[0]
end
struct SimpleSettingsPagePrivate # struct
_data : UInt8[0]
end
struct ModeSwitchPrivate # struct
_data : UInt8[0]
end
struct SeekBarPrivate # struct
_data : UInt8[0]
end
struct HeaderLabelPrivate # struct
_data : UInt8[0]
end
struct SettingsSidebarPrivate # struct
_data : UInt8[0]
end
struct MessageDialogPrivate # struct
_data : UInt8[0]
end
struct AsyncImagePrivate # struct
_data : UInt8[0]
end
###########################################
## Enums
###########################################
alias ServicesLogLevel = UInt32
alias ContractorError = UInt32
alias WidgetsDynamicNotebookTabBarBehavior = UInt32
alias WidgetsStorageBarItemDescription = UInt32
alias TextStyle = UInt32
alias CloseButtonPosition = UInt32
alias CollapseMode = UInt32
alias SettingsPageStatusType = UInt32
###########################################
## Interfaces
###########################################
struct ServicesSettingsSerializable # interface
parent_iface : LibGObject::TypeInterface
settings_serialize : -> Void
settings_deserialize : -> Void
# Requires Object
# Virtual function settings_serialize
# Virtual function settings_deserialize
end
fun services_settings_serializable_settings_serialize = granite_services_settings_serializable_settings_serialize(this : ServicesSettingsSerializable*) : UInt8*
fun services_settings_serializable_settings_deserialize = granite_services_settings_serializable_settings_deserialize(this : ServicesSettingsSerializable*, s : UInt8*) : Void
struct ServicesContract # interface
parent_iface : LibGObject::TypeInterface
get_display_name : -> Void
get_description : -> Void
get_icon : -> Void
execute_with_file : -> Void
execute_with_files : -> Void
# Requires Object
# Virtual function get_display_name
# Virtual function get_description
# Virtual function get_icon
# Virtual function execute_with_file
# Virtual function execute_with_files
end
fun services_contract_get_display_name = granite_services_contract_get_display_name(this : ServicesContract*) : UInt8*
fun services_contract_get_description = granite_services_contract_get_description(this : ServicesContract*) : UInt8*
fun services_contract_get_icon = granite_services_contract_get_icon(this : ServicesContract*) : LibGio::Icon*
fun services_contract_execute_with_file = granite_services_contract_execute_with_file(this : ServicesContract*, file : LibGio::File*, error : LibGLib::Error**) : Void
fun services_contract_execute_with_files = granite_services_contract_execute_with_files(this : ServicesContract*, files : LibGio::File**, files_length1 : Int32, error : LibGLib::Error**) : Void
struct WidgetsSourceListSortable # interface
parent_iface : LibGObject::TypeInterface
allow_dnd_sorting : -> Void
compare : -> Void
# Requires WidgetsSourceListExpandableItem
# Signal user-moved-item
# Virtual function allow_dnd_sorting
# Virtual function compare
end
fun widgets_source_list_sortable_allow_dnd_sorting = granite_widgets_source_list_sortable_allow_dnd_sorting(this : WidgetsSourceListSortable*) : Bool
fun widgets_source_list_sortable_compare = granite_widgets_source_list_sortable_compare(this : WidgetsSourceListSortable*, a : LibGranite::WidgetsSourceListItem*, b : LibGranite::WidgetsSourceListItem*) : Int32
struct WidgetsSourceListDragSource # interface
parent_iface : LibGObject::TypeInterface
draggable : -> Void
prepare_selection_data : -> Void
# Requires WidgetsSourceListItem
# Virtual function draggable
# Virtual function prepare_selection_data
end
fun widgets_source_list_drag_source_draggable = granite_widgets_source_list_drag_source_draggable(this : WidgetsSourceListDragSource*) : Bool
fun widgets_source_list_drag_source_prepare_selection_data = granite_widgets_source_list_drag_source_prepare_selection_data(this : WidgetsSourceListDragSource*, selection_data : LibGtk::SelectionData*) : Void
struct WidgetsSourceListDragDest # interface
parent_iface : LibGObject::TypeInterface
data_drop_possible : -> Void
data_received : -> Void
# Requires WidgetsSourceListItem
# Virtual function data_drop_possible
# Virtual function data_received
end
fun widgets_source_list_drag_dest_data_drop_possible = granite_widgets_source_list_drag_dest_data_drop_possible(this : WidgetsSourceListDragDest*, context : LibGdk::DragContext*, data : LibGtk::SelectionData*) : Bool
fun widgets_source_list_drag_dest_data_received = granite_widgets_source_list_drag_dest_data_received(this : WidgetsSourceListDragDest*, context : LibGdk::DragContext*, data : LibGtk::SelectionData*) : LibGdk::DragAction
###########################################
## Callbacks
###########################################
alias WidgetsDroppedDelegate = -> Void
end
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib",1,1>
module Granite#<loc:pop>
BADGE = LibGranite::BADGE
CATEGORY_EXPANDER = LibGranite::CATEGORY_EXPANDER
CONTENT_VIEW = LibGranite::CONTENT_VIEW
CONTENT_VIEW_WINDOW = LibGranite::CONTENT_VIEW_WINDOW
COMPOSITED = LibGranite::COMPOSITED
DECORATED_WINDOW = LibGranite::DECORATED_WINDOW
H1_TEXT = LibGranite::H1_TEXT
H2_TEXT = LibGranite::H2_TEXT
H3_TEXT = LibGranite::H3_TEXT
HELP_BUTTON = LibGranite::HELP_BUTTON
OVERLAY_BAR = LibGranite::OVERLAY_BAR
POPOVER = LibGranite::POPOVER
POPOVER_BG = LibGranite::POPOVER_BG
SOURCE_LIST = LibGranite::SOURCE_LIST
THIN_PANE_SEPARATOR = LibGranite::THIN_PANE_SEPARATOR
TITLE_TEXT = LibGranite::TITLE_TEXT
def self.date_time_get_default_time_format(is_12h, with_second)
__return_value = LibGranite.date_time_get_default_time_format(is_12h, with_second)
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def self.date_time_get_relative_datetime(date_time)
__return_value = LibGranite.date_time_get_relative_datetime(date_time.to_unsafe.as(LibGLib::DateTime*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def self.date_time_is_same_day(day1, day2)
__return_value = LibGranite.date_time_is_same_day(day1.to_unsafe.as(LibGLib::DateTime*), day2.to_unsafe.as(LibGLib::DateTime*))
__return_value
end
def self.date_time_get_default_date_format(with_weekday, with_day, with_year)
__return_value = LibGranite.date_time_get_default_date_format(with_weekday, with_day, with_year)
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def self.date_time_seconds_to_time(seconds)
__return_value = LibGranite.date_time_seconds_to_time(Int32.new(seconds))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def self.widgets_utils_set_color_primary(window, color, priority)
__return_value = LibGranite.widgets_utils_set_color_primary(window.to_unsafe.as(LibGtk::Widget*), color, Int32.new(priority))
Gtk::CssProvider.new(__return_value)
end
def self.widgets_utils_set_theming(widget, stylesheet, class_name, priority)
__return_value = LibGranite.widgets_utils_set_theming(widget.to_unsafe.as(LibGtk::Widget*), stylesheet.to_unsafe, class_name ? class_name.to_unsafe : nil, Int32.new(priority))
Gtk::CssProvider.new(__return_value)
end
def self.widgets_utils_set_theming_for_screen(screen, stylesheet, priority)
__return_value = LibGranite.widgets_utils_set_theming_for_screen(screen.to_unsafe.as(LibGdk::Screen*), stylesheet.to_unsafe, Int32.new(priority))
Gtk::CssProvider.new(__return_value)
end
def self.widgets_utils_get_css_provider(stylesheet)
__return_value = LibGranite.widgets_utils_get_css_provider(stylesheet.to_unsafe)
Gtk::CssProvider.new(__return_value)
end
def self.widgets_utils_apply_text_style_to_label(text_style : Granite::TextStyle, label)
LibGranite.widgets_utils_apply_text_style_to_label(text_style, label.to_unsafe.as(LibGtk::Label*))
nil
end
def self.widgets_utils_get_default_close_button_position(position : Granite::CloseButtonPosition)
__return_value = LibGranite.widgets_utils_get_default_close_button_position(position)
__return_value
end
def self.widgets_utils_get_button_layout_schema
__return_value = LibGranite.widgets_utils_get_button_layout_schema
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def self.widgets_storage_bar_item_description_get_class(description : Granite::WidgetsStorageBarItemDescription)
__return_value = LibGranite.widgets_storage_bar_item_description_get_class(description)
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def self.widgets_storage_bar_item_description_get_name(description : Granite::WidgetsStorageBarItemDescription)
__return_value = LibGranite.widgets_storage_bar_item_description_get_name(description)
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def self.text_style_get_stylesheet(style_class)
__return_value = LibGranite.text_style_get_stylesheet(style_class)
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
STYLE_CLASS_ACCENT = LibGranite::STYLE_CLASS_ACCENT
STYLE_CLASS_AVATAR = LibGranite::STYLE_CLASS_AVATAR
STYLE_CLASS_BACK_BUTTON = LibGranite::STYLE_CLASS_BACK_BUTTON
STYLE_CLASS_BADGE = LibGranite::STYLE_CLASS_BADGE
STYLE_CLASS_CARD = LibGranite::STYLE_CLASS_CARD
STYLE_CLASS_CATEGORY_EXPANDER = LibGranite::STYLE_CLASS_CATEGORY_EXPANDER
STYLE_CLASS_CHECKERBOARD = LibGranite::STYLE_CLASS_CHECKERBOARD
STYLE_CLASS_H1_LABEL = LibGranite::STYLE_CLASS_H1_LABEL
STYLE_CLASS_H2_LABEL = LibGranite::STYLE_CLASS_H2_LABEL
STYLE_CLASS_H3_LABEL = LibGranite::STYLE_CLASS_H3_LABEL
STYLE_CLASS_H4_LABEL = LibGranite::STYLE_CLASS_H4_LABEL
STYLE_CLASS_MODE_SWITCH = LibGranite::STYLE_CLASS_MODE_SWITCH
STYLE_CLASS_OVERLAY_BAR = LibGranite::STYLE_CLASS_OVERLAY_BAR
STYLE_CLASS_PRIMARY_LABEL = LibGranite::STYLE_CLASS_PRIMARY_LABEL
STYLE_CLASS_SEEKBAR = LibGranite::STYLE_CLASS_SEEKBAR
STYLE_CLASS_SOURCE_LIST = LibGranite::STYLE_CLASS_SOURCE_LIST
STYLE_CLASS_STORAGEBAR = LibGranite::STYLE_CLASS_STORAGEBAR
STYLE_CLASS_TERMINAL = LibGranite::STYLE_CLASS_TERMINAL
STYLE_CLASS_WELCOME = LibGranite::STYLE_CLASS_WELCOME
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesSettingsSerializable",1,1>
module ServicesSettingsSerializable
def settings_serialize
__return_value = LibGranite.services_settings_serializable_settings_serialize(@pointer.as(LibGranite::ServicesSettingsSerializable*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def settings_deserialize(s)
LibGranite.services_settings_serializable_settings_deserialize(@pointer.as(LibGranite::ServicesSettingsSerializable*), s.to_unsafe)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/DrawingColorPrivate",1,1>
class DrawingColorPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::DrawingColorPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::DrawingColorPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/DrawingBufferSurface",1,1>
class DrawingBufferSurface < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::DrawingBufferSurface*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::DrawingBufferSurface*)
end
def surface
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "surface", gvalue)
Cairo::Surface.cast(gvalue.object)
end
def surface=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "surface", gvalue)
end
def width
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "width", gvalue)
gvalue
end
def width=(value)
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "width", gvalue)
end
def height
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "height", gvalue)
gvalue
end
def height=(value)
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "height", gvalue)
end
def context
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "context", gvalue)
Cairo::Context.cast(gvalue.object)
end
def self.new(width, height) : self
__return_value = LibGranite.drawing_buffer_surface_new(Int32.new(width), Int32.new(height))
cast Granite::DrawingBufferSurface.new(__return_value)
end
def self.with_surface(width, height, model) : self
__return_value = LibGranite.drawing_buffer_surface_with_surface(Int32.new(width), Int32.new(height), model.to_unsafe.as(LibCairo::Surface*))
cast Granite::DrawingBufferSurface.new(__return_value)
end
def self.with_buffer_surface(width, height, model) : self
__return_value = LibGranite.drawing_buffer_surface_with_buffer_surface(Int32.new(width), Int32.new(height), model.to_unsafe.as(LibGranite::DrawingBufferSurface*))
cast Granite::DrawingBufferSurface.new(__return_value)
end
def clear
LibGranite.drawing_buffer_surface_clear(@pointer.as(LibGranite::DrawingBufferSurface*))
nil
end
def load_to_pixbuf
__return_value = LibGranite.drawing_buffer_surface_load_to_pixbuf(@pointer.as(LibGranite::DrawingBufferSurface*))
GdkPixbuf::Pixbuf.new(__return_value)
end
def average_color
__return_value = LibGranite.drawing_buffer_surface_average_color(@pointer.as(LibGranite::DrawingBufferSurface*))
Granite::DrawingColor.new(__return_value)
end
def fast_blur(radius, process_count)
LibGranite.drawing_buffer_surface_fast_blur(@pointer.as(LibGranite::DrawingBufferSurface*), Int32.new(radius), Int32.new(process_count))
nil
end
def exponential_blur(radius)
LibGranite.drawing_buffer_surface_exponential_blur(@pointer.as(LibGranite::DrawingBufferSurface*), Int32.new(radius))
nil
end
def gaussian_blur(radius)
LibGranite.drawing_buffer_surface_gaussian_blur(@pointer.as(LibGranite::DrawingBufferSurface*), Int32.new(radius))
nil
end
def surface
__return_value = LibGranite.drawing_buffer_surface_get_surface(@pointer.as(LibGranite::DrawingBufferSurface*))
Cairo::Surface.new(__return_value)
end
def width
__return_value = LibGranite.drawing_buffer_surface_get_width(@pointer.as(LibGranite::DrawingBufferSurface*))
__return_value
end
def height
__return_value = LibGranite.drawing_buffer_surface_get_height(@pointer.as(LibGranite::DrawingBufferSurface*))
__return_value
end
def context
__return_value = LibGranite.drawing_buffer_surface_get_context(@pointer.as(LibGranite::DrawingBufferSurface*))
Cairo::Context.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/DrawingBufferSurfacePrivate",1,1>
class DrawingBufferSurfacePrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::DrawingBufferSurfacePrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::DrawingBufferSurfacePrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/DrawingUtilities",1,1>
class DrawingUtilities < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::DrawingUtilities*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::DrawingUtilities*)
end
def self.cairo_rounded_rectangle(cr, x, y, width, height, radius)
LibGranite.drawing_utilities_cairo_rounded_rectangle(cr.to_unsafe.as(LibCairo::Context*), Float64.new(x), Float64.new(y), Float64.new(width), Float64.new(height), Float64.new(radius))
nil
end
def self.average_color(source)
__return_value = LibGranite.drawing_utilities_average_color(source.to_unsafe.as(LibGdkPixbuf::Pixbuf*))
Granite::DrawingColor.new(__return_value)
end
def self.new : self
__return_value = LibGranite.drawing_utilities_new
cast Granite::DrawingUtilities.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/DrawingUtilitiesPrivate",1,1>
class DrawingUtilitiesPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::DrawingUtilitiesPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::DrawingUtilitiesPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/GtkPatchAboutDialog",1,1>
class GtkPatchAboutDialog < Gtk::Dialog
@pointer : Void*
def initialize(pointer : LibGranite::GtkPatchAboutDialog*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::GtkPatchAboutDialog*)
end
def artists
gvalue = GObject::Value.new(GObject::Type::ARRAY)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "artists", gvalue)
gvalue
end
def artists=(value)
gvalue = GObject::Value.new(GObject::Type::ARRAY)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "artists", gvalue)
end
def authors
gvalue = GObject::Value.new(GObject::Type::ARRAY)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "authors", gvalue)
gvalue
end
def authors=(value)
gvalue = GObject::Value.new(GObject::Type::ARRAY)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "authors", gvalue)
end
def comments
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "comments", gvalue)
gvalue.string
end
def comments=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "comments", gvalue)
end
def copyright
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "copyright", gvalue)
gvalue.string
end
def copyright=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "copyright", gvalue)
end
def documenters
gvalue = GObject::Value.new(GObject::Type::ARRAY)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "documenters", gvalue)
gvalue
end
def documenters=(value)
gvalue = GObject::Value.new(GObject::Type::ARRAY)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "documenters", gvalue)
end
def license
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "license", gvalue)
gvalue.string
end
def license=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "license", gvalue)
end
def license_type
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "license_type", gvalue)
gvalue.enum
end
def license_type=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "license_type", gvalue)
end
def logo
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "logo", gvalue)
GdkPixbuf::Pixbuf.cast(gvalue.object)
end
def logo=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "logo", gvalue)
end
def logo_icon_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "logo_icon_name", gvalue)
gvalue.string
end
def logo_icon_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "logo_icon_name", gvalue)
end
def program_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "program_name", gvalue)
gvalue.string
end
def program_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "program_name", gvalue)
end
def translator_credits
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "translator_credits", gvalue)
gvalue.string
end
def translator_credits=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "translator_credits", gvalue)
end
def version
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "version", gvalue)
gvalue.string
end
def version=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "version", gvalue)
end
def website
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "website", gvalue)
gvalue.string
end
def website=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "website", gvalue)
end
def website_label
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "website_label", gvalue)
gvalue.string
end
def website_label=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "website_label", gvalue)
end
def self.new : self
__return_value = LibGranite.gtk_patch_about_dialog_new
cast Granite::GtkPatchAboutDialog.new(__return_value)
end
def artists(result_length1)
__return_value = LibGranite.gtk_patch_about_dialog_get_artists(@pointer.as(LibGranite::GtkPatchAboutDialog*), result_length1)
PointerIterator.new(__return_value) {|__item| (raise "Expected string but got null" unless __item; ::String.new(__item)) }
end
def set_artists(value, value_length1)
LibGranite.gtk_patch_about_dialog_set_artists(@pointer.as(LibGranite::GtkPatchAboutDialog*), value, Int32.new(value_length1))
nil
end
def authors(result_length1)
__return_value = LibGranite.gtk_patch_about_dialog_get_authors(@pointer.as(LibGranite::GtkPatchAboutDialog*), result_length1)
PointerIterator.new(__return_value) {|__item| (raise "Expected string but got null" unless __item; ::String.new(__item)) }
end
def set_authors(value, value_length1)
LibGranite.gtk_patch_about_dialog_set_authors(@pointer.as(LibGranite::GtkPatchAboutDialog*), value, Int32.new(value_length1))
nil
end
def comments
__return_value = LibGranite.gtk_patch_about_dialog_get_comments(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def comments=(value)
LibGranite.gtk_patch_about_dialog_set_comments(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def copyright
__return_value = LibGranite.gtk_patch_about_dialog_get_copyright(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def copyright=(value)
LibGranite.gtk_patch_about_dialog_set_copyright(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def documenters(result_length1)
__return_value = LibGranite.gtk_patch_about_dialog_get_documenters(@pointer.as(LibGranite::GtkPatchAboutDialog*), result_length1)
PointerIterator.new(__return_value) {|__item| (raise "Expected string but got null" unless __item; ::String.new(__item)) }
end
def set_documenters(value, value_length1)
LibGranite.gtk_patch_about_dialog_set_documenters(@pointer.as(LibGranite::GtkPatchAboutDialog*), value, Int32.new(value_length1))
nil
end
def license
__return_value = LibGranite.gtk_patch_about_dialog_get_license(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def license=(value)
LibGranite.gtk_patch_about_dialog_set_license(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def license_type
__return_value = LibGranite.gtk_patch_about_dialog_get_license_type(@pointer.as(LibGranite::GtkPatchAboutDialog*))
Gtk::License.new(__return_value)
end
def license_type=(value : Gtk::License)
LibGranite.gtk_patch_about_dialog_set_license_type(@pointer.as(LibGranite::GtkPatchAboutDialog*), value)
nil
end
def logo
__return_value = LibGranite.gtk_patch_about_dialog_get_logo(@pointer.as(LibGranite::GtkPatchAboutDialog*))
GdkPixbuf::Pixbuf.new(__return_value)
end
def logo=(value)
LibGranite.gtk_patch_about_dialog_set_logo(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe.as(LibGdkPixbuf::Pixbuf*))
nil
end
def logo_icon_name
__return_value = LibGranite.gtk_patch_about_dialog_get_logo_icon_name(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def logo_icon_name=(value)
LibGranite.gtk_patch_about_dialog_set_logo_icon_name(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def program_name
__return_value = LibGranite.gtk_patch_about_dialog_get_program_name(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def program_name=(value)
LibGranite.gtk_patch_about_dialog_set_program_name(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def translator_credits
__return_value = LibGranite.gtk_patch_about_dialog_get_translator_credits(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def translator_credits=(value)
LibGranite.gtk_patch_about_dialog_set_translator_credits(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def version
__return_value = LibGranite.gtk_patch_about_dialog_get_version(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def version=(value)
LibGranite.gtk_patch_about_dialog_set_version(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def website
__return_value = LibGranite.gtk_patch_about_dialog_get_website(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def website=(value)
LibGranite.gtk_patch_about_dialog_set_website(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
def website_label
__return_value = LibGranite.gtk_patch_about_dialog_get_website_label(@pointer.as(LibGranite::GtkPatchAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def website_label=(value)
LibGranite.gtk_patch_about_dialog_set_website_label(@pointer.as(LibGranite::GtkPatchAboutDialog*), value.to_unsafe)
nil
end
alias ActivateLinkSignal = GtkPatchAboutDialog, String -> Bool
def on_activate_link(&__block : ActivateLinkSignal)
__callback = ->(_arg0 : LibGranite::GtkPatchAboutDialog*, _arg1 : UInt8**) {
__return_value = __block.call(GtkPatchAboutDialog.new(_arg0), (raise "Expected string but got null" unless _arg1; ::String.new(_arg1)))
__return_value
}
connect("activate-link", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/GtkPatchAboutDialogPrivate",1,1>
class GtkPatchAboutDialogPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::GtkPatchAboutDialogPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::GtkPatchAboutDialogPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesLogLevel",1,1>
enum ServicesLogLevel : UInt32
ZERO_NONE = 0
DEBUG = 0
INFO = 1
NOTIFY = 2
WARN = 3
ERROR = 4
FATAL = 5
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ContractorError",1,1>
enum ContractorError : UInt32
ZERO_NONE = 0
SERVICE_NOT_AVAILABLE = 0
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesSettings",1,1>
class ServicesSettings < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::ServicesSettings*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesSettings*)
end
def schema
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "schema", gvalue)
Gio::Settings.cast(gvalue.object)
end
def schema=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "schema", gvalue)
end
def verify(key)
LibGranite.services_settings_verify(@pointer.as(LibGranite::ServicesSettings*), key.to_unsafe)
nil
end
def schema
__return_value = LibGranite.services_settings_get_schema(@pointer.as(LibGranite::ServicesSettings*))
Gio::Settings.new(__return_value)
end
alias ChangedSignal = ServicesSettings ->
def on_changed(&__block : ChangedSignal)
__callback = ->(_arg0 : LibGranite::ServicesSettings*) {
__return_value = __block.call(ServicesSettings.new(_arg0))
__return_value
}
connect("changed", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesSettingsPrivate",1,1>
class ServicesSettingsPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ServicesSettingsPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesSettingsPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesLogger",1,1>
class ServicesLogger < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::ServicesLogger*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesLogger*)
end
def DisplayLevel
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "DisplayLevel", gvalue)
gvalue.enum
end
def DisplayLevel=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "DisplayLevel", gvalue)
end
def self.init(app_name)
LibGranite.services_logger_init(app_name.to_unsafe)
nil
end
def self.notification(msg)
LibGranite.services_logger_notification(msg.to_unsafe)
nil
end
def self.new : self
__return_value = LibGranite.services_logger_new
cast Granite::ServicesLogger.new(__return_value)
end
def self.display_level
__return_value = LibGranite.services_logger_get_DisplayLevel
Granite::ServicesLogLevel.new(__return_value)
end
def self.set_display_level(value : Granite::ServicesLogLevel)
LibGranite.services_logger_set_DisplayLevel(value)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesLoggerPrivate",1,1>
class ServicesLoggerPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ServicesLoggerPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesLoggerPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesPaths",1,1>
class ServicesPaths < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::ServicesPaths*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesPaths*)
end
def home_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "home_folder", gvalue)
gvalue
end
def home_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "home_folder", gvalue)
end
def data_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "data_folder", gvalue)
gvalue
end
def data_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "data_folder", gvalue)
end
def xdg_config_home_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "xdg_config_home_folder", gvalue)
gvalue
end
def xdg_config_home_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "xdg_config_home_folder", gvalue)
end
def xdg_data_home_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "xdg_data_home_folder", gvalue)
gvalue
end
def xdg_data_home_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "xdg_data_home_folder", gvalue)
end
def xdg_cache_home_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "xdg_cache_home_folder", gvalue)
gvalue
end
def xdg_cache_home_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "xdg_cache_home_folder", gvalue)
end
def xdg_data_dir_folders
gvalue = GObject::Value.new(GObject::Type::GLIST)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "xdg_data_dir_folders", gvalue)
gvalue
end
def xdg_data_dir_folders=(value)
gvalue = GObject::Value.new(GObject::Type::GLIST)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "xdg_data_dir_folders", gvalue)
end
def user_config_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "user_config_folder", gvalue)
gvalue
end
def user_config_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "user_config_folder", gvalue)
end
def user_data_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "user_data_folder", gvalue)
gvalue
end
def user_data_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "user_data_folder", gvalue)
end
def user_cache_folder
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "user_cache_folder", gvalue)
gvalue
end
def user_cache_folder=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "user_cache_folder", gvalue)
end
def self.init(app_name, data_folder_path)
LibGranite.services_paths_init(app_name.to_unsafe, data_folder_path.to_unsafe)
nil
end
def self.ensure_directory_exists(dir)
__return_value = LibGranite.services_paths_ensure_directory_exists(dir.to_unsafe.as(LibGio::File*))
__return_value
end
def self.new : self
__return_value = LibGranite.services_paths_new
cast Granite::ServicesPaths.new(__return_value)
end
def self.home_folder
__return_value = LibGranite.services_paths_get_home_folder
__return_value
end
def self.set_home_folder(value)
LibGranite.services_paths_set_home_folder(value.to_unsafe.as(LibGio::File*))
nil
end
def self.data_folder
__return_value = LibGranite.services_paths_get_data_folder
__return_value
end
def self.set_data_folder(value)
LibGranite.services_paths_set_data_folder(value.to_unsafe.as(LibGio::File*))
nil
end
def self.xdg_config_home_folder
__return_value = LibGranite.services_paths_get_xdg_config_home_folder
__return_value
end
def self.set_xdg_config_home_folder(value)
LibGranite.services_paths_set_xdg_config_home_folder(value.to_unsafe.as(LibGio::File*))
nil
end
def self.xdg_data_home_folder
__return_value = LibGranite.services_paths_get_xdg_data_home_folder
__return_value
end
def self.set_xdg_data_home_folder(value)
LibGranite.services_paths_set_xdg_data_home_folder(value.to_unsafe.as(LibGio::File*))
nil
end
def self.xdg_cache_home_folder
__return_value = LibGranite.services_paths_get_xdg_cache_home_folder
__return_value
end
def self.set_xdg_cache_home_folder(value)
LibGranite.services_paths_set_xdg_cache_home_folder(value.to_unsafe.as(LibGio::File*))
nil
end
def self.xdg_data_dir_folders
__return_value = LibGranite.services_paths_get_xdg_data_dir_folders
GLib::ListIterator(Gio::File, LibGio::File**).new(GLib::SList.new(__return_value.as(LibGLib::List*)))
end
def self.set_xdg_data_dir_folders(value)
LibGranite.services_paths_set_xdg_data_dir_folders(value)
nil
end
def self.user_config_folder
__return_value = LibGranite.services_paths_get_user_config_folder
__return_value
end
def self.set_user_config_folder(value)
LibGranite.services_paths_set_user_config_folder(value.to_unsafe.as(LibGio::File*))
nil
end
def self.user_data_folder
__return_value = LibGranite.services_paths_get_user_data_folder
__return_value
end
def self.set_user_data_folder(value)
LibGranite.services_paths_set_user_data_folder(value.to_unsafe.as(LibGio::File*))
nil
end
def self.user_cache_folder
__return_value = LibGranite.services_paths_get_user_cache_folder
__return_value
end
def self.set_user_cache_folder(value)
LibGranite.services_paths_set_user_cache_folder(value.to_unsafe.as(LibGio::File*))
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesPathsPrivate",1,1>
class ServicesPathsPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ServicesPathsPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesPathsPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesSystem",1,1>
class ServicesSystem < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::ServicesSystem*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesSystem*)
end
def self.open_uri(uri)
LibGranite.services_system_open_uri(uri.to_unsafe)
nil
end
def self.open(file)
LibGranite.services_system_open(file.to_unsafe.as(LibGio::File*))
nil
end
def self.open_files(files, files_length1)
LibGranite.services_system_open_files(files, Int32.new(files_length1))
nil
end
def self.launch(app)
LibGranite.services_system_launch(app.to_unsafe.as(LibGio::File*))
nil
end
def self.execute_command(command)
__return_value = LibGranite.services_system_execute_command(command.to_unsafe)
__return_value
end
def self.launch_with_files(app, files, files_length1)
LibGranite.services_system_launch_with_files(app ? app.to_unsafe.as(LibGio::File*) : nil, files, Int32.new(files_length1))
nil
end
def self.new : self
__return_value = LibGranite.services_system_new
cast Granite::ServicesSystem.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesSystemPrivate",1,1>
class ServicesSystemPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ServicesSystemPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesSystemPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesContractorProxy",1,1>
class ServicesContractorProxy < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::ServicesContractorProxy*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesContractorProxy*)
end
def self.instance
__error = Pointer(LibGLib::Error).null
__return_value = LibGranite.services_contractor_proxy_get_instance(pointerof(__error))
GLib::Error.assert __error
Granite::ServicesContractorProxy.new(__return_value)
end
def self.all_contracts
__error = Pointer(LibGLib::Error).null
__return_value = LibGranite.services_contractor_proxy_get_all_contracts(pointerof(__error))
GLib::Error.assert __error
__return_value
end
def self.contracts_by_mime(mime_type)
__error = Pointer(LibGLib::Error).null
__return_value = LibGranite.services_contractor_proxy_get_contracts_by_mime(mime_type.to_unsafe, pointerof(__error))
GLib::Error.assert __error
__return_value
end
def self.contracts_by_mimelist(mime_types, mime_types_length1)
__error = Pointer(LibGLib::Error).null
__return_value = LibGranite.services_contractor_proxy_get_contracts_by_mimelist(mime_types, Int32.new(mime_types_length1), pointerof(__error))
GLib::Error.assert __error
__return_value
end
def self.contracts_for_file(file)
__error = Pointer(LibGLib::Error).null
__return_value = LibGranite.services_contractor_proxy_get_contracts_for_file(file.to_unsafe.as(LibGio::File*), pointerof(__error))
GLib::Error.assert __error
__return_value
end
def self.contracts_for_files(files, files_length1)
__error = Pointer(LibGLib::Error).null
__return_value = LibGranite.services_contractor_proxy_get_contracts_for_files(files, Int32.new(files_length1), pointerof(__error))
GLib::Error.assert __error
__return_value
end
alias ContractsChangedSignal = ServicesContractorProxy ->
def on_contracts_changed(&__block : ContractsChangedSignal)
__callback = ->(_arg0 : LibGranite::ServicesContractorProxy*) {
__return_value = __block.call(ServicesContractorProxy.new(_arg0))
__return_value
}
connect("contracts-changed", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesContractorProxyPrivate",1,1>
class ServicesContractorProxyPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ServicesContractorProxyPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesContractorProxyPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesIconFactory",1,1>
class ServicesIconFactory < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::ServicesIconFactory*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesIconFactory*)
end
def self.new : self
__return_value = LibGranite.services_icon_factory_new
cast Granite::ServicesIconFactory.new(__return_value)
end
def self.default
__return_value = LibGranite.services_icon_factory_get_default
Granite::ServicesIconFactory.new(__return_value)
end
def load_symbolic_icon_from_gicon(style, gicon, size)
__return_value = LibGranite.services_icon_factory_load_symbolic_icon_from_gicon(@pointer.as(LibGranite::ServicesIconFactory*), style.to_unsafe.as(LibGtk::StyleContext*), gicon.to_unsafe.as(LibGio::Icon*), Int32.new(size))
GdkPixbuf::Pixbuf.new(__return_value)
end
def load_symbolic_icon(style, iconname, size)
__return_value = LibGranite.services_icon_factory_load_symbolic_icon(@pointer.as(LibGranite::ServicesIconFactory*), style.to_unsafe.as(LibGtk::StyleContext*), iconname.to_unsafe, Int32.new(size))
GdkPixbuf::Pixbuf.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesIconFactoryPrivate",1,1>
class ServicesIconFactoryPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ServicesIconFactoryPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesIconFactoryPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesSimpleCommand",1,1>
class ServicesSimpleCommand < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::ServicesSimpleCommand*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesSimpleCommand*)
end
def self.new(dir, command) : self
__return_value = LibGranite.services_simple_command_new(dir.to_unsafe, command.to_unsafe)
cast Granite::ServicesSimpleCommand.new(__return_value)
end
def run
LibGranite.services_simple_command_run(@pointer.as(LibGranite::ServicesSimpleCommand*))
nil
end
alias DoneSignal = ServicesSimpleCommand, Int32 ->
def on_done(&__block : DoneSignal)
__callback = ->(_arg0 : LibGranite::ServicesSimpleCommand*, _arg1 : Int32*) {
__return_value = __block.call(ServicesSimpleCommand.new(_arg0), _arg1)
__return_value
}
connect("done", __callback)
end
alias OutputChangedSignal = ServicesSimpleCommand, String ->
def on_output_changed(&__block : OutputChangedSignal)
__callback = ->(_arg0 : LibGranite::ServicesSimpleCommand*, _arg1 : UInt8**) {
__return_value = __block.call(ServicesSimpleCommand.new(_arg0), (raise "Expected string but got null" unless _arg1; ::String.new(_arg1)))
__return_value
}
connect("output-changed", __callback)
end
alias StandardChangedSignal = ServicesSimpleCommand, String ->
def on_standard_changed(&__block : StandardChangedSignal)
__callback = ->(_arg0 : LibGranite::ServicesSimpleCommand*, _arg1 : UInt8**) {
__return_value = __block.call(ServicesSimpleCommand.new(_arg0), (raise "Expected string but got null" unless _arg1; ::String.new(_arg1)))
__return_value
}
connect("standard-changed", __callback)
end
alias ErrorChangedSignal = ServicesSimpleCommand, String ->
def on_error_changed(&__block : ErrorChangedSignal)
__callback = ->(_arg0 : LibGranite::ServicesSimpleCommand*, _arg1 : UInt8**) {
__return_value = __block.call(ServicesSimpleCommand.new(_arg0), (raise "Expected string but got null" unless _arg1; ::String.new(_arg1)))
__return_value
}
connect("error-changed", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesSimpleCommandPrivate",1,1>
class ServicesSimpleCommandPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ServicesSimpleCommandPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ServicesSimpleCommandPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/DrawingColor",1,1>
class DrawingColor < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::DrawingColor*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::DrawingColor*)
end
include Granite::ServicesSettingsSerializable
def self.alpha_from_int(color)
__return_value = LibGranite.drawing_color_alpha_from_int(Int32.new(color))
__return_value
end
def self.red_from_int(color)
__return_value = LibGranite.drawing_color_red_from_int(Int32.new(color))
__return_value
end
def self.green_from_int(color)
__return_value = LibGranite.drawing_color_green_from_int(Int32.new(color))
__return_value
end
def self.blue_from_int(color)
__return_value = LibGranite.drawing_color_blue_from_int(Int32.new(color))
__return_value
end
def self.new(_R, _G, _B, _A) : self
__return_value = LibGranite.drawing_color_new(Float64.new(_R), Float64.new(_G), Float64.new(_B), Float64.new(_A))
cast Granite::DrawingColor.new(__return_value)
end
def self.from_gdk(color) : self
__return_value = LibGranite.drawing_color_from_gdk(color)
cast Granite::DrawingColor.new(__return_value)
end
def self.from_rgba(color) : self
__return_value = LibGranite.drawing_color_from_rgba(color)
cast Granite::DrawingColor.new(__return_value)
end
def self.from_string(color) : self
__return_value = LibGranite.drawing_color_from_string(color.to_unsafe)
cast Granite::DrawingColor.new(__return_value)
end
def self.from_int(color) : self
__return_value = LibGranite.drawing_color_from_int(Int32.new(color))
cast Granite::DrawingColor.new(__return_value)
end
def hue=(hue)
__return_value = LibGranite.drawing_color_set_hue(@pointer.as(LibGranite::DrawingColor*), Float64.new(hue))
Granite::DrawingColor.new(__return_value)
end
def sat=(sat)
__return_value = LibGranite.drawing_color_set_sat(@pointer.as(LibGranite::DrawingColor*), Float64.new(sat))
Granite::DrawingColor.new(__return_value)
end
def val=(val)
__return_value = LibGranite.drawing_color_set_val(@pointer.as(LibGranite::DrawingColor*), Float64.new(val))
Granite::DrawingColor.new(__return_value)
end
def alpha=(alpha)
__return_value = LibGranite.drawing_color_set_alpha(@pointer.as(LibGranite::DrawingColor*), Float64.new(alpha))
Granite::DrawingColor.new(__return_value)
end
def hue
__return_value = LibGranite.drawing_color_get_hue(@pointer.as(LibGranite::DrawingColor*))
__return_value
end
def sat
__return_value = LibGranite.drawing_color_get_sat(@pointer.as(LibGranite::DrawingColor*))
__return_value
end
def val
__return_value = LibGranite.drawing_color_get_val(@pointer.as(LibGranite::DrawingColor*))
__return_value
end
def add_hue(val)
__return_value = LibGranite.drawing_color_add_hue(@pointer.as(LibGranite::DrawingColor*), Float64.new(val))
Granite::DrawingColor.new(__return_value)
end
def min_sat=(sat)
__return_value = LibGranite.drawing_color_set_min_sat(@pointer.as(LibGranite::DrawingColor*), Float64.new(sat))
Granite::DrawingColor.new(__return_value)
end
def min_value=(val)
__return_value = LibGranite.drawing_color_set_min_value(@pointer.as(LibGranite::DrawingColor*), Float64.new(val))
Granite::DrawingColor.new(__return_value)
end
def max_sat=(sat)
__return_value = LibGranite.drawing_color_set_max_sat(@pointer.as(LibGranite::DrawingColor*), Float64.new(sat))
Granite::DrawingColor.new(__return_value)
end
def max_val=(val)
__return_value = LibGranite.drawing_color_set_max_val(@pointer.as(LibGranite::DrawingColor*), Float64.new(val))
Granite::DrawingColor.new(__return_value)
end
def multiply_sat(amount)
__return_value = LibGranite.drawing_color_multiply_sat(@pointer.as(LibGranite::DrawingColor*), Float64.new(amount))
Granite::DrawingColor.new(__return_value)
end
def brighten_val(amount)
__return_value = LibGranite.drawing_color_brighten_val(@pointer.as(LibGranite::DrawingColor*), Float64.new(amount))
Granite::DrawingColor.new(__return_value)
end
def darken_val(amount)
__return_value = LibGranite.drawing_color_darken_val(@pointer.as(LibGranite::DrawingColor*), Float64.new(amount))
Granite::DrawingColor.new(__return_value)
end
def darken_by_sat(amount)
__return_value = LibGranite.drawing_color_darken_by_sat(@pointer.as(LibGranite::DrawingColor*), Float64.new(amount))
Granite::DrawingColor.new(__return_value)
end
def to_string
__return_value = LibGranite.drawing_color_to_string(@pointer.as(LibGranite::DrawingColor*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def to_int
__return_value = LibGranite.drawing_color_to_int(@pointer.as(LibGranite::DrawingColor*))
__return_value
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ServicesContract",1,1>
module ServicesContract
def display_name
__return_value = LibGranite.services_contract_get_display_name(@pointer.as(LibGranite::ServicesContract*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def description
__return_value = LibGranite.services_contract_get_description(@pointer.as(LibGranite::ServicesContract*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def icon
__return_value = LibGranite.services_contract_get_icon(@pointer.as(LibGranite::ServicesContract*))
__return_value
end
def execute_with_file(file)
__error = Pointer(LibGLib::Error).null
LibGranite.services_contract_execute_with_file(@pointer.as(LibGranite::ServicesContract*), file.to_unsafe.as(LibGio::File*), pointerof(__error))
GLib::Error.assert __error
nil
end
def execute_with_files(files, files_length1)
__error = Pointer(LibGLib::Error).null
LibGranite.services_contract_execute_with_files(@pointer.as(LibGranite::ServicesContract*), files, Int32.new(files_length1), pointerof(__error))
GLib::Error.assert __error
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAlertView",1,1>
class WidgetsAlertView < Gtk::Grid
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAlertView*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAlertView*)
end
def title
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "title", gvalue)
gvalue.string
end
def title=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "title", gvalue)
end
def description
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "description", gvalue)
gvalue.string
end
def description=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "description", gvalue)
end
def icon_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "icon_name", gvalue)
gvalue.string
end
def icon_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "icon_name", gvalue)
end
def self.new(title, description, icon_name) : self
__return_value = LibGranite.widgets_alert_view_new(title.to_unsafe, description.to_unsafe, icon_name.to_unsafe)
cast Granite::WidgetsAlertView.new(__return_value)
end
def show_action(label)
LibGranite.widgets_alert_view_show_action(@pointer.as(LibGranite::WidgetsAlertView*), label ? label.to_unsafe : nil)
nil
end
def hide_action
LibGranite.widgets_alert_view_hide_action(@pointer.as(LibGranite::WidgetsAlertView*))
nil
end
def title
__return_value = LibGranite.widgets_alert_view_get_title(@pointer.as(LibGranite::WidgetsAlertView*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def title=(value)
LibGranite.widgets_alert_view_set_title(@pointer.as(LibGranite::WidgetsAlertView*), value.to_unsafe)
nil
end
def description
__return_value = LibGranite.widgets_alert_view_get_description(@pointer.as(LibGranite::WidgetsAlertView*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def description=(value)
LibGranite.widgets_alert_view_set_description(@pointer.as(LibGranite::WidgetsAlertView*), value.to_unsafe)
nil
end
def icon_name
__return_value = LibGranite.widgets_alert_view_get_icon_name(@pointer.as(LibGranite::WidgetsAlertView*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def icon_name=(value)
LibGranite.widgets_alert_view_set_icon_name(@pointer.as(LibGranite::WidgetsAlertView*), value.to_unsafe)
nil
end
alias ActionActivatedSignal = WidgetsAlertView ->
def on_action_activated(&__block : ActionActivatedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsAlertView*) {
__return_value = __block.call(WidgetsAlertView.new(_arg0))
__return_value
}
connect("action-activated", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAlertViewPrivate",1,1>
class WidgetsAlertViewPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAlertViewPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAlertViewPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAvatar",1,1>
class WidgetsAvatar < Gtk::EventBox
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAvatar*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAvatar*)
end
def pixbuf
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "pixbuf", gvalue)
GdkPixbuf::Pixbuf.cast(gvalue.object)
end
def pixbuf=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "pixbuf", gvalue)
end
def self.new : self
__return_value = LibGranite.widgets_avatar_new
cast Granite::WidgetsAvatar.new(__return_value)
end
def self.from_pixbuf(pixbuf) : self
__return_value = LibGranite.widgets_avatar_from_pixbuf(pixbuf.to_unsafe.as(LibGdkPixbuf::Pixbuf*))
cast Granite::WidgetsAvatar.new(__return_value)
end
def self.from_file(filepath, pixel_size) : self
__return_value = LibGranite.widgets_avatar_from_file(filepath.to_unsafe, Int32.new(pixel_size))
cast Granite::WidgetsAvatar.new(__return_value)
end
def self.with_default_icon(pixel_size) : self
__return_value = LibGranite.widgets_avatar_with_default_icon(Int32.new(pixel_size))
cast Granite::WidgetsAvatar.new(__return_value)
end
def show_default(pixel_size)
LibGranite.widgets_avatar_show_default(@pointer.as(LibGranite::WidgetsAvatar*), Int32.new(pixel_size))
nil
end
def pixbuf
__return_value = LibGranite.widgets_avatar_get_pixbuf(@pointer.as(LibGranite::WidgetsAvatar*))
GdkPixbuf::Pixbuf.new(__return_value)
end
def pixbuf=(value)
LibGranite.widgets_avatar_set_pixbuf(@pointer.as(LibGranite::WidgetsAvatar*), value ? value.to_unsafe.as(LibGdkPixbuf::Pixbuf*) : nil)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAvatarPrivate",1,1>
class WidgetsAvatarPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAvatarPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAvatarPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAboutDialog",1,1>
class WidgetsAboutDialog < GtkPatchAboutDialog
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAboutDialog*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAboutDialog*)
end
def help
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "help", gvalue)
gvalue.string
end
def help=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "help", gvalue)
end
def translate
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "translate", gvalue)
gvalue.string
end
def translate=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "translate", gvalue)
end
def bug
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "bug", gvalue)
gvalue.string
end
def bug=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "bug", gvalue)
end
def self.new : self
__return_value = LibGranite.widgets_about_dialog_new
cast Granite::WidgetsAboutDialog.new(__return_value)
end
def help
__return_value = LibGranite.widgets_about_dialog_get_help(@pointer.as(LibGranite::WidgetsAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def help=(value)
LibGranite.widgets_about_dialog_set_help(@pointer.as(LibGranite::WidgetsAboutDialog*), value.to_unsafe)
nil
end
def translate
__return_value = LibGranite.widgets_about_dialog_get_translate(@pointer.as(LibGranite::WidgetsAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def translate=(value)
LibGranite.widgets_about_dialog_set_translate(@pointer.as(LibGranite::WidgetsAboutDialog*), value.to_unsafe)
nil
end
def bug
__return_value = LibGranite.widgets_about_dialog_get_bug(@pointer.as(LibGranite::WidgetsAboutDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def bug=(value)
LibGranite.widgets_about_dialog_set_bug(@pointer.as(LibGranite::WidgetsAboutDialog*), value.to_unsafe)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAboutDialogPrivate",1,1>
class WidgetsAboutDialogPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAboutDialogPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAboutDialogPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsModeButton",1,1>
class WidgetsModeButton < Gtk::Box
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsModeButton*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsModeButton*)
end
def selected
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "selected", gvalue)
gvalue
end
def selected=(value)
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "selected", gvalue)
end
def n_items
gvalue = GObject::Value.new(GObject::Type::UINT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "n_items", gvalue)
gvalue
end
def self.new : self
__return_value = LibGranite.widgets_mode_button_new
cast Granite::WidgetsModeButton.new(__return_value)
end
def append_pixbuf(pixbuf)
__return_value = LibGranite.widgets_mode_button_append_pixbuf(@pointer.as(LibGranite::WidgetsModeButton*), pixbuf.to_unsafe.as(LibGdkPixbuf::Pixbuf*))
__return_value
end
def append_text(text)
__return_value = LibGranite.widgets_mode_button_append_text(@pointer.as(LibGranite::WidgetsModeButton*), text.to_unsafe)
__return_value
end
def append_icon(icon_name, size : Gtk::IconSize)
__return_value = LibGranite.widgets_mode_button_append_icon(@pointer.as(LibGranite::WidgetsModeButton*), icon_name.to_unsafe, size)
__return_value
end
def append(w)
__return_value = LibGranite.widgets_mode_button_append(@pointer.as(LibGranite::WidgetsModeButton*), w.to_unsafe.as(LibGtk::Widget*))
__return_value
end
def active=(new_active_index)
LibGranite.widgets_mode_button_set_active(@pointer.as(LibGranite::WidgetsModeButton*), Int32.new(new_active_index))
nil
end
def set_item_visible(index, val)
LibGranite.widgets_mode_button_set_item_visible(@pointer.as(LibGranite::WidgetsModeButton*), Int32.new(index), val)
nil
end
def remove(index)
LibGranite.widgets_mode_button_remove(@pointer.as(LibGranite::WidgetsModeButton*), Int32.new(index))
nil
end
def clear_children
LibGranite.widgets_mode_button_clear_children(@pointer.as(LibGranite::WidgetsModeButton*))
nil
end
def selected
__return_value = LibGranite.widgets_mode_button_get_selected(@pointer.as(LibGranite::WidgetsModeButton*))
__return_value
end
def selected=(value)
LibGranite.widgets_mode_button_set_selected(@pointer.as(LibGranite::WidgetsModeButton*), Int32.new(value))
nil
end
def n_items
__return_value = LibGranite.widgets_mode_button_get_n_items(@pointer.as(LibGranite::WidgetsModeButton*))
__return_value
end
alias ModeAddedSignal = WidgetsModeButton, Int32, Gtk::Widget ->
def on_mode_added(&__block : ModeAddedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsModeButton*, _arg1 : Int32*, _arg2 : LibGtk::Widget**) {
__return_value = __block.call(WidgetsModeButton.new(_arg0), _arg1, Gtk::Widget.new(_arg2))
__return_value
}
connect("mode-added", __callback)
end
alias ModeRemovedSignal = WidgetsModeButton, Int32, Gtk::Widget ->
def on_mode_removed(&__block : ModeRemovedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsModeButton*, _arg1 : Int32*, _arg2 : LibGtk::Widget**) {
__return_value = __block.call(WidgetsModeButton.new(_arg0), _arg1, Gtk::Widget.new(_arg2))
__return_value
}
connect("mode-removed", __callback)
end
alias ModeChangedSignal = WidgetsModeButton, Gtk::Widget ->
def on_mode_changed(&__block : ModeChangedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsModeButton*, _arg1 : LibGtk::Widget**) {
__return_value = __block.call(WidgetsModeButton.new(_arg0), Gtk::Widget.new(_arg1))
__return_value
}
connect("mode-changed", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsModeButtonPrivate",1,1>
class WidgetsModeButtonPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsModeButtonPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsModeButtonPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsDatePicker",1,1>
class WidgetsDatePicker < Gtk::Entry
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsDatePicker*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsDatePicker*)
end
include Gtk::Buildable
def format
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "format", gvalue)
gvalue.string
end
def format=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "format", gvalue)
end
def date
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "date", gvalue)
GLib::DateTime.cast(gvalue.object)
end
def date=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "date", gvalue)
end
def self.with_format(format) : self
__return_value = LibGranite.widgets_date_picker_with_format(format.to_unsafe)
cast Granite::WidgetsDatePicker.new(__return_value)
end
def position_dropdown(rect)
LibGranite.widgets_date_picker_position_dropdown(@pointer.as(LibGranite::WidgetsDatePicker*), rect)
nil
end
def self.new : self
__return_value = LibGranite.widgets_date_picker_new
cast Granite::WidgetsDatePicker.new(__return_value)
end
def format
__return_value = LibGranite.widgets_date_picker_get_format(@pointer.as(LibGranite::WidgetsDatePicker*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def date
__return_value = LibGranite.widgets_date_picker_get_date(@pointer.as(LibGranite::WidgetsDatePicker*))
GLib::DateTime.new(__return_value)
end
def date=(value)
LibGranite.widgets_date_picker_set_date(@pointer.as(LibGranite::WidgetsDatePicker*), value.to_unsafe.as(LibGLib::DateTime*))
nil
end
alias DateChangedSignal = WidgetsDatePicker ->
def on_date_changed(&__block : DateChangedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDatePicker*) {
__return_value = __block.call(WidgetsDatePicker.new(_arg0))
__return_value
}
connect("date-changed", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsDatePickerPrivate",1,1>
class WidgetsDatePickerPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsDatePickerPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsDatePickerPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsTimePicker",1,1>
class WidgetsTimePicker < Gtk::Entry
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsTimePicker*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsTimePicker*)
end
def format_12
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "format_12", gvalue)
gvalue.string
end
def format_12=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "format_12", gvalue)
end
def format_24
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "format_24", gvalue)
gvalue.string
end
def format_24=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "format_24", gvalue)
end
def time
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "time", gvalue)
GLib::DateTime.cast(gvalue.object)
end
def time=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "time", gvalue)
end
def self.with_format(format_12, format_24) : self
__return_value = LibGranite.widgets_time_picker_with_format(format_12.to_unsafe, format_24.to_unsafe)
cast Granite::WidgetsTimePicker.new(__return_value)
end
def position_dropdown(x, y)
LibGranite.widgets_time_picker_position_dropdown(@pointer.as(LibGranite::WidgetsTimePicker*), x, y)
nil
end
def self.new : self
__return_value = LibGranite.widgets_time_picker_new
cast Granite::WidgetsTimePicker.new(__return_value)
end
def format_12
__return_value = LibGranite.widgets_time_picker_get_format_12(@pointer.as(LibGranite::WidgetsTimePicker*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def format_24
__return_value = LibGranite.widgets_time_picker_get_format_24(@pointer.as(LibGranite::WidgetsTimePicker*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def time
__return_value = LibGranite.widgets_time_picker_get_time(@pointer.as(LibGranite::WidgetsTimePicker*))
GLib::DateTime.new(__return_value)
end
def time=(value)
LibGranite.widgets_time_picker_set_time(@pointer.as(LibGranite::WidgetsTimePicker*), value.to_unsafe.as(LibGLib::DateTime*))
nil
end
alias TimeChangedSignal = WidgetsTimePicker ->
def on_time_changed(&__block : TimeChangedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsTimePicker*) {
__return_value = __block.call(WidgetsTimePicker.new(_arg0))
__return_value
}
connect("time-changed", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsTimePickerPrivate",1,1>
class WidgetsTimePickerPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsTimePickerPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsTimePickerPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCollapsiblePaned",1,1>
class WidgetsCollapsiblePaned < Gtk::Paned
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCollapsiblePaned*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCollapsiblePaned*)
end
def collapse_mode
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "collapse_mode", gvalue)
gvalue.enum
end
def collapse_mode=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "collapse_mode", gvalue)
end
def self.new(orientation : Gtk::Orientation) : self
__return_value = LibGranite.widgets_collapsible_paned_new(orientation)
cast Granite::WidgetsCollapsiblePaned.new(__return_value)
end
def collapse_mode
__return_value = LibGranite.widgets_collapsible_paned_get_collapse_mode(@pointer.as(LibGranite::WidgetsCollapsiblePaned*))
Granite::CollapseMode.new(__return_value)
end
def collapse_mode=(value : Granite::CollapseMode)
LibGranite.widgets_collapsible_paned_set_collapse_mode(@pointer.as(LibGranite::WidgetsCollapsiblePaned*), value)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCollapsiblePanedPrivate",1,1>
class WidgetsCollapsiblePanedPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCollapsiblePanedPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCollapsiblePanedPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsTab",1,1>
class WidgetsTab < Gtk::EventBox
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsTab*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsTab*)
end
def label
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "label", gvalue)
gvalue.string
end
def label=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "label", gvalue)
end
def pinned
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "pinned", gvalue)
gvalue.boolean
end
def pinned=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "pinned", gvalue)
end
def pinnable
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "pinnable", gvalue)
gvalue.boolean
end
def pinnable=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "pinnable", gvalue)
end
def restore_data
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "restore_data", gvalue)
gvalue.string
end
def restore_data=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "restore_data", gvalue)
end
def page
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "page", gvalue)
Gtk::Widget.cast(gvalue.object)
end
def page=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "page", gvalue)
end
def icon
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "icon", gvalue)
gvalue
end
def icon=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "icon", gvalue)
end
def working
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "working", gvalue)
gvalue.boolean
end
def working=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "working", gvalue)
end
def ellipsize_mode
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "ellipsize_mode", gvalue)
gvalue.enum
end
def ellipsize_mode=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "ellipsize_mode", gvalue)
end
def fixed
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "fixed", gvalue)
gvalue.boolean
end
def fixed=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "fixed", gvalue)
end
def menu
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "menu", gvalue)
Gtk::Menu.cast(gvalue.object)
end
def menu=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "menu", gvalue)
end
def self.new(label, icon, page) : self
__return_value = LibGranite.widgets_tab_new(label ? label.to_unsafe : nil, icon ? icon.to_unsafe.as(LibGio::Icon*) : nil, page ? page.to_unsafe.as(LibGtk::Widget*) : nil)
cast Granite::WidgetsTab.new(__return_value)
end
def close
LibGranite.widgets_tab_close(@pointer.as(LibGranite::WidgetsTab*))
nil
end
def label
__return_value = LibGranite.widgets_tab_get_label(@pointer.as(LibGranite::WidgetsTab*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def label=(value)
LibGranite.widgets_tab_set_label(@pointer.as(LibGranite::WidgetsTab*), value.to_unsafe)
nil
end
def pinned
__return_value = LibGranite.widgets_tab_get_pinned(@pointer.as(LibGranite::WidgetsTab*))
__return_value
end
def pinned=(value)
LibGranite.widgets_tab_set_pinned(@pointer.as(LibGranite::WidgetsTab*), value)
nil
end
def pinnable
__return_value = LibGranite.widgets_tab_get_pinnable(@pointer.as(LibGranite::WidgetsTab*))
__return_value
end
def pinnable=(value)
LibGranite.widgets_tab_set_pinnable(@pointer.as(LibGranite::WidgetsTab*), value)
nil
end
def restore_data
__return_value = LibGranite.widgets_tab_get_restore_data(@pointer.as(LibGranite::WidgetsTab*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def restore_data=(value)
LibGranite.widgets_tab_set_restore_data(@pointer.as(LibGranite::WidgetsTab*), value.to_unsafe)
nil
end
def page
__return_value = LibGranite.widgets_tab_get_page(@pointer.as(LibGranite::WidgetsTab*))
Gtk::Widget.new(__return_value)
end
def page=(value)
LibGranite.widgets_tab_set_page(@pointer.as(LibGranite::WidgetsTab*), value.to_unsafe.as(LibGtk::Widget*))
nil
end
def icon
__return_value = LibGranite.widgets_tab_get_icon(@pointer.as(LibGranite::WidgetsTab*))
__return_value
end
def icon=(value)
LibGranite.widgets_tab_set_icon(@pointer.as(LibGranite::WidgetsTab*), value ? value.to_unsafe.as(LibGio::Icon*) : nil)
nil
end
def working
__return_value = LibGranite.widgets_tab_get_working(@pointer.as(LibGranite::WidgetsTab*))
__return_value
end
def working=(value)
LibGranite.widgets_tab_set_working(@pointer.as(LibGranite::WidgetsTab*), value)
nil
end
def ellipsize_mode
__return_value = LibGranite.widgets_tab_get_ellipsize_mode(@pointer.as(LibGranite::WidgetsTab*))
Pango::EllipsizeMode.new(__return_value)
end
def ellipsize_mode=(value : Pango::EllipsizeMode)
LibGranite.widgets_tab_set_ellipsize_mode(@pointer.as(LibGranite::WidgetsTab*), value)
nil
end
def fixed
__return_value = LibGranite.widgets_tab_get_fixed(@pointer.as(LibGranite::WidgetsTab*))
__return_value
end
def fixed=(value)
LibGranite.widgets_tab_set_fixed(@pointer.as(LibGranite::WidgetsTab*), value)
nil
end
def menu
__return_value = LibGranite.widgets_tab_get_menu(@pointer.as(LibGranite::WidgetsTab*))
Gtk::Menu.new(__return_value)
end
def menu=(value)
LibGranite.widgets_tab_set_menu(@pointer.as(LibGranite::WidgetsTab*), value.to_unsafe.as(LibGtk::Menu*))
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsTabPrivate",1,1>
class WidgetsTabPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsTabPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsTabPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsDynamicNotebook",1,1>
class WidgetsDynamicNotebook < Gtk::EventBox
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsDynamicNotebook*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsDynamicNotebook*)
end
def n_tabs
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "n_tabs", gvalue)
gvalue
end
def show_tabs
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "show_tabs", gvalue)
gvalue.boolean
end
def show_tabs=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "show_tabs", gvalue)
end
def show_icons
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "show_icons", gvalue)
gvalue.boolean
end
def show_icons=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "show_icons", gvalue)
end
def tabs_closable
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "tabs_closable", gvalue)
gvalue.boolean
end
def tabs_closable=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "tabs_closable", gvalue)
end
def allow_drag
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "allow_drag", gvalue)
gvalue.boolean
end
def allow_drag=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "allow_drag", gvalue)
end
def allow_new_window
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "allow_new_window", gvalue)
gvalue.boolean
end
def allow_new_window=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "allow_new_window", gvalue)
end
def allow_duplication
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "allow_duplication", gvalue)
gvalue.boolean
end
def allow_duplication=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "allow_duplication", gvalue)
end
def allow_restoring
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "allow_restoring", gvalue)
gvalue.boolean
end
def allow_restoring=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "allow_restoring", gvalue)
end
def max_restorable_tabs
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "max_restorable_tabs", gvalue)
gvalue
end
def max_restorable_tabs=(value)
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "max_restorable_tabs", gvalue)
end
def add_button_visible
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "add_button_visible", gvalue)
gvalue.boolean
end
def add_button_visible=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "add_button_visible", gvalue)
end
def allow_pinning
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "allow_pinning", gvalue)
gvalue.boolean
end
def allow_pinning=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "allow_pinning", gvalue)
end
def force_left
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "force_left", gvalue)
gvalue.boolean
end
def force_left=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "force_left", gvalue)
end
def add_button_tooltip
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "add_button_tooltip", gvalue)
gvalue.string
end
def add_button_tooltip=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "add_button_tooltip", gvalue)
end
def current
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "current", gvalue)
Granite::WidgetsTab.cast(gvalue.object)
end
def current=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "current", gvalue)
end
def tabs
gvalue = GObject::Value.new(GObject::Type::GLIST)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "tabs", gvalue)
gvalue
end
def group_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "group_name", gvalue)
gvalue.string
end
def group_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "group_name", gvalue)
end
def tab_bar_behavior
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "tab_bar_behavior", gvalue)
gvalue.enum
end
def tab_bar_behavior=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "tab_bar_behavior", gvalue)
end
def menu
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "menu", gvalue)
Gtk::Menu.cast(gvalue.object)
end
def menu=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "menu", gvalue)
end
def self.new : self
__return_value = LibGranite.widgets_dynamic_notebook_new
cast Granite::WidgetsDynamicNotebook.new(__return_value)
end
def remove_tab(tab)
LibGranite.widgets_dynamic_notebook_remove_tab(@pointer.as(LibGranite::WidgetsDynamicNotebook*), tab.to_unsafe.as(LibGranite::WidgetsTab*))
nil
end
def next_page
LibGranite.widgets_dynamic_notebook_next_page(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
nil
end
def previous_page
LibGranite.widgets_dynamic_notebook_previous_page(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
nil
end
def children
__return_value = LibGranite.widgets_dynamic_notebook_get_children(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
GLib::ListIterator(Gtk::Widget, LibGtk::Widget**).new(GLib::SList.new(__return_value.as(LibGLib::List*)))
end
def tab_position(tab)
__return_value = LibGranite.widgets_dynamic_notebook_get_tab_position(@pointer.as(LibGranite::WidgetsDynamicNotebook*), tab.to_unsafe.as(LibGranite::WidgetsTab*))
__return_value
end
def set_tab_position(tab, position)
LibGranite.widgets_dynamic_notebook_set_tab_position(@pointer.as(LibGranite::WidgetsDynamicNotebook*), tab.to_unsafe.as(LibGranite::WidgetsTab*), Int32.new(position))
nil
end
def tab_by_index(index)
__return_value = LibGranite.widgets_dynamic_notebook_get_tab_by_index(@pointer.as(LibGranite::WidgetsDynamicNotebook*), Int32.new(index))
Granite::WidgetsTab.new(__return_value)
end
def tab_by_widget(widget)
__return_value = LibGranite.widgets_dynamic_notebook_get_tab_by_widget(@pointer.as(LibGranite::WidgetsDynamicNotebook*), widget.to_unsafe.as(LibGtk::Widget*))
Granite::WidgetsTab.new(__return_value)
end
def nth_page(index)
__return_value = LibGranite.widgets_dynamic_notebook_get_nth_page(@pointer.as(LibGranite::WidgetsDynamicNotebook*), Int32.new(index))
Gtk::Widget.new(__return_value)
end
def insert_tab(tab, index)
__return_value = LibGranite.widgets_dynamic_notebook_insert_tab(@pointer.as(LibGranite::WidgetsDynamicNotebook*), tab.to_unsafe.as(LibGranite::WidgetsTab*), Int32.new(index))
__return_value
end
def n_tabs
__return_value = LibGranite.widgets_dynamic_notebook_get_n_tabs(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def show_tabs
__return_value = LibGranite.widgets_dynamic_notebook_get_show_tabs(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def show_tabs=(value)
LibGranite.widgets_dynamic_notebook_set_show_tabs(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def show_icons
__return_value = LibGranite.widgets_dynamic_notebook_get_show_icons(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def show_icons=(value)
LibGranite.widgets_dynamic_notebook_set_show_icons(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def tabs_closable
__return_value = LibGranite.widgets_dynamic_notebook_get_tabs_closable(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def tabs_closable=(value)
LibGranite.widgets_dynamic_notebook_set_tabs_closable(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def allow_drag
__return_value = LibGranite.widgets_dynamic_notebook_get_allow_drag(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def allow_drag=(value)
LibGranite.widgets_dynamic_notebook_set_allow_drag(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def allow_new_window
__return_value = LibGranite.widgets_dynamic_notebook_get_allow_new_window(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def allow_new_window=(value)
LibGranite.widgets_dynamic_notebook_set_allow_new_window(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def allow_duplication
__return_value = LibGranite.widgets_dynamic_notebook_get_allow_duplication(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def allow_duplication=(value)
LibGranite.widgets_dynamic_notebook_set_allow_duplication(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def allow_restoring
__return_value = LibGranite.widgets_dynamic_notebook_get_allow_restoring(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def allow_restoring=(value)
LibGranite.widgets_dynamic_notebook_set_allow_restoring(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def max_restorable_tabs
__return_value = LibGranite.widgets_dynamic_notebook_get_max_restorable_tabs(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def max_restorable_tabs=(value)
LibGranite.widgets_dynamic_notebook_set_max_restorable_tabs(@pointer.as(LibGranite::WidgetsDynamicNotebook*), Int32.new(value))
nil
end
def add_button_visible
__return_value = LibGranite.widgets_dynamic_notebook_get_add_button_visible(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def add_button_visible=(value)
LibGranite.widgets_dynamic_notebook_set_add_button_visible(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def allow_pinning
__return_value = LibGranite.widgets_dynamic_notebook_get_allow_pinning(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def allow_pinning=(value)
LibGranite.widgets_dynamic_notebook_set_allow_pinning(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def force_left
__return_value = LibGranite.widgets_dynamic_notebook_get_force_left(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
__return_value
end
def force_left=(value)
LibGranite.widgets_dynamic_notebook_set_force_left(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def add_button_tooltip
__return_value = LibGranite.widgets_dynamic_notebook_get_add_button_tooltip(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def add_button_tooltip=(value)
LibGranite.widgets_dynamic_notebook_set_add_button_tooltip(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value.to_unsafe)
nil
end
def current
__return_value = LibGranite.widgets_dynamic_notebook_get_current(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
Granite::WidgetsTab.new(__return_value)
end
def current=(value)
LibGranite.widgets_dynamic_notebook_set_current(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value.to_unsafe.as(LibGranite::WidgetsTab*))
nil
end
def tabs
__return_value = LibGranite.widgets_dynamic_notebook_get_tabs(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
GLib::ListIterator(Granite::WidgetsTab, LibGranite::WidgetsTab**).new(GLib::SList.new(__return_value.as(LibGLib::List*)))
end
def group_name
__return_value = LibGranite.widgets_dynamic_notebook_get_group_name(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def group_name=(value)
LibGranite.widgets_dynamic_notebook_set_group_name(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value.to_unsafe)
nil
end
def tab_bar_behavior
__return_value = LibGranite.widgets_dynamic_notebook_get_tab_bar_behavior(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
Granite::WidgetsDynamicNotebookTabBarBehavior.new(__return_value)
end
def tab_bar_behavior=(value : Granite::WidgetsDynamicNotebookTabBarBehavior)
LibGranite.widgets_dynamic_notebook_set_tab_bar_behavior(@pointer.as(LibGranite::WidgetsDynamicNotebook*), value)
nil
end
def menu
__return_value = LibGranite.widgets_dynamic_notebook_get_menu(@pointer.as(LibGranite::WidgetsDynamicNotebook*))
Gtk::Menu.new(__return_value)
end
alias TabAddedSignal = WidgetsDynamicNotebook, Granite::WidgetsTab ->
def on_tab_added(&__block : TabAddedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : LibGranite::WidgetsTab**) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), Granite::WidgetsTab.new(_arg1))
__return_value
}
connect("tab-added", __callback)
end
alias TabRemovedSignal = WidgetsDynamicNotebook, Granite::WidgetsTab ->
def on_tab_removed(&__block : TabRemovedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : LibGranite::WidgetsTab**) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), Granite::WidgetsTab.new(_arg1))
__return_value
}
connect("tab-removed", __callback)
end
alias TabSwitchedSignal = WidgetsDynamicNotebook, Granite::WidgetsTab, Granite::WidgetsTab ->
def on_tab_switched(&__block : TabSwitchedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : LibGranite::WidgetsTab**, _arg2 : LibGranite::WidgetsTab**) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), Granite::WidgetsTab.new(_arg1), Granite::WidgetsTab.new(_arg2))
__return_value
}
connect("tab-switched", __callback)
end
alias TabReorderedSignal = WidgetsDynamicNotebook, Granite::WidgetsTab, Int32 ->
def on_tab_reordered(&__block : TabReorderedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : LibGranite::WidgetsTab**, _arg2 : Int32*) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), Granite::WidgetsTab.new(_arg1), _arg2)
__return_value
}
connect("tab-reordered", __callback)
end
alias TabMovedSignal = WidgetsDynamicNotebook, Granite::WidgetsTab, Int32, Int32 ->
def on_tab_moved(&__block : TabMovedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : LibGranite::WidgetsTab**, _arg2 : Int32*, _arg3 : Int32*) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), Granite::WidgetsTab.new(_arg1), _arg2, _arg3)
__return_value
}
connect("tab-moved", __callback)
end
alias TabDuplicatedSignal = WidgetsDynamicNotebook, Granite::WidgetsTab ->
def on_tab_duplicated(&__block : TabDuplicatedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : LibGranite::WidgetsTab**) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), Granite::WidgetsTab.new(_arg1))
__return_value
}
connect("tab-duplicated", __callback)
end
alias TabRestoredSignal = WidgetsDynamicNotebook, String, String, Gio::Icon ->
def on_tab_restored(&__block : TabRestoredSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : UInt8**, _arg2 : UInt8**, _arg3 : LibGio::Icon**) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), (raise "Expected string but got null" unless _arg1; ::String.new(_arg1)), (raise "Expected string but got null" unless _arg2; ::String.new(_arg2)), _arg3)
__return_value
}
connect("tab-restored", __callback)
end
alias NewTabRequestedSignal = WidgetsDynamicNotebook ->
def on_new_tab_requested(&__block : NewTabRequestedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0))
__return_value
}
connect("new-tab-requested", __callback)
end
alias CloseTabRequestedSignal = WidgetsDynamicNotebook, Granite::WidgetsTab -> Bool
def on_close_tab_requested(&__block : CloseTabRequestedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsDynamicNotebook*, _arg1 : LibGranite::WidgetsTab**) {
__return_value = __block.call(WidgetsDynamicNotebook.new(_arg0), Granite::WidgetsTab.new(_arg1))
__return_value
}
connect("close-tab-requested", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsDynamicNotebookPrivate",1,1>
class WidgetsDynamicNotebookPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsDynamicNotebookPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsDynamicNotebookPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsDynamicNotebookTabBarBehavior",1,1>
enum WidgetsDynamicNotebookTabBarBehavior : UInt32
ZERO_NONE = 0
ALWAYS = 0
SINGLE = 1
NEVER = 2
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCompositedWindow",1,1>
class WidgetsCompositedWindow < Gtk::Window
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCompositedWindow*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCompositedWindow*)
end
include Gtk::Buildable
def self.new : self
__return_value = LibGranite.widgets_composited_window_new
cast Granite::WidgetsCompositedWindow.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCompositedWindowPrivate",1,1>
class WidgetsCompositedWindowPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCompositedWindowPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCompositedWindowPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAppMenu",1,1>
class WidgetsAppMenu < Gtk::MenuButton
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAppMenu*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAppMenu*)
end
def self.new(menu) : self
__return_value = LibGranite.widgets_app_menu_new(menu.to_unsafe.as(LibGtk::Menu*))
cast Granite::WidgetsAppMenu.new(__return_value)
end
def self.with_app(application, menu) : self
__return_value = LibGranite.widgets_app_menu_with_app(application ? application.to_unsafe.as(LibGranite::Application*) : nil, menu.to_unsafe.as(LibGtk::Menu*))
cast Granite::WidgetsAppMenu.new(__return_value)
end
def add_items(menu)
LibGranite.widgets_app_menu_add_items(@pointer.as(LibGranite::WidgetsAppMenu*), menu.to_unsafe.as(LibGtk::Menu*))
nil
end
alias ShowAboutSignal = WidgetsAppMenu, Gtk::Widget ->
def on_show_about(&__block : ShowAboutSignal)
__callback = ->(_arg0 : LibGranite::WidgetsAppMenu*, _arg1 : LibGtk::Widget**) {
__return_value = __block.call(WidgetsAppMenu.new(_arg0), Gtk::Widget.new(_arg1))
__return_value
}
connect("show-about", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsAppMenuPrivate",1,1>
class WidgetsAppMenuPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsAppMenuPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsAppMenuPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsWelcome",1,1>
class WidgetsWelcome < Gtk::EventBox
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsWelcome*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsWelcome*)
end
def title
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "title", gvalue)
gvalue.string
end
def title=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "title", gvalue)
end
def subtitle
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "subtitle", gvalue)
gvalue.string
end
def subtitle=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "subtitle", gvalue)
end
def self.new(title_text, subtitle_text) : self
__return_value = LibGranite.widgets_welcome_new(title_text.to_unsafe, subtitle_text.to_unsafe)
cast Granite::WidgetsWelcome.new(__return_value)
end
def set_item_visible(index, val)
LibGranite.widgets_welcome_set_item_visible(@pointer.as(LibGranite::WidgetsWelcome*), UInt32.new(index), val)
nil
end
def remove_item(index)
LibGranite.widgets_welcome_remove_item(@pointer.as(LibGranite::WidgetsWelcome*), UInt32.new(index))
nil
end
def set_item_sensitivity(index, val)
LibGranite.widgets_welcome_set_item_sensitivity(@pointer.as(LibGranite::WidgetsWelcome*), UInt32.new(index), val)
nil
end
def append(icon_name, option_text, description_text)
__return_value = LibGranite.widgets_welcome_append(@pointer.as(LibGranite::WidgetsWelcome*), icon_name.to_unsafe, option_text.to_unsafe, description_text.to_unsafe)
__return_value
end
def append_with_pixbuf(pixbuf, option_text, description_text)
__return_value = LibGranite.widgets_welcome_append_with_pixbuf(@pointer.as(LibGranite::WidgetsWelcome*), pixbuf ? pixbuf.to_unsafe.as(LibGdkPixbuf::Pixbuf*) : nil, option_text.to_unsafe, description_text.to_unsafe)
__return_value
end
def append_with_image(image, option_text, description_text)
__return_value = LibGranite.widgets_welcome_append_with_image(@pointer.as(LibGranite::WidgetsWelcome*), image ? image.to_unsafe.as(LibGtk::Image*) : nil, option_text.to_unsafe, description_text.to_unsafe)
__return_value
end
def button_from_index(index)
__return_value = LibGranite.widgets_welcome_get_button_from_index(@pointer.as(LibGranite::WidgetsWelcome*), Int32.new(index))
Granite::WidgetsWelcomeButton.new(__return_value)
end
def title
__return_value = LibGranite.widgets_welcome_get_title(@pointer.as(LibGranite::WidgetsWelcome*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def title=(value)
LibGranite.widgets_welcome_set_title(@pointer.as(LibGranite::WidgetsWelcome*), value.to_unsafe)
nil
end
def subtitle
__return_value = LibGranite.widgets_welcome_get_subtitle(@pointer.as(LibGranite::WidgetsWelcome*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def subtitle=(value)
LibGranite.widgets_welcome_set_subtitle(@pointer.as(LibGranite::WidgetsWelcome*), value.to_unsafe)
nil
end
alias ActivatedSignal = WidgetsWelcome, Int32 ->
def on_activated(&__block : ActivatedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsWelcome*, _arg1 : Int32*) {
__return_value = __block.call(WidgetsWelcome.new(_arg0), _arg1)
__return_value
}
connect("activated", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsWelcomePrivate",1,1>
class WidgetsWelcomePrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsWelcomePrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsWelcomePrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsWelcomeButton",1,1>
class WidgetsWelcomeButton < Gtk::Button
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsWelcomeButton*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsWelcomeButton*)
end
def title
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "title", gvalue)
gvalue.string
end
def title=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "title", gvalue)
end
def description
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "description", gvalue)
gvalue.string
end
def description=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "description", gvalue)
end
def icon
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "icon", gvalue)
Gtk::Image.cast(gvalue.object)
end
def icon=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "icon", gvalue)
end
def self.new(image, option_text, description_text) : self
__return_value = LibGranite.widgets_welcome_button_new(image ? image.to_unsafe.as(LibGtk::Image*) : nil, option_text.to_unsafe, description_text.to_unsafe)
cast Granite::WidgetsWelcomeButton.new(__return_value)
end
def title
__return_value = LibGranite.widgets_welcome_button_get_title(@pointer.as(LibGranite::WidgetsWelcomeButton*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def title=(value)
LibGranite.widgets_welcome_button_set_title(@pointer.as(LibGranite::WidgetsWelcomeButton*), value.to_unsafe)
nil
end
def description
__return_value = LibGranite.widgets_welcome_button_get_description(@pointer.as(LibGranite::WidgetsWelcomeButton*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def description=(value)
LibGranite.widgets_welcome_button_set_description(@pointer.as(LibGranite::WidgetsWelcomeButton*), value.to_unsafe)
nil
end
def icon
__return_value = LibGranite.widgets_welcome_button_get_icon(@pointer.as(LibGranite::WidgetsWelcomeButton*))
Gtk::Image.new(__return_value)
end
def icon=(value)
LibGranite.widgets_welcome_button_set_icon(@pointer.as(LibGranite::WidgetsWelcomeButton*), value ? value.to_unsafe.as(LibGtk::Image*) : nil)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsWelcomeButtonPrivate",1,1>
class WidgetsWelcomeButtonPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsWelcomeButtonPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsWelcomeButtonPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsToast",1,1>
class WidgetsToast < Gtk::Revealer
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsToast*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsToast*)
end
def title
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "title", gvalue)
gvalue.string
end
def title=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "title", gvalue)
end
def self.new(title) : self
__return_value = LibGranite.widgets_toast_new(title.to_unsafe)
cast Granite::WidgetsToast.new(__return_value)
end
def default_action=(label)
LibGranite.widgets_toast_set_default_action(@pointer.as(LibGranite::WidgetsToast*), label ? label.to_unsafe : nil)
nil
end
def send_notification
LibGranite.widgets_toast_send_notification(@pointer.as(LibGranite::WidgetsToast*))
nil
end
def title
__return_value = LibGranite.widgets_toast_get_title(@pointer.as(LibGranite::WidgetsToast*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def title=(value)
LibGranite.widgets_toast_set_title(@pointer.as(LibGranite::WidgetsToast*), value.to_unsafe)
nil
end
alias ClosedSignal = WidgetsToast ->
def on_closed(&__block : ClosedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsToast*) {
__return_value = __block.call(WidgetsToast.new(_arg0))
__return_value
}
connect("closed", __callback)
end
alias DefaultActionSignal = WidgetsToast ->
def on_default_action(&__block : DefaultActionSignal)
__callback = ->(_arg0 : LibGranite::WidgetsToast*) {
__return_value = __block.call(WidgetsToast.new(_arg0))
__return_value
}
connect("default-action", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsToastPrivate",1,1>
class WidgetsToastPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsToastPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsToastPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsStorageBar",1,1>
class WidgetsStorageBar < Gtk::Box
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsStorageBar*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsStorageBar*)
end
def storage
gvalue = GObject::Value.new(GObject::Type::UINT64)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "storage", gvalue)
gvalue
end
def storage=(value)
gvalue = GObject::Value.new(GObject::Type::UINT64)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "storage", gvalue)
end
def total_usage
gvalue = GObject::Value.new(GObject::Type::UINT64)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "total_usage", gvalue)
gvalue
end
def total_usage=(value)
gvalue = GObject::Value.new(GObject::Type::UINT64)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "total_usage", gvalue)
end
def inner_margin_sides
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "inner_margin_sides", gvalue)
gvalue
end
def inner_margin_sides=(value)
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "inner_margin_sides", gvalue)
end
def self.new(storage) : self
__return_value = LibGranite.widgets_storage_bar_new(UInt64.new(storage))
cast Granite::WidgetsStorageBar.new(__return_value)
end
def self.with_total_usage(storage, total_usage) : self
__return_value = LibGranite.widgets_storage_bar_with_total_usage(UInt64.new(storage), UInt64.new(total_usage))
cast Granite::WidgetsStorageBar.new(__return_value)
end
def update_block_size(description : Granite::WidgetsStorageBarItemDescription, size)
LibGranite.widgets_storage_bar_update_block_size(@pointer.as(LibGranite::WidgetsStorageBar*), description, UInt64.new(size))
nil
end
def storage
__return_value = LibGranite.widgets_storage_bar_get_storage(@pointer.as(LibGranite::WidgetsStorageBar*))
__return_value
end
def storage=(value)
LibGranite.widgets_storage_bar_set_storage(@pointer.as(LibGranite::WidgetsStorageBar*), UInt64.new(value))
nil
end
def total_usage
__return_value = LibGranite.widgets_storage_bar_get_total_usage(@pointer.as(LibGranite::WidgetsStorageBar*))
__return_value
end
def total_usage=(value)
LibGranite.widgets_storage_bar_set_total_usage(@pointer.as(LibGranite::WidgetsStorageBar*), UInt64.new(value))
nil
end
def inner_margin_sides
__return_value = LibGranite.widgets_storage_bar_get_inner_margin_sides(@pointer.as(LibGranite::WidgetsStorageBar*))
__return_value
end
def inner_margin_sides=(value)
LibGranite.widgets_storage_bar_set_inner_margin_sides(@pointer.as(LibGranite::WidgetsStorageBar*), Int32.new(value))
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsStorageBarPrivate",1,1>
class WidgetsStorageBarPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsStorageBarPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsStorageBarPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsStorageBarItemDescription",1,1>
enum WidgetsStorageBarItemDescription : UInt32
ZERO_NONE = 0
OTHER = 0
AUDIO = 1
VIDEO = 2
PHOTO = 3
APP = 4
FILES = 0
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceList",1,1>
class WidgetsSourceList < Gtk::ScrolledWindow
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsSourceList*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsSourceList*)
end
def root
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "root", gvalue)
Granite::WidgetsSourceListExpandableItem.cast(gvalue.object)
end
def root=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "root", gvalue)
end
def selected
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "selected", gvalue)
Granite::WidgetsSourceListItem.cast(gvalue.object)
end
def selected=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "selected", gvalue)
end
def ellipsize_mode
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "ellipsize_mode", gvalue)
gvalue.enum
end
def ellipsize_mode=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "ellipsize_mode", gvalue)
end
def editing
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "editing", gvalue)
gvalue.boolean
end
def self.new(root) : self
__return_value = LibGranite.widgets_source_list_new(root.to_unsafe.as(LibGranite::WidgetsSourceListExpandableItem*))
cast Granite::WidgetsSourceList.new(__return_value)
end
def has_item(item)
__return_value = LibGranite.widgets_source_list_has_item(@pointer.as(LibGranite::WidgetsSourceList*), item.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def set_filter_func(visible_func, visible_func_target, refilter)
LibGranite.widgets_source_list_set_filter_func(@pointer.as(LibGranite::WidgetsSourceList*), visible_func ? visible_func : nil, visible_func_target ? visible_func_target : nil, refilter)
nil
end
def refilter
LibGranite.widgets_source_list_refilter(@pointer.as(LibGranite::WidgetsSourceList*))
nil
end
def item_expanded?(item)
__return_value = LibGranite.widgets_source_list_is_item_expanded(@pointer.as(LibGranite::WidgetsSourceList*), item.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def start_editing_item(item)
__return_value = LibGranite.widgets_source_list_start_editing_item(@pointer.as(LibGranite::WidgetsSourceList*), item.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def stop_editing
LibGranite.widgets_source_list_stop_editing(@pointer.as(LibGranite::WidgetsSourceList*))
nil
end
def enable_drag_source(src_entries, src_entries_length1)
LibGranite.widgets_source_list_enable_drag_source(@pointer.as(LibGranite::WidgetsSourceList*), src_entries, Int32.new(src_entries_length1))
nil
end
def disable_drag_source
LibGranite.widgets_source_list_disable_drag_source(@pointer.as(LibGranite::WidgetsSourceList*))
nil
end
def enable_drag_dest(dest_entries, dest_entries_length1, actions : Gdk::DragAction)
LibGranite.widgets_source_list_enable_drag_dest(@pointer.as(LibGranite::WidgetsSourceList*), dest_entries, Int32.new(dest_entries_length1), actions)
nil
end
def disable_drag_dest
LibGranite.widgets_source_list_disable_drag_dest(@pointer.as(LibGranite::WidgetsSourceList*))
nil
end
def scroll_to_item(item, expand_parents, use_align, row_align)
__return_value = LibGranite.widgets_source_list_scroll_to_item(@pointer.as(LibGranite::WidgetsSourceList*), item.to_unsafe.as(LibGranite::WidgetsSourceListItem*), expand_parents, use_align, Float32.new(row_align))
__return_value
end
def previous_item(reference)
__return_value = LibGranite.widgets_source_list_get_previous_item(@pointer.as(LibGranite::WidgetsSourceList*), reference.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
Granite::WidgetsSourceListItem.new(__return_value)
end
def next_item(reference)
__return_value = LibGranite.widgets_source_list_get_next_item(@pointer.as(LibGranite::WidgetsSourceList*), reference.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
Granite::WidgetsSourceListItem.new(__return_value)
end
def first_child(parent)
__return_value = LibGranite.widgets_source_list_get_first_child(@pointer.as(LibGranite::WidgetsSourceList*), parent.to_unsafe.as(LibGranite::WidgetsSourceListExpandableItem*))
Granite::WidgetsSourceListItem.new(__return_value)
end
def last_child(parent)
__return_value = LibGranite.widgets_source_list_get_last_child(@pointer.as(LibGranite::WidgetsSourceList*), parent.to_unsafe.as(LibGranite::WidgetsSourceListExpandableItem*))
Granite::WidgetsSourceListItem.new(__return_value)
end
def n_visible_children(parent)
__return_value = LibGranite.widgets_source_list_get_n_visible_children(@pointer.as(LibGranite::WidgetsSourceList*), parent.to_unsafe.as(LibGranite::WidgetsSourceListExpandableItem*))
__return_value
end
def root
__return_value = LibGranite.widgets_source_list_get_root(@pointer.as(LibGranite::WidgetsSourceList*))
Granite::WidgetsSourceListExpandableItem.new(__return_value)
end
def root=(value)
LibGranite.widgets_source_list_set_root(@pointer.as(LibGranite::WidgetsSourceList*), value.to_unsafe.as(LibGranite::WidgetsSourceListExpandableItem*))
nil
end
def selected
__return_value = LibGranite.widgets_source_list_get_selected(@pointer.as(LibGranite::WidgetsSourceList*))
Granite::WidgetsSourceListItem.new(__return_value)
end
def selected=(value)
LibGranite.widgets_source_list_set_selected(@pointer.as(LibGranite::WidgetsSourceList*), value ? value.to_unsafe.as(LibGranite::WidgetsSourceListItem*) : nil)
nil
end
def ellipsize_mode
__return_value = LibGranite.widgets_source_list_get_ellipsize_mode(@pointer.as(LibGranite::WidgetsSourceList*))
Pango::EllipsizeMode.new(__return_value)
end
def ellipsize_mode=(value : Pango::EllipsizeMode)
LibGranite.widgets_source_list_set_ellipsize_mode(@pointer.as(LibGranite::WidgetsSourceList*), value)
nil
end
def editing
__return_value = LibGranite.widgets_source_list_get_editing(@pointer.as(LibGranite::WidgetsSourceList*))
__return_value
end
alias ItemSelectedSignal = WidgetsSourceList, Granite::WidgetsSourceListItem ->
def on_item_selected(&__block : ItemSelectedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceList*, _arg1 : LibGranite::WidgetsSourceListItem**) {
__return_value = __block.call(WidgetsSourceList.new(_arg0), Granite::WidgetsSourceListItem.new(_arg1))
__return_value
}
connect("item-selected", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListPrivate",1,1>
class WidgetsSourceListPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsSourceListPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsSourceListPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListItem",1,1>
class WidgetsSourceListItem < GObject::Object
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsSourceListItem*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsSourceListItem*)
end
def parent
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "parent", gvalue)
Granite::WidgetsSourceListExpandableItem.cast(gvalue.object)
end
def parent=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "parent", gvalue)
end
def name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "name", gvalue)
gvalue.string
end
def name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "name", gvalue)
end
def markup
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "markup", gvalue)
gvalue.string
end
def markup=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "markup", gvalue)
end
def badge
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "badge", gvalue)
gvalue.string
end
def badge=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "badge", gvalue)
end
def editable
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "editable", gvalue)
gvalue.boolean
end
def editable=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "editable", gvalue)
end
def visible
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "visible", gvalue)
gvalue.boolean
end
def visible=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "visible", gvalue)
end
def selectable
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "selectable", gvalue)
gvalue.boolean
end
def selectable=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "selectable", gvalue)
end
def icon
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "icon", gvalue)
gvalue
end
def icon=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "icon", gvalue)
end
def activatable
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "activatable", gvalue)
gvalue
end
def activatable=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "activatable", gvalue)
end
def self.new(name) : self
__return_value = LibGranite.widgets_source_list_item_new(name.to_unsafe)
cast Granite::WidgetsSourceListItem.new(__return_value)
end
def context_menu
__return_value = LibGranite.widgets_source_list_item_get_context_menu(@pointer.as(LibGranite::WidgetsSourceListItem*))
Gtk::Menu.new(__return_value)
end
def parent
__return_value = LibGranite.widgets_source_list_item_get_parent(@pointer.as(LibGranite::WidgetsSourceListItem*))
Granite::WidgetsSourceListExpandableItem.new(__return_value)
end
def name
__return_value = LibGranite.widgets_source_list_item_get_name(@pointer.as(LibGranite::WidgetsSourceListItem*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def name=(value)
LibGranite.widgets_source_list_item_set_name(@pointer.as(LibGranite::WidgetsSourceListItem*), value.to_unsafe)
nil
end
def markup
__return_value = LibGranite.widgets_source_list_item_get_markup(@pointer.as(LibGranite::WidgetsSourceListItem*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def markup=(value)
LibGranite.widgets_source_list_item_set_markup(@pointer.as(LibGranite::WidgetsSourceListItem*), value ? value.to_unsafe : nil)
nil
end
def badge
__return_value = LibGranite.widgets_source_list_item_get_badge(@pointer.as(LibGranite::WidgetsSourceListItem*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def badge=(value)
LibGranite.widgets_source_list_item_set_badge(@pointer.as(LibGranite::WidgetsSourceListItem*), value.to_unsafe)
nil
end
def editable
__return_value = LibGranite.widgets_source_list_item_get_editable(@pointer.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def editable=(value)
LibGranite.widgets_source_list_item_set_editable(@pointer.as(LibGranite::WidgetsSourceListItem*), value)
nil
end
def visible
__return_value = LibGranite.widgets_source_list_item_get_visible(@pointer.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def visible=(value)
LibGranite.widgets_source_list_item_set_visible(@pointer.as(LibGranite::WidgetsSourceListItem*), value)
nil
end
def selectable
__return_value = LibGranite.widgets_source_list_item_get_selectable(@pointer.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def selectable=(value)
LibGranite.widgets_source_list_item_set_selectable(@pointer.as(LibGranite::WidgetsSourceListItem*), value)
nil
end
def icon
__return_value = LibGranite.widgets_source_list_item_get_icon(@pointer.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def icon=(value)
LibGranite.widgets_source_list_item_set_icon(@pointer.as(LibGranite::WidgetsSourceListItem*), value.to_unsafe.as(LibGio::Icon*))
nil
end
def activatable
__return_value = LibGranite.widgets_source_list_item_get_activatable(@pointer.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def activatable=(value)
LibGranite.widgets_source_list_item_set_activatable(@pointer.as(LibGranite::WidgetsSourceListItem*), value.to_unsafe.as(LibGio::Icon*))
nil
end
alias EditedSignal = WidgetsSourceListItem, String ->
def on_edited(&__block : EditedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceListItem*, _arg1 : UInt8**) {
__return_value = __block.call(WidgetsSourceListItem.new(_arg0), (raise "Expected string but got null" unless _arg1; ::String.new(_arg1)))
__return_value
}
connect("edited", __callback)
end
alias ActionActivatedSignal = WidgetsSourceListItem ->
def on_action_activated(&__block : ActionActivatedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceListItem*) {
__return_value = __block.call(WidgetsSourceListItem.new(_arg0))
__return_value
}
connect("action-activated", __callback)
end
alias ActivatedSignal = WidgetsSourceListItem ->
def on_activated(&__block : ActivatedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceListItem*) {
__return_value = __block.call(WidgetsSourceListItem.new(_arg0))
__return_value
}
connect("activated", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListItemPrivate",1,1>
class WidgetsSourceListItemPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsSourceListItemPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsSourceListItemPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListExpandableItem",1,1>
class WidgetsSourceListExpandableItem < WidgetsSourceListItem
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsSourceListExpandableItem*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsSourceListExpandableItem*)
end
def collapsible
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "collapsible", gvalue)
gvalue.boolean
end
def collapsible=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "collapsible", gvalue)
end
def expanded
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "expanded", gvalue)
gvalue.boolean
end
def expanded=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "expanded", gvalue)
end
def n_children
gvalue = GObject::Value.new(GObject::Type::UINT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "n_children", gvalue)
gvalue
end
def children
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "children", gvalue)
gvalue
end
def self.new(name) : self
__return_value = LibGranite.widgets_source_list_expandable_item_new(name.to_unsafe)
cast Granite::WidgetsSourceListExpandableItem.new(__return_value)
end
def contains(item)
__return_value = LibGranite.widgets_source_list_expandable_item_contains(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*), item.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
def add(item)
LibGranite.widgets_source_list_expandable_item_add(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*), item.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
nil
end
def remove(item)
LibGranite.widgets_source_list_expandable_item_remove(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*), item.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
nil
end
def clear
LibGranite.widgets_source_list_expandable_item_clear(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*))
nil
end
def expand_all(inclusive, recursive)
LibGranite.widgets_source_list_expandable_item_expand_all(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*), inclusive, recursive)
nil
end
def collapse_all(inclusive, recursive)
LibGranite.widgets_source_list_expandable_item_collapse_all(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*), inclusive, recursive)
nil
end
def expand_with_parents
LibGranite.widgets_source_list_expandable_item_expand_with_parents(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*))
nil
end
def collapse_with_parents
LibGranite.widgets_source_list_expandable_item_collapse_with_parents(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*))
nil
end
def collapsible
__return_value = LibGranite.widgets_source_list_expandable_item_get_collapsible(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*))
__return_value
end
def collapsible=(value)
LibGranite.widgets_source_list_expandable_item_set_collapsible(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*), value)
nil
end
def expanded
__return_value = LibGranite.widgets_source_list_expandable_item_get_expanded(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*))
__return_value
end
def expanded=(value)
LibGranite.widgets_source_list_expandable_item_set_expanded(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*), value)
nil
end
def n_children
__return_value = LibGranite.widgets_source_list_expandable_item_get_n_children(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*))
__return_value
end
def children
__return_value = LibGranite.widgets_source_list_expandable_item_get_children(@pointer.as(LibGranite::WidgetsSourceListExpandableItem*))
__return_value
end
alias ChildAddedSignal = WidgetsSourceListExpandableItem, Granite::WidgetsSourceListItem ->
def on_child_added(&__block : ChildAddedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceListExpandableItem*, _arg1 : LibGranite::WidgetsSourceListItem**) {
__return_value = __block.call(WidgetsSourceListExpandableItem.new(_arg0), Granite::WidgetsSourceListItem.new(_arg1))
__return_value
}
connect("child-added", __callback)
end
alias ChildRemovedSignal = WidgetsSourceListExpandableItem, Granite::WidgetsSourceListItem ->
def on_child_removed(&__block : ChildRemovedSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceListExpandableItem*, _arg1 : LibGranite::WidgetsSourceListItem**) {
__return_value = __block.call(WidgetsSourceListExpandableItem.new(_arg0), Granite::WidgetsSourceListItem.new(_arg1))
__return_value
}
connect("child-removed", __callback)
end
alias ToggledSignal = WidgetsSourceListExpandableItem ->
def on_toggled(&__block : ToggledSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceListExpandableItem*) {
__return_value = __block.call(WidgetsSourceListExpandableItem.new(_arg0))
__return_value
}
connect("toggled", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListExpandableItemPrivate",1,1>
class WidgetsSourceListExpandableItemPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsSourceListExpandableItemPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsSourceListExpandableItemPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCellRendererExpander",1,1>
class WidgetsCellRendererExpander < Gtk::CellRenderer
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCellRendererExpander*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCellRendererExpander*)
end
def is_category_expander
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "is_category_expander", gvalue)
gvalue.boolean
end
def is_category_expander=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "is_category_expander", gvalue)
end
def self.new : self
__return_value = LibGranite.widgets_cell_renderer_expander_new
cast Granite::WidgetsCellRendererExpander.new(__return_value)
end
def arrow_size(widget)
__return_value = LibGranite.widgets_cell_renderer_expander_get_arrow_size(@pointer.as(LibGranite::WidgetsCellRendererExpander*), widget.to_unsafe.as(LibGtk::Widget*))
__return_value
end
def is_category_expander
__return_value = LibGranite.widgets_cell_renderer_expander_get_is_category_expander(@pointer.as(LibGranite::WidgetsCellRendererExpander*))
__return_value
end
def is_category_expander=(value)
LibGranite.widgets_cell_renderer_expander_set_is_category_expander(@pointer.as(LibGranite::WidgetsCellRendererExpander*), value)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCellRendererExpanderPrivate",1,1>
class WidgetsCellRendererExpanderPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCellRendererExpanderPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCellRendererExpanderPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCellRendererBadge",1,1>
class WidgetsCellRendererBadge < Gtk::CellRenderer
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCellRendererBadge*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCellRendererBadge*)
end
def text
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "text", gvalue)
gvalue.string
end
def text=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "text", gvalue)
end
def self.new : self
__return_value = LibGranite.widgets_cell_renderer_badge_new
cast Granite::WidgetsCellRendererBadge.new(__return_value)
end
def text
__return_value = LibGranite.widgets_cell_renderer_badge_get_text(@pointer.as(LibGranite::WidgetsCellRendererBadge*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def text=(value)
LibGranite.widgets_cell_renderer_badge_set_text(@pointer.as(LibGranite::WidgetsCellRendererBadge*), value.to_unsafe)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsCellRendererBadgePrivate",1,1>
class WidgetsCellRendererBadgePrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsCellRendererBadgePrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsCellRendererBadgePrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsOverlayBar",1,1>
class WidgetsOverlayBar < Gtk::EventBox
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsOverlayBar*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsOverlayBar*)
end
def overlay
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "overlay", gvalue)
Gtk::Overlay.cast(gvalue.object)
end
def overlay=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "overlay", gvalue)
end
def status
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "status", gvalue)
gvalue.string
end
def status=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "status", gvalue)
end
def label
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "label", gvalue)
gvalue.string
end
def label=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "label", gvalue)
end
def active
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "active", gvalue)
gvalue.boolean
end
def active=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "active", gvalue)
end
def self.new(overlay) : self
__return_value = LibGranite.widgets_overlay_bar_new(overlay ? overlay.to_unsafe.as(LibGtk::Overlay*) : nil)
cast Granite::WidgetsOverlayBar.new(__return_value)
end
def overlay
__return_value = LibGranite.widgets_overlay_bar_get_overlay(@pointer.as(LibGranite::WidgetsOverlayBar*))
Gtk::Overlay.new(__return_value)
end
def status
__return_value = LibGranite.widgets_overlay_bar_get_status(@pointer.as(LibGranite::WidgetsOverlayBar*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def status=(value)
LibGranite.widgets_overlay_bar_set_status(@pointer.as(LibGranite::WidgetsOverlayBar*), value.to_unsafe)
nil
end
def label
__return_value = LibGranite.widgets_overlay_bar_get_label(@pointer.as(LibGranite::WidgetsOverlayBar*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def label=(value)
LibGranite.widgets_overlay_bar_set_label(@pointer.as(LibGranite::WidgetsOverlayBar*), value.to_unsafe)
nil
end
def active
__return_value = LibGranite.widgets_overlay_bar_get_active(@pointer.as(LibGranite::WidgetsOverlayBar*))
__return_value
end
def active=(value)
LibGranite.widgets_overlay_bar_set_active(@pointer.as(LibGranite::WidgetsOverlayBar*), value)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsOverlayBarPrivate",1,1>
class WidgetsOverlayBarPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::WidgetsOverlayBarPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::WidgetsOverlayBarPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListSortable",1,1>
module WidgetsSourceListSortable
def allow_dnd_sorting
__return_value = LibGranite.widgets_source_list_sortable_allow_dnd_sorting(@pointer.as(LibGranite::WidgetsSourceListSortable*))
__return_value
end
def compare(a, b)
__return_value = LibGranite.widgets_source_list_sortable_compare(@pointer.as(LibGranite::WidgetsSourceListSortable*), a.to_unsafe.as(LibGranite::WidgetsSourceListItem*), b.to_unsafe.as(LibGranite::WidgetsSourceListItem*))
__return_value
end
alias UserMovedItemSignal = WidgetsSourceListSortable, Granite::WidgetsSourceListItem ->
def on_user_moved_item(&__block : UserMovedItemSignal)
__callback = ->(_arg0 : LibGranite::WidgetsSourceListSortable*, _arg1 : LibGranite::WidgetsSourceListItem**) {
__return_value = __block.call(WidgetsSourceListSortable.new(_arg0), Granite::WidgetsSourceListItem.new(_arg1))
__return_value
}
connect("user-moved-item", __callback)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListDragSource",1,1>
module WidgetsSourceListDragSource
def draggable
__return_value = LibGranite.widgets_source_list_drag_source_draggable(@pointer.as(LibGranite::WidgetsSourceListDragSource*))
__return_value
end
def prepare_selection_data(selection_data)
LibGranite.widgets_source_list_drag_source_prepare_selection_data(@pointer.as(LibGranite::WidgetsSourceListDragSource*), selection_data.to_unsafe.as(LibGtk::SelectionData*))
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsSourceListDragDest",1,1>
module WidgetsSourceListDragDest
def data_drop_possible(context, data)
__return_value = LibGranite.widgets_source_list_drag_dest_data_drop_possible(@pointer.as(LibGranite::WidgetsSourceListDragDest*), context.to_unsafe.as(LibGdk::DragContext*), data.to_unsafe.as(LibGtk::SelectionData*))
__return_value
end
def data_received(context, data)
__return_value = LibGranite.widgets_source_list_drag_dest_data_received(@pointer.as(LibGranite::WidgetsSourceListDragDest*), context.to_unsafe.as(LibGdk::DragContext*), data.to_unsafe.as(LibGtk::SelectionData*))
Gdk::DragAction.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/TextStyle",1,1>
enum TextStyle : UInt32
ZERO_NONE = 0
TITLE = 0
H1 = 1
H2 = 2
H3 = 3
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/CloseButtonPosition",1,1>
enum CloseButtonPosition : UInt32
ZERO_NONE = 0
LEFT = 0
RIGHT = 1
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/CollapseMode",1,1>
enum CollapseMode : UInt32
ZERO_NONE = 0
NONE = 0
LEFT = 1
TOP = 1
FIRST = 1
RIGHT = 2
BOTTOM = 2
LAST = 2
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/Application",1,1>
class Application < Gtk::Application
@pointer : Void*
def initialize(pointer : LibGranite::Application*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::Application*)
end
def run(args, args_length1)
__return_value = LibGranite.application_run(@pointer.as(LibGranite::Application*), args, Int32.new(args_length1))
__return_value
end
def set_options
LibGranite.application_set_options(@pointer.as(LibGranite::Application*))
nil
end
def create_appmenu(menu)
__return_value = LibGranite.application_create_appmenu(@pointer.as(LibGranite::Application*), menu.to_unsafe.as(LibGtk::Menu*))
Granite::WidgetsAppMenu.new(__return_value)
end
def show_about(parent)
LibGranite.application_show_about(@pointer.as(LibGranite::Application*), parent.to_unsafe.as(LibGtk::Widget*))
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ApplicationPrivate",1,1>
class ApplicationPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ApplicationPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ApplicationPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SettingsPage",1,1>
class SettingsPage < Gtk::ScrolledWindow
@pointer : Void*
def initialize(pointer : LibGranite::SettingsPage*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SettingsPage*)
end
def status_type
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "status_type", gvalue)
gvalue.enum
end
def status_type=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "status_type", gvalue)
end
def display_widget
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "display_widget", gvalue)
Gtk::Widget.cast(gvalue.object)
end
def display_widget=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "display_widget", gvalue)
end
def header
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "header", gvalue)
gvalue.string
end
def header=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "header", gvalue)
end
def status
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "status", gvalue)
gvalue.string
end
def status=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "status", gvalue)
end
def icon_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "icon_name", gvalue)
gvalue.string
end
def icon_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "icon_name", gvalue)
end
def title
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "title", gvalue)
gvalue.string
end
def title=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "title", gvalue)
end
def status_type
__return_value = LibGranite.settings_page_get_status_type(@pointer.as(LibGranite::SettingsPage*))
Granite::SettingsPageStatusType.new(__return_value)
end
def status_type=(value : Granite::SettingsPageStatusType)
LibGranite.settings_page_set_status_type(@pointer.as(LibGranite::SettingsPage*), value)
nil
end
def display_widget
__return_value = LibGranite.settings_page_get_display_widget(@pointer.as(LibGranite::SettingsPage*))
Gtk::Widget.new(__return_value)
end
def header
__return_value = LibGranite.settings_page_get_header(@pointer.as(LibGranite::SettingsPage*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def status
__return_value = LibGranite.settings_page_get_status(@pointer.as(LibGranite::SettingsPage*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def status=(value)
LibGranite.settings_page_set_status(@pointer.as(LibGranite::SettingsPage*), value.to_unsafe)
nil
end
def icon_name
__return_value = LibGranite.settings_page_get_icon_name(@pointer.as(LibGranite::SettingsPage*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def icon_name=(value)
LibGranite.settings_page_set_icon_name(@pointer.as(LibGranite::SettingsPage*), value ? value.to_unsafe : nil)
nil
end
def title
__return_value = LibGranite.settings_page_get_title(@pointer.as(LibGranite::SettingsPage*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def title=(value)
LibGranite.settings_page_set_title(@pointer.as(LibGranite::SettingsPage*), value.to_unsafe)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SettingsPagePrivate",1,1>
class SettingsPagePrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::SettingsPagePrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SettingsPagePrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SettingsPageStatusType",1,1>
enum SettingsPageStatusType : UInt32
ZERO_NONE = 0
ERROR = 0
OFFLINE = 1
SUCCESS = 2
WARNING = 3
NONE = 4
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SimpleSettingsPage",1,1>
class SimpleSettingsPage < SettingsPage
@pointer : Void*
def initialize(pointer : LibGranite::SimpleSettingsPage*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SimpleSettingsPage*)
end
def action_area
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "action_area", gvalue)
Gtk::ButtonBox.cast(gvalue.object)
end
def action_area=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "action_area", gvalue)
end
def content_area
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "content_area", gvalue)
Gtk::Grid.cast(gvalue.object)
end
def content_area=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "content_area", gvalue)
end
def status_switch
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "status_switch", gvalue)
Gtk::Switch.cast(gvalue.object)
end
def status_switch=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "status_switch", gvalue)
end
def activatable
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "activatable", gvalue)
gvalue.boolean
end
def activatable=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "activatable", gvalue)
end
def description
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "description", gvalue)
gvalue.string
end
def description=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "description", gvalue)
end
def icon_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "icon_name", gvalue)
gvalue.string
end
def icon_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "icon_name", gvalue)
end
def title
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "title", gvalue)
gvalue.string
end
def title=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "title", gvalue)
end
def action_area
__return_value = LibGranite.simple_settings_page_get_action_area(@pointer.as(LibGranite::SimpleSettingsPage*))
Gtk::ButtonBox.new(__return_value)
end
def content_area
__return_value = LibGranite.simple_settings_page_get_content_area(@pointer.as(LibGranite::SimpleSettingsPage*))
Gtk::Grid.new(__return_value)
end
def status_switch
__return_value = LibGranite.simple_settings_page_get_status_switch(@pointer.as(LibGranite::SimpleSettingsPage*))
Gtk::Switch.new(__return_value)
end
def activatable
__return_value = LibGranite.simple_settings_page_get_activatable(@pointer.as(LibGranite::SimpleSettingsPage*))
__return_value
end
def description
__return_value = LibGranite.simple_settings_page_get_description(@pointer.as(LibGranite::SimpleSettingsPage*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def description=(value)
LibGranite.simple_settings_page_set_description(@pointer.as(LibGranite::SimpleSettingsPage*), value.to_unsafe)
nil
end
def icon_name
__return_value = LibGranite.simple_settings_page_get_icon_name(@pointer.as(LibGranite::SimpleSettingsPage*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def icon_name=(value)
LibGranite.simple_settings_page_set_icon_name(@pointer.as(LibGranite::SimpleSettingsPage*), value.to_unsafe)
nil
end
def title
__return_value = LibGranite.simple_settings_page_get_title(@pointer.as(LibGranite::SimpleSettingsPage*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def title=(value)
LibGranite.simple_settings_page_set_title(@pointer.as(LibGranite::SimpleSettingsPage*), value.to_unsafe)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SimpleSettingsPagePrivate",1,1>
class SimpleSettingsPagePrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::SimpleSettingsPagePrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SimpleSettingsPagePrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ModeSwitch",1,1>
class ModeSwitch < Gtk::Grid
@pointer : Void*
def initialize(pointer : LibGranite::ModeSwitch*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ModeSwitch*)
end
def active
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "active", gvalue)
gvalue.boolean
end
def active=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "active", gvalue)
end
def primary_icon_gicon
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "primary_icon_gicon", gvalue)
gvalue
end
def primary_icon_gicon=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "primary_icon_gicon", gvalue)
end
def primary_icon_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "primary_icon_name", gvalue)
gvalue.string
end
def primary_icon_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "primary_icon_name", gvalue)
end
def primary_icon_tooltip_text
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "primary_icon_tooltip_text", gvalue)
gvalue.string
end
def primary_icon_tooltip_text=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "primary_icon_tooltip_text", gvalue)
end
def secondary_icon_gicon
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "secondary_icon_gicon", gvalue)
gvalue
end
def secondary_icon_gicon=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "secondary_icon_gicon", gvalue)
end
def secondary_icon_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "secondary_icon_name", gvalue)
gvalue.string
end
def secondary_icon_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "secondary_icon_name", gvalue)
end
def secondary_icon_tooltip_text
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "secondary_icon_tooltip_text", gvalue)
gvalue.string
end
def secondary_icon_tooltip_text=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "secondary_icon_tooltip_text", gvalue)
end
def self.new(primary_icon_gicon, secondary_icon_gicon) : self
__return_value = LibGranite.mode_switch_new(primary_icon_gicon.to_unsafe.as(LibGio::Icon*), secondary_icon_gicon.to_unsafe.as(LibGio::Icon*))
cast Granite::ModeSwitch.new(__return_value)
end
def self.from_icon_name(primary_icon_name, secondary_icon_name) : self
__return_value = LibGranite.mode_switch_from_icon_name(primary_icon_name.to_unsafe, secondary_icon_name.to_unsafe)
cast Granite::ModeSwitch.new(__return_value)
end
def active
__return_value = LibGranite.mode_switch_get_active(@pointer.as(LibGranite::ModeSwitch*))
__return_value
end
def active=(value)
LibGranite.mode_switch_set_active(@pointer.as(LibGranite::ModeSwitch*), value)
nil
end
def primary_icon_gicon
__return_value = LibGranite.mode_switch_get_primary_icon_gicon(@pointer.as(LibGranite::ModeSwitch*))
__return_value
end
def primary_icon_gicon=(value)
LibGranite.mode_switch_set_primary_icon_gicon(@pointer.as(LibGranite::ModeSwitch*), value.to_unsafe.as(LibGio::Icon*))
nil
end
def primary_icon_name
__return_value = LibGranite.mode_switch_get_primary_icon_name(@pointer.as(LibGranite::ModeSwitch*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def primary_icon_name=(value)
LibGranite.mode_switch_set_primary_icon_name(@pointer.as(LibGranite::ModeSwitch*), value.to_unsafe)
nil
end
def primary_icon_tooltip_text
__return_value = LibGranite.mode_switch_get_primary_icon_tooltip_text(@pointer.as(LibGranite::ModeSwitch*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def primary_icon_tooltip_text=(value)
LibGranite.mode_switch_set_primary_icon_tooltip_text(@pointer.as(LibGranite::ModeSwitch*), value.to_unsafe)
nil
end
def secondary_icon_gicon
__return_value = LibGranite.mode_switch_get_secondary_icon_gicon(@pointer.as(LibGranite::ModeSwitch*))
__return_value
end
def secondary_icon_gicon=(value)
LibGranite.mode_switch_set_secondary_icon_gicon(@pointer.as(LibGranite::ModeSwitch*), value.to_unsafe.as(LibGio::Icon*))
nil
end
def secondary_icon_name
__return_value = LibGranite.mode_switch_get_secondary_icon_name(@pointer.as(LibGranite::ModeSwitch*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def secondary_icon_name=(value)
LibGranite.mode_switch_set_secondary_icon_name(@pointer.as(LibGranite::ModeSwitch*), value.to_unsafe)
nil
end
def secondary_icon_tooltip_text
__return_value = LibGranite.mode_switch_get_secondary_icon_tooltip_text(@pointer.as(LibGranite::ModeSwitch*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def secondary_icon_tooltip_text=(value)
LibGranite.mode_switch_set_secondary_icon_tooltip_text(@pointer.as(LibGranite::ModeSwitch*), value.to_unsafe)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/ModeSwitchPrivate",1,1>
class ModeSwitchPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::ModeSwitchPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::ModeSwitchPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SeekBar",1,1>
class SeekBar < Gtk::Grid
@pointer : Void*
def initialize(pointer : LibGranite::SeekBar*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SeekBar*)
end
def playback_duration
gvalue = GObject::Value.new(GObject::Type::DOUBLE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "playback_duration", gvalue)
gvalue
end
def playback_duration=(value)
gvalue = GObject::Value.new(GObject::Type::DOUBLE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "playback_duration", gvalue)
end
def playback_progress
gvalue = GObject::Value.new(GObject::Type::DOUBLE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "playback_progress", gvalue)
gvalue
end
def playback_progress=(value)
gvalue = GObject::Value.new(GObject::Type::DOUBLE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "playback_progress", gvalue)
end
def is_grabbing
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "is_grabbing", gvalue)
gvalue.boolean
end
def is_grabbing=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "is_grabbing", gvalue)
end
def is_hovering
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "is_hovering", gvalue)
gvalue.boolean
end
def is_hovering=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "is_hovering", gvalue)
end
def progression_label
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "progression_label", gvalue)
Gtk::Label.cast(gvalue.object)
end
def progression_label=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "progression_label", gvalue)
end
def duration_label
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "duration_label", gvalue)
Gtk::Label.cast(gvalue.object)
end
def duration_label=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "duration_label", gvalue)
end
def scale
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "scale", gvalue)
Gtk::Scale.cast(gvalue.object)
end
def scale=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "scale", gvalue)
end
def self.new(playback_duration) : self
__return_value = LibGranite.seek_bar_new(Float64.new(playback_duration))
cast Granite::SeekBar.new(__return_value)
end
def playback_duration
__return_value = LibGranite.seek_bar_get_playback_duration(@pointer.as(LibGranite::SeekBar*))
__return_value
end
def playback_duration=(value)
LibGranite.seek_bar_set_playback_duration(@pointer.as(LibGranite::SeekBar*), Float64.new(value))
nil
end
def playback_progress
__return_value = LibGranite.seek_bar_get_playback_progress(@pointer.as(LibGranite::SeekBar*))
__return_value
end
def playback_progress=(value)
LibGranite.seek_bar_set_playback_progress(@pointer.as(LibGranite::SeekBar*), Float64.new(value))
nil
end
def is_grabbing
__return_value = LibGranite.seek_bar_get_is_grabbing(@pointer.as(LibGranite::SeekBar*))
__return_value
end
def is_hovering
__return_value = LibGranite.seek_bar_get_is_hovering(@pointer.as(LibGranite::SeekBar*))
__return_value
end
def progression_label
__return_value = LibGranite.seek_bar_get_progression_label(@pointer.as(LibGranite::SeekBar*))
Gtk::Label.new(__return_value)
end
def progression_label=(value)
LibGranite.seek_bar_set_progression_label(@pointer.as(LibGranite::SeekBar*), value.to_unsafe.as(LibGtk::Label*))
nil
end
def duration_label
__return_value = LibGranite.seek_bar_get_duration_label(@pointer.as(LibGranite::SeekBar*))
Gtk::Label.new(__return_value)
end
def duration_label=(value)
LibGranite.seek_bar_set_duration_label(@pointer.as(LibGranite::SeekBar*), value.to_unsafe.as(LibGtk::Label*))
nil
end
def scale
__return_value = LibGranite.seek_bar_get_scale(@pointer.as(LibGranite::SeekBar*))
Gtk::Scale.new(__return_value)
end
def scale=(value)
LibGranite.seek_bar_set_scale(@pointer.as(LibGranite::SeekBar*), value.to_unsafe.as(LibGtk::Scale*))
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SeekBarPrivate",1,1>
class SeekBarPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::SeekBarPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SeekBarPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/HeaderLabel",1,1>
class HeaderLabel < Gtk::Label
@pointer : Void*
def initialize(pointer : LibGranite::HeaderLabel*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::HeaderLabel*)
end
def self.new(label) : self
__return_value = LibGranite.header_label_new(label.to_unsafe)
cast Granite::HeaderLabel.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/HeaderLabelPrivate",1,1>
class HeaderLabelPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::HeaderLabelPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::HeaderLabelPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SettingsSidebar",1,1>
class SettingsSidebar < Gtk::ScrolledWindow
@pointer : Void*
def initialize(pointer : LibGranite::SettingsSidebar*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SettingsSidebar*)
end
def stack
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "stack", gvalue)
Gtk::Stack.cast(gvalue.object)
end
def stack=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "stack", gvalue)
end
def visible_child_name
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "visible_child_name", gvalue)
gvalue.string
end
def visible_child_name=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "visible_child_name", gvalue)
end
def self.new(stack) : self
__return_value = LibGranite.settings_sidebar_new(stack.to_unsafe.as(LibGtk::Stack*))
cast Granite::SettingsSidebar.new(__return_value)
end
def stack
__return_value = LibGranite.settings_sidebar_get_stack(@pointer.as(LibGranite::SettingsSidebar*))
Gtk::Stack.new(__return_value)
end
def visible_child_name
__return_value = LibGranite.settings_sidebar_get_visible_child_name(@pointer.as(LibGranite::SettingsSidebar*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def visible_child_name=(value)
LibGranite.settings_sidebar_set_visible_child_name(@pointer.as(LibGranite::SettingsSidebar*), value ? value.to_unsafe : nil)
nil
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/SettingsSidebarPrivate",1,1>
class SettingsSidebarPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::SettingsSidebarPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::SettingsSidebarPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/MessageDialog",1,1>
class MessageDialog < Gtk::Dialog
@pointer : Void*
def initialize(pointer : LibGranite::MessageDialog*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::MessageDialog*)
end
def primary_text
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "primary_text", gvalue)
gvalue.string
end
def primary_text=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "primary_text", gvalue)
end
def secondary_text
gvalue = GObject::Value.new(GObject::Type::UTF8)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "secondary_text", gvalue)
gvalue.string
end
def secondary_text=(value)
gvalue = GObject::Value.new(GObject::Type::UTF8)
gvalue.string = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "secondary_text", gvalue)
end
def image_icon
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "image_icon", gvalue)
gvalue
end
def image_icon=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "image_icon", gvalue)
end
def primary_label
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "primary_label", gvalue)
Gtk::Label.cast(gvalue.object)
end
def primary_label=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "primary_label", gvalue)
end
def secondary_label
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "secondary_label", gvalue)
Gtk::Label.cast(gvalue.object)
end
def secondary_label=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "secondary_label", gvalue)
end
def buttons=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.enum = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "buttons", gvalue)
end
def custom_bin
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "custom_bin", gvalue)
Gtk::Bin.cast(gvalue.object)
end
def custom_bin=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
gvalue.object = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "custom_bin", gvalue)
end
def self.new(primary_text, secondary_text, image_icon, buttons : Gtk::ButtonsType) : self
__return_value = LibGranite.message_dialog_new(primary_text.to_unsafe, secondary_text.to_unsafe, image_icon.to_unsafe.as(LibGio::Icon*), buttons)
cast Granite::MessageDialog.new(__return_value)
end
def self.with_image_from_icon_name(primary_text, secondary_text, image_icon_name, buttons : Gtk::ButtonsType) : self
__return_value = LibGranite.message_dialog_with_image_from_icon_name(primary_text.to_unsafe, secondary_text.to_unsafe, image_icon_name.to_unsafe, buttons)
cast Granite::MessageDialog.new(__return_value)
end
def primary_text
__return_value = LibGranite.message_dialog_get_primary_text(@pointer.as(LibGranite::MessageDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def primary_text=(value)
LibGranite.message_dialog_set_primary_text(@pointer.as(LibGranite::MessageDialog*), value.to_unsafe)
nil
end
def secondary_text
__return_value = LibGranite.message_dialog_get_secondary_text(@pointer.as(LibGranite::MessageDialog*))
(raise "Expected string but got null" unless __return_value; ::String.new(__return_value))
end
def secondary_text=(value)
LibGranite.message_dialog_set_secondary_text(@pointer.as(LibGranite::MessageDialog*), value.to_unsafe)
nil
end
def image_icon
__return_value = LibGranite.message_dialog_get_image_icon(@pointer.as(LibGranite::MessageDialog*))
__return_value
end
def image_icon=(value)
LibGranite.message_dialog_set_image_icon(@pointer.as(LibGranite::MessageDialog*), value.to_unsafe.as(LibGio::Icon*))
nil
end
def primary_label
__return_value = LibGranite.message_dialog_get_primary_label(@pointer.as(LibGranite::MessageDialog*))
Gtk::Label.new(__return_value)
end
def secondary_label
__return_value = LibGranite.message_dialog_get_secondary_label(@pointer.as(LibGranite::MessageDialog*))
Gtk::Label.new(__return_value)
end
def custom_bin
__return_value = LibGranite.message_dialog_get_custom_bin(@pointer.as(LibGranite::MessageDialog*))
Gtk::Bin.new(__return_value)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/MessageDialogPrivate",1,1>
class MessageDialogPrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::MessageDialogPrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::MessageDialogPrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/AsyncImage",1,1>
class AsyncImage < Gtk::Image
@pointer : Void*
def initialize(pointer : LibGranite::AsyncImage*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::AsyncImage*)
end
def load_on_realize
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "load_on_realize", gvalue)
gvalue.boolean
end
def load_on_realize=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "load_on_realize", gvalue)
end
def auto_size_request
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "auto_size_request", gvalue)
gvalue.boolean
end
def auto_size_request=(value)
gvalue = GObject::Value.new(GObject::Type::BOOLEAN)
gvalue.boolean = value
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "auto_size_request", gvalue)
end
def gicon_async
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "gicon_async", gvalue)
gvalue
end
def gicon_async=(value)
gvalue = GObject::Value.new(GObject::Type::INTERFACE)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "gicon_async", gvalue)
end
def size_async
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_get_property(@pointer.as(LibGObject::Object*), "size_async", gvalue)
gvalue
end
def size_async=(value)
gvalue = GObject::Value.new(GObject::Type::INT32)
LibGObject.object_set_property(@pointer.as(LibGObject::Object*), "size_async", gvalue)
end
def self.new(load_on_realize, auto_size_request) : self
__return_value = LibGranite.async_image_new(load_on_realize, auto_size_request)
cast Granite::AsyncImage.new(__return_value)
end
def self.from_gicon_async(icon, size, load_on_realize, auto_size_request) : self
__return_value = LibGranite.async_image_from_gicon_async(icon.to_unsafe.as(LibGio::Icon*), Int32.new(size), load_on_realize, auto_size_request)
cast Granite::AsyncImage.new(__return_value)
end
def self.from_icon_name_async(icon_name, icon_size : Gtk::IconSize, load_on_realize, auto_size_request) : self
__return_value = LibGranite.async_image_from_icon_name_async(icon_name.to_unsafe, icon_size, load_on_realize, auto_size_request)
cast Granite::AsyncImage.new(__return_value)
end
def set_from_gicon_async(icon, size, cancellable, _callback, _callback__target)
LibGranite.async_image_set_from_gicon_async(@pointer.as(LibGranite::AsyncImage*), icon.to_unsafe.as(LibGio::Icon*), Int32.new(size), cancellable ? cancellable.to_unsafe.as(LibGio::Cancellable*) : nil, _callback ? _callback : nil, _callback__target ? _callback__target : nil)
nil
end
def set_from_gicon_finish(_res)
__error = Pointer(LibGLib::Error).null
LibGranite.async_image_set_from_gicon_finish(@pointer.as(LibGranite::AsyncImage*), _res.to_unsafe.as(LibGio::AsyncResult*), pointerof(__error))
GLib::Error.assert __error
nil
end
def set_from_icon_name_async(icon_name, icon_size : Gtk::IconSize, cancellable, _callback, _callback__target)
LibGranite.async_image_set_from_icon_name_async(@pointer.as(LibGranite::AsyncImage*), icon_name.to_unsafe, icon_size, cancellable ? cancellable.to_unsafe.as(LibGio::Cancellable*) : nil, _callback ? _callback : nil, _callback__target ? _callback__target : nil)
nil
end
def set_from_icon_name_finish(_res)
__error = Pointer(LibGLib::Error).null
LibGranite.async_image_set_from_icon_name_finish(@pointer.as(LibGranite::AsyncImage*), _res.to_unsafe.as(LibGio::AsyncResult*), pointerof(__error))
GLib::Error.assert __error
nil
end
def set_from_file_async(file, width, height, preserve_aspect_ratio, cancellable, _callback, _callback__target)
LibGranite.async_image_set_from_file_async(@pointer.as(LibGranite::AsyncImage*), file.to_unsafe.as(LibGio::File*), Int32.new(width), Int32.new(height), preserve_aspect_ratio, cancellable ? cancellable.to_unsafe.as(LibGio::Cancellable*) : nil, _callback ? _callback : nil, _callback__target ? _callback__target : nil)
nil
end
def set_from_file_finish(_res)
__error = Pointer(LibGLib::Error).null
LibGranite.async_image_set_from_file_finish(@pointer.as(LibGranite::AsyncImage*), _res.to_unsafe.as(LibGio::AsyncResult*), pointerof(__error))
GLib::Error.assert __error
nil
end
def gicon_async
__return_value = LibGranite.async_image_get_gicon_async(@pointer.as(LibGranite::AsyncImage*))
__return_value
end
def size_async
__return_value = LibGranite.async_image_get_size_async(@pointer.as(LibGranite::AsyncImage*))
__return_value
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/AsyncImagePrivate",1,1>
class AsyncImagePrivate
include GObject::WrappedType
@pointer : Void*
def initialize(pointer : LibGranite::AsyncImagePrivate*)
@pointer = pointer.as(Void*)
end
def to_unsafe
@pointer.not_nil!.as(LibGranite::AsyncImagePrivate*)
end
end
#<loc:pop>
#<loc:push>#<loc:"/usr/lib/x86_64-linux-gnu/girepository-1.0/Granite-1.0.typelib/WidgetsDroppedDelegate",1,1>
alias WidgetsDroppedDelegate = LibGranite::WidgetsDroppedDelegate #<loc:pop>
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment