LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
LIEF::PE::ResourceDialog Class Reference

Representation of a dialog box. More...

#include <ResourceDialog.hpp>

Inheritance diagram for LIEF::PE::ResourceDialog:
Inheritance graph
[legend]
Collaboration diagram for LIEF::PE::ResourceDialog:
Collaboration graph
[legend]

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 (const details::pe_dialog_template_ext &header)
 
 ResourceDialog (const details::pe_dialog_template &header)
 
 ResourceDialog (const ResourceDialog &)
 
ResourceDialogoperator= (const ResourceDialog &)
 
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 (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
 

Detailed Description

Representation of a dialog box.

Windows allows two kinds of dialog box:

ResourceDialog::is_extended determine the type of the Dialog

Member Function Documentation

◆ accept()

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

Implements LIEF::Object.

◆ 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

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