LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::PE::ResourceDialog Class Reference

Representation of a dialog box. More...

#include <ResourceDialog.hpp>

Inheritance diagram for LIEF::PE::ResourceDialog:
Collaboration diagram for LIEF::PE::ResourceDialog:

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 &)
 
ResourceDialogoperator= (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_STYLESextended_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_STYLESstyle_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_STYLESdialogbox_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)
 
Objectoperator= (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 ()
 

Detailed Description

Representation of a dialog box.

Windows allows two kinds of dialog box:

  • Simple one
  • Extended one

ResourceDialog::is_extended determine the type of the Dialog

Member Typedef Documentation

◆ it_const_items

◆ it_items

◆ items_t

Constructor & Destructor Documentation

◆ ResourceDialog() [1/4]

LIEF::PE::ResourceDialog::ResourceDialog ( )

◆ ResourceDialog() [2/4]

LIEF::PE::ResourceDialog::ResourceDialog ( const details::pe_dialog_template_ext & header)

◆ ResourceDialog() [3/4]

LIEF::PE::ResourceDialog::ResourceDialog ( const details::pe_dialog_template & header)

◆ ResourceDialog() [4/4]

LIEF::PE::ResourceDialog::ResourceDialog ( const ResourceDialog & )

◆ ~ResourceDialog()

LIEF::PE::ResourceDialog::~ResourceDialog ( )
override

Member Function Documentation

◆ accept()

void LIEF::PE::ResourceDialog::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ charset()

uint8_t LIEF::PE::ResourceDialog::charset ( ) const

The character to be used.

◆ cx()

int16_t LIEF::PE::ResourceDialog::cx ( ) const

The width, in dialog box units, of the dialog box.

◆ cy()

int16_t LIEF::PE::ResourceDialog::cy ( ) const

The height, in dialog box units, of the dialog box.

◆ dialogbox_style_list()

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.

◆ extended_style()

uint32_t LIEF::PE::ResourceDialog::extended_style ( ) const

The extended windows styles.

◆ extended_style_list()

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.

◆ has_dialogbox_style()

bool LIEF::PE::ResourceDialog::has_dialogbox_style ( DIALOG_BOX_STYLES style) const

◆ has_extended_style()

bool LIEF::PE::ResourceDialog::has_extended_style ( EXTENDED_WINDOW_STYLES style) const

◆ has_style()

bool LIEF::PE::ResourceDialog::has_style ( WINDOW_STYLES style) const

◆ help_id()

uint32_t LIEF::PE::ResourceDialog::help_id ( ) const

The help context identifier for the dialog box window.

◆ is_extended()

bool LIEF::PE::ResourceDialog::is_extended ( ) const

true if the dialog is an extended one

◆ is_italic()

bool LIEF::PE::ResourceDialog::is_italic ( ) const

Indicates whether the font is italic. If this value is true, the font is italic.

◆ items()

it_const_items LIEF::PE::ResourceDialog::items ( ) const

Iterator on the controls (ResourceDialogItem) that defines the Dialog (Button, Label...)

◆ lang() [1/2]

uint32_t LIEF::PE::ResourceDialog::lang ( ) const

RESOURCE_LANGS associated with the Dialog.

◆ lang() [2/2]

void LIEF::PE::ResourceDialog::lang ( uint32_t lang)

◆ operator=()

ResourceDialog & LIEF::PE::ResourceDialog::operator= ( const ResourceDialog & )

◆ point_size()

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.

◆ signature()

uint16_t LIEF::PE::ResourceDialog::signature ( ) const

Indicates whether a template is an extended dialog box template:

  • 0xFFFF: Extended dialog box template
  • Other value: Standard dialog box template
See also
ResourceDialog::is_extended

◆ style()

uint32_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.

◆ style_list()

std::set< WINDOW_STYLES > LIEF::PE::ResourceDialog::style_list ( ) const

Return list of LIEF::PE::WINDOW_STYLES associated with the ResourceDialog::style value.

◆ sub_lang() [1/2]

uint32_t LIEF::PE::ResourceDialog::sub_lang ( ) const

RESOURCE_SUBLANGS associated with the Dialog.

◆ sub_lang() [2/2]

void LIEF::PE::ResourceDialog::sub_lang ( uint32_t sub_lang)

◆ title()

const std::u16string & LIEF::PE::ResourceDialog::title ( ) const

The title of the dialog box.

◆ typeface()

const std::u16string & LIEF::PE::ResourceDialog::typeface ( ) const

The name of the typeface for the font.

◆ version()

uint16_t LIEF::PE::ResourceDialog::version ( ) const

The version number of the extended dialog box template. This member must be set to 1.

◆ weight()

uint16_t LIEF::PE::ResourceDialog::weight ( ) const

The weight of the font.

◆ x()

int16_t LIEF::PE::ResourceDialog::x ( ) const

The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.

◆ y()

int16_t LIEF::PE::ResourceDialog::y ( ) const

The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.


The documentation for this class was generated from the following file: