Go to the documentation of this file.
17#ifndef LIEF_PE_RESOURCE_DIALOG_H
18#define LIEF_PE_RESOURCE_DIALOG_H
33struct ResourcesParser;
36struct pe_dialog_template_ext;
37struct pe_dialog_template;
49 friend class ResourcesManager;
50 friend struct ResourcesParser;
53 using items_t = std::vector<ResourceDialogItem>;
54 using it_items = ref_iterator<items_t&>;
55 using it_const_items = const_ref_iterator<const items_t&>;
77 uint32_t
style()
const;
103 it_const_items
items()
const;
106 uint32_t
lang()
const;
145 const std::u16string&
title()
const;
148 const std::u16string&
typeface()
const;
152 void accept(Visitor& visitor)
const override;
169 std::u16string menu_;
170 std::u16string window_class_;
171 std::u16string title_;
173 uint16_t point_size_;
177 std::u16string typeface_;
Representation of a dialog box.
Definition ResourceDialog.hpp:47
bool has_extended_style(EXTENDED_WINDOW_STYLES style) const
bool has_style(WINDOW_STYLES style) const
void accept(Visitor &visitor) const override
ResourceDialog(const ResourceDialog &)
bool has_dialogbox_style(DIALOG_BOX_STYLES style) const
bool is_italic() const
Indicates whether the font is italic. If this value is true, the font is italic.
ResourceDialog & operator=(const ResourceDialog &)
uint32_t sub_lang() const
RESOURCE_SUBLANGS associated with the Dialog.
uint32_t help_id() const
The help context identifier for the dialog box window.
friend std::ostream & operator<<(std::ostream &os, const ResourceDialog &dialog)
void sub_lang(uint32_t sub_lang)
const std::u16string & typeface() const
The name of the typeface for the font.
~ResourceDialog() override
uint16_t signature() const
Indicates whether a template is an extended dialog box template:
int16_t cx() const
The width, in dialog box units, of the dialog box.
uint32_t style() const
The style of the dialog box. This member can be a combination of LIEF::PE::WINDOW_STYLES values and L...
ResourceDialog(const details::pe_dialog_template_ext &header)
bool is_extended() const
true if the dialog is an extended one
uint32_t extended_style() const
The extended windows styles.
it_const_items items() const
Iterator on the controls (ResourceDialogItem) that defines the Dialog (Button, Label....
uint16_t version() const
The version number of the extended dialog box template. This member must be set to 1.
ResourceDialog(const details::pe_dialog_template &header)
int16_t x() const
The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.
uint16_t point_size() const
The point size of the font to use for the text in the dialog box and its controls.
int16_t y() const
The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.
std::set< DIALOG_BOX_STYLES > dialogbox_style_list() const
Return list of LIEF::PE::DIALOG_BOX_STYLES associated with the ResourceDialog::style value.
int16_t cy() const
The height, in dialog box units, of the dialog box.
uint16_t weight() const
The weight of the font.
std::set< EXTENDED_WINDOW_STYLES > extended_style_list() const
Return list of LIEF::PE::EXTENDED_WINDOW_STYLES associated with the ResourceDialog::extended_style va...
uint8_t charset() const
The character to be used.
const std::u16string & title() const
The title of the dialog box.
std::set< WINDOW_STYLES > style_list() const
Return list of LIEF::PE::WINDOW_STYLES associated with the ResourceDialog::style value.
uint32_t lang() const
RESOURCE_LANGS associated with the Dialog.
The Resource Manager provides an enhanced API to manipulate the resource tree.
Definition ResourcesManager.hpp:38
Definition CodeIntegrity.hpp:26
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41