Home | History | Annotate | Download | only in gfx

Lines Matching defs:hfont

73   // HFONT (an opaque handle into Windows). To avoid lots of GDI object
74 // allocation and destruction, Font indirectly refers to the HFONT by way of
75 // an HFontRef. That is, every Font has an HFontRef, which has an HFONT.
77 // HFontRef is reference counted. Upon deletion, it deletes the HFONT.
78 // By making HFontRef maintain the reference to the HFONT, multiple
79 // HFontRefs can share the same HFONT, and Font can provide value semantics.
82 // This constructor takes control of the HFONT, and will delete it when
84 HFontRef(HFONT hfont,
93 HFONT hfont() const { return hfont_; }
111 const HFONT hfont_;
132 // Initializes this object with a copy of the specified HFONT.
133 void InitWithCopyOfHFONT(HFONT hfont);
143 // Creates and returns a new HFONTRef from the specified HFONT.
144 static HFontRef* CreateHFontRef(HFONT font);
146 // Creates and returns a new HFONTRef from the specified HFONT. Uses provided
148 static HFontRef* CreateHFontRef(HFONT font, const TEXTMETRIC& font_metrics);
152 static Font DeriveWithCorrectedSize(HFONT base_font);
155 // constructing a Font from a HFONT we don't want to copy.
161 // Indirect reference to the HFontRef, which references the underlying HFONT.