XfceMenuRules

## XfceMenuRules XfceMenuRules |

## Synopsis

    #include <libxfce4menu/libxfce4menu.h>

                        XfceMenuRules;
                        XfceMenuRulesIface;
    gboolean            xfce_menu_rules_match               (XfceMenuRules *rules,
                                                             XfceMenuItem *item);
    void                xfce_menu_rules_add_all             (XfceMenuRules *rules);
    void                xfce_menu_rules_add_rules           (XfceMenuRules *rules,
                                                             XfceMenuRules *additional_rules);
    void                xfce_menu_rules_add_filename        (XfceMenuRules *rules,
                                                             const gchar *filename);
    void                xfce_menu_rules_add_category        (XfceMenuRules *rules,
                                                             const gchar *category);

## Object Hierarchy

      GInterface
       +----XfceMenuRules

## Prerequisites

XfceMenuRules requires GObject.

## Known Implementations

XfceMenuRules is implemented by XfceMenuAndRules, XfceMenuNotRules, XfceMenuOrRules and XfceMenuStandardRules.

## Description

## Details

### XfceMenuRules

    typedef struct _XfceMenuRules XfceMenuRules;

### XfceMenuRulesIface

    typedef struct {
      GTypeInterface __parent__;

      /* Virtual methods */
      gboolean  (*match)             (XfceMenuRules *rules,
                                      XfceMenuItem  *item);
      void      (*add_rules)         (XfceMenuRules *rules,
                                      XfceMenuRules *additional_rules);
      void      (*add_all)           (XfceMenuRules *rules);
      void      (*add_filename)      (XfceMenuRules *rules,
                                      const gchar   *filename);
      void      (*add_category)      (XfceMenuRules *rules,
                                      const gchar   *category);
    } XfceMenuRulesIface;

### xfce_menu_rules_match ()

    gboolean            xfce_menu_rules_match               (XfceMenuRules *rules,
                                                             XfceMenuItem *item);

`rules` : |
`item` : |
Returns : |

### xfce_menu_rules_add_all ()

    void                xfce_menu_rules_add_all             (XfceMenuRules *rules);

`rules` : |

### xfce_menu_rules_add_rules ()

    void                xfce_menu_rules_add_rules           (XfceMenuRules *rules,
                                                             XfceMenuRules *additional_rules);

`rules` : |
`additional_rules` : |

### xfce_menu_rules_add_filename ()

    void                xfce_menu_rules_add_filename        (XfceMenuRules *rules,
                                                             const gchar *filename);

`rules` : |
`filename` : |

### xfce_menu_rules_add_category ()

    void                xfce_menu_rules_add_category        (XfceMenuRules *rules,
                                                             const gchar *category);

`rules` : |
`category` : |