LIEF: Library to Instrument Executable Formats Version 0.15.1
|
Representation of a dialog box. More...
#include <ResourceDialog.hpp>
Public Types | |
using | items_t = std::vector<ResourceDialogItem> |
using | it_items = ref_iterator<items_t&> |
using | it_const_items = const_ref_iterator<const items_t&> |
Public Types inherited from LIEF::Object | |
template<class T > | |
using | output_t = add_pointer_t<decay_t<T>> |
template<class T > | |
using | output_const_t = add_pointer_t<add_const_t<decay_t<T>>> |
Public Member Functions | |
ResourceDialog () | |
ResourceDialog (const details::pe_dialog_template_ext &header) | |
ResourceDialog (const details::pe_dialog_template &header) | |
ResourceDialog (const ResourceDialog &) | |
ResourceDialog & | operator= (const ResourceDialog &) |
~ResourceDialog () override | |
bool | is_extended () const |
true if the dialog is an extended one | |
uint32_t | extended_style () const |
The extended windows styles. | |
std::set< EXTENDED_WINDOW_STYLES > | extended_style_list () const |
Return list of LIEF::PE::EXTENDED_WINDOW_STYLES associated with the ResourceDialog::extended_style value. | |
bool | has_extended_style (EXTENDED_WINDOW_STYLES style) const |
uint32_t | style () const |
The style of the dialog box. This member can be a combination of LIEF::PE::WINDOW_STYLES values and LIEF::PE::DIALOG_BOX_STYLES values. | |
std::set< WINDOW_STYLES > | style_list () const |
Return list of LIEF::PE::WINDOW_STYLES associated with the ResourceDialog::style value. | |
bool | has_style (WINDOW_STYLES style) const |
std::set< DIALOG_BOX_STYLES > | dialogbox_style_list () const |
Return list of LIEF::PE::DIALOG_BOX_STYLES associated with the ResourceDialog::style value. | |
bool | has_dialogbox_style (DIALOG_BOX_STYLES style) const |
int16_t | x () const |
The x-coordinate, in dialog box units, of the upper-left corner of the dialog box. | |
int16_t | y () const |
The y-coordinate, in dialog box units, of the upper-left corner of the dialog box. | |
int16_t | cx () const |
The width, in dialog box units, of the dialog box. | |
int16_t | cy () const |
The height, in dialog box units, of the dialog box. | |
it_const_items | items () const |
Iterator on the controls (ResourceDialogItem) that defines the Dialog (Button, Label...) | |
uint32_t | lang () const |
RESOURCE_LANGS associated with the Dialog. | |
uint32_t | sub_lang () const |
RESOURCE_SUBLANGS associated with the Dialog. | |
void | lang (uint32_t lang) |
void | sub_lang (uint32_t sub_lang) |
uint16_t | version () const |
The version number of the extended dialog box template. This member must be set to 1. | |
uint16_t | signature () const |
Indicates whether a template is an extended dialog box template: | |
uint32_t | help_id () const |
The help context identifier for the dialog box window. | |
uint16_t | weight () const |
The weight of the font. | |
uint16_t | point_size () const |
The point size of the font to use for the text in the dialog box and its controls. | |
bool | is_italic () const |
Indicates whether the font is italic. If this value is true , the font is italic. | |
uint8_t | charset () const |
The character to be used. | |
const std::u16string & | title () const |
The title of the dialog box. | |
const std::u16string & | typeface () const |
The name of the typeface for the font. | |
void | accept (Visitor &visitor) const override |
Public Member Functions inherited from LIEF::Object | |
Object () | |
Object (const Object &other) | |
Object & | operator= (const Object &other) |
template<class T > | |
output_t< T > | as () |
template<class T > | |
output_const_t< T > | as () const |
virtual bool | operator== (const Object &other) const |
virtual bool | operator!= (const Object &other) const |
virtual | ~Object () |
Representation of a dialog box.
Windows allows two kinds of dialog box:
ResourceDialog::is_extended determine the type of the Dialog
using LIEF::PE::ResourceDialog::it_const_items = const_ref_iterator<const items_t&> |
using LIEF::PE::ResourceDialog::items_t = std::vector<ResourceDialogItem> |
LIEF::PE::ResourceDialog::ResourceDialog | ( | ) |
LIEF::PE::ResourceDialog::ResourceDialog | ( | const details::pe_dialog_template_ext & | header | ) |
LIEF::PE::ResourceDialog::ResourceDialog | ( | const details::pe_dialog_template & | header | ) |
LIEF::PE::ResourceDialog::ResourceDialog | ( | const ResourceDialog & | ) |
|
override |
|
overridevirtual |
Implements LIEF::Object.
uint8_t LIEF::PE::ResourceDialog::charset | ( | ) | const |
The character to be used.
int16_t LIEF::PE::ResourceDialog::cx | ( | ) | const |
The width, in dialog box units, of the dialog box.
int16_t LIEF::PE::ResourceDialog::cy | ( | ) | const |
The height, in dialog box units, of the dialog box.
std::set< DIALOG_BOX_STYLES > LIEF::PE::ResourceDialog::dialogbox_style_list | ( | ) | const |
Return list of LIEF::PE::DIALOG_BOX_STYLES associated with the ResourceDialog::style value.
uint32_t LIEF::PE::ResourceDialog::extended_style | ( | ) | const |
The extended windows styles.
std::set< EXTENDED_WINDOW_STYLES > LIEF::PE::ResourceDialog::extended_style_list | ( | ) | const |
Return list of LIEF::PE::EXTENDED_WINDOW_STYLES associated with the ResourceDialog::extended_style value.
bool LIEF::PE::ResourceDialog::has_dialogbox_style | ( | DIALOG_BOX_STYLES | style | ) | const |
bool LIEF::PE::ResourceDialog::has_extended_style | ( | EXTENDED_WINDOW_STYLES | style | ) | const |
bool LIEF::PE::ResourceDialog::has_style | ( | WINDOW_STYLES | style | ) | const |
uint32_t LIEF::PE::ResourceDialog::help_id | ( | ) | const |
The help context identifier for the dialog box window.
bool LIEF::PE::ResourceDialog::is_extended | ( | ) | const |
true
if the dialog is an extended one
bool LIEF::PE::ResourceDialog::is_italic | ( | ) | const |
Indicates whether the font is italic. If this value is true
, the font is italic.
it_const_items LIEF::PE::ResourceDialog::items | ( | ) | const |
Iterator on the controls (ResourceDialogItem) that defines the Dialog (Button, Label...)
uint32_t LIEF::PE::ResourceDialog::lang | ( | ) | const |
RESOURCE_LANGS associated with the Dialog.
void LIEF::PE::ResourceDialog::lang | ( | uint32_t | lang | ) |
ResourceDialog & LIEF::PE::ResourceDialog::operator= | ( | const ResourceDialog & | ) |
uint16_t LIEF::PE::ResourceDialog::point_size | ( | ) | const |
The point size of the font to use for the text in the dialog box and its controls.
uint16_t LIEF::PE::ResourceDialog::signature | ( | ) | const |
Indicates whether a template is an extended dialog box template:
0xFFFF
: Extended dialog box templateuint32_t LIEF::PE::ResourceDialog::style | ( | ) | const |
The style of the dialog box. This member can be a combination of LIEF::PE::WINDOW_STYLES values and LIEF::PE::DIALOG_BOX_STYLES values.
std::set< WINDOW_STYLES > LIEF::PE::ResourceDialog::style_list | ( | ) | const |
Return list of LIEF::PE::WINDOW_STYLES associated with the ResourceDialog::style value.
uint32_t LIEF::PE::ResourceDialog::sub_lang | ( | ) | const |
RESOURCE_SUBLANGS associated with the Dialog.
void LIEF::PE::ResourceDialog::sub_lang | ( | uint32_t | sub_lang | ) |
const std::u16string & LIEF::PE::ResourceDialog::title | ( | ) | const |
The title of the dialog box.
const std::u16string & LIEF::PE::ResourceDialog::typeface | ( | ) | const |
The name of the typeface for the font.
uint16_t LIEF::PE::ResourceDialog::version | ( | ) | const |
The version number of the extended dialog box template. This member must be set to 1.
uint16_t LIEF::PE::ResourceDialog::weight | ( | ) | const |
The weight of the font.
int16_t LIEF::PE::ResourceDialog::x | ( | ) | const |
The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.
int16_t LIEF::PE::ResourceDialog::y | ( | ) | const |
The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.