17#ifndef LIEF_PE_RESOURCE_DIALOG_H
18#define LIEF_PE_RESOURCE_DIALOG_H
32class ResourcesManager;
33struct ResourcesParser;
36struct pe_dialog_template_ext;
37struct pe_dialog_template;
50 friend struct ResourcesParser;
53 using items_t = std::vector<ResourceDialogItem>;
147 const std::u16string&
title()
const;
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.
std::vector< ResourceDialogItem > items_t
Definition ResourceDialog.hpp:53
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 Visitor.hpp:224
Iterator which returns reference on container's values.
Definition iterators.hpp:48
EXTENDED_WINDOW_STYLES
From https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles.
Definition PE/enums.hpp:204
WINDOW_STYLES
From: https://docs.microsoft.com/en-us/windows/win32/winmsg/window-styles.
Definition PE/enums.hpp:229
DIALOG_BOX_STYLES
From https://docs.microsoft.com/en-us/windows/win32/dlgbox/dialog-box-styles.
Definition PE/enums.hpp:255
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41