Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. module GI.Gtk.Interfaces.PrintOperationPreview

    GtkPrintOperationPreview is the interface that is used to implement print preview. A GtkPrintOperationPreview object is passed to the PrintOperation::preview signal by PrintOperation.

  2. newtype PrintOperationPreview

    gi-gtk4 GI.Gtk.Interfaces.PrintOperationPreview

    Memory-managed wrapper type.

  3. PrintOperationPreview :: ManagedPtr PrintOperationPreview -> PrintOperationPreview

    gi-gtk4 GI.Gtk.Interfaces.PrintOperationPreview

    No documentation available.

  4. type PrintOperationPreviewGotPageSizeCallback = PrintContext -> PageSetup -> IO ()

    gi-gtk4 GI.Gtk.Interfaces.PrintOperationPreview

    Emitted once for each page that gets rendered to the preview. A handler for this signal should update the context according to pageSetup and set up a suitable cairo context, using printContextSetCairoContext.

  5. type PrintOperationPreviewReadyCallback = PrintContext -> IO ()

    gi-gtk4 GI.Gtk.Interfaces.PrintOperationPreview

    The ready signal gets emitted once per preview operation, before the first page is rendered. A handler for this signal can be used for setup tasks.

  6. module GI.Gtk.Objects.PadController

    GtkPadController is an event controller for the pads found in drawing tablets. Pads are the collection of buttons and tactile sensors often found around the stylus-sensitive area. These buttons and sensors have no implicit meaning, and by default they perform no action. GtkPadController is provided to map those to Action objects, thus letting the application give them a more semantic meaning. Buttons and sensors are not constrained to triggering a single action, some InputSourceTabletPad devices feature multiple "modes". All these input elements have one current mode, which may determine the final action being triggered. Pad devices often divide buttons and sensors into groups. All elements in a group share the same current mode, but different groups may have different modes. See devicePadGetNGroups and devicePadGetGroupNModes. Each of the actions that a given button/strip/ring performs for a given mode is defined by a PadActionEntry. It contains an action name that will be looked up in the given ActionGroup and activated whenever the specified input element and mode are triggered. A simple example of GtkPadController usage: Assigning button 1 in all modes and pad devices to an "invert-selection" action:

    c code

    GtkPadActionEntry *pad_actions[] = {
    { GTK_PAD_ACTION_BUTTON, 1, -1, "Invert selection", "pad-actions.invert-selection" },
    …
    };
    
    …
    action_group = g_simple_action_group_new ();
    action = g_simple_action_new ("pad-actions.invert-selection", NULL);
    g_signal_connect (action, "activate", on_invert_selection_activated, NULL);
    g_action_map_add_action (G_ACTION_MAP (action_group), action);
    …
    pad_controller = gtk_pad_controller_new (action_group, NULL);
    
    The actions belonging to rings/strips will be activated with a parameter of type G_VARIANT_TYPE_DOUBLE bearing the value of the given axis, it is required that those are made stateful and accepting this GVariantType.

  7. newtype PadController

    gi-gtk4 GI.Gtk.Objects.PadController

    Memory-managed wrapper type.

  8. PadController :: ManagedPtr PadController -> PadController

    gi-gtk4 GI.Gtk.Objects.PadController

    No documentation available.

  9. module GI.Gtk.Objects.PageSetup

    A GtkPageSetup object stores the page size, orientation and margins. The idea is that you can get one of these from the page setup dialog and then pass it to the GtkPrintOperation when printing. The benefit of splitting this out of the GtkPrintSettings is that these affect the actual layout of the page, and thus need to be set long before user prints.

    Margins

    The margins specified in this object are the “print margins”, i.e. the parts of the page that the printer cannot print on. These are different from the layout margins that a word processor uses; they are typically used to determine the minimal size for the layout margins. To obtain a GtkPageSetup use pageSetupNew to get the defaults, or use printRunPageSetupDialog to show the page setup dialog and receive the resulting page setup.

    A page setup dialog

    c code

    static GtkPrintSettings *settings = NULL;
    static GtkPageSetup *page_setup = NULL;
    
    static void
    do_page_setup (void)
    {
    GtkPageSetup *new_page_setup;
    
    if (settings == NULL)
    settings = gtk_print_settings_new ();
    
    new_page_setup = gtk_print_run_page_setup_dialog (GTK_WINDOW (main_window),
    page_setup, settings);
    
    if (page_setup)
    g_object_unref (page_setup);
    
    page_setup = new_page_setup;
    }
    

  10. newtype PageSetup

    gi-gtk4 GI.Gtk.Objects.PageSetup

    Memory-managed wrapper type.

Page 883 of many | Previous | Next